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

Andrew Pinski via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 22:24:29 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;
----------------
pinskia wrote:

Won't it be 64k rather than 16k? Since that is the max page size for aarch64 linux?

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


More information about the llvm-commits mailing list