[compiler-rt] [HWASan] [compiler-rt] support non-4k pages on Android (PR #95069)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 11 13:12:33 PDT 2024


================
@@ -109,7 +114,7 @@ uptr FindDynamicShadowStart(uptr shadow_size_bytes) {
   if (IsPremapShadowAvailable())
     return FindPremappedShadowStart(shadow_size_bytes);
   return MapDynamicShadow(shadow_size_bytes, kShadowScale, kShadowBaseAlignment,
-                          kHighMemEnd);
+                          kHighMemEnd, kMaxGranularity);
----------------
fmayer wrote:

```
// The code in this file needs to run in an unrelocated binary. It should not
// access any external symbol, including its own non-hidden globals.
```

`GetMmapGranularity` calls `GetPageSize` calls `getauxval`

https://github.com/llvm/llvm-project/pull/95069


More information about the llvm-commits mailing list