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

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 22:44:51 PDT 2024


================
@@ -36,15 +36,18 @@ decltype(__hwasan_shadow)* __hwasan_premap_shadow();
 
 namespace __hwasan {
 
+// We cannot call anything in libc here (see comment above), so we need to
+// assume the biggest allowed page size.
+static constexpr uptr kMaxGranularity = 16384;
----------------
fmayer wrote:

android max page size is 16k, defined here: https://android.googlesource.com/platform/bionic/+/main/libc/platform/bionic/page.h#41

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


More information about the llvm-commits mailing list