[compiler-rt] [hwasan] Add config for AArch64 Linux with 39-bit VA. (PR #170927)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 5 13:41:26 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Eli Friedman (efriedma-quic)
<details>
<summary>Changes</summary>
This is leveraging work which has already been done for Android, which ships 39-bit VA kernels, and extending it to other embedded Linux targets.
(SANITIZER_AARCH64_39BIT_VA was added in 58c8f57681.)
---
Full diff: https://github.com/llvm/llvm-project/pull/170927.diff
1 Files Affected:
- (modified) compiler-rt/lib/hwasan/hwasan_allocator.h (+1-1)
``````````diff
diff --git a/compiler-rt/lib/hwasan/hwasan_allocator.h b/compiler-rt/lib/hwasan/hwasan_allocator.h
index 2ada2a0b1851a..94fd7b2f7467b 100644
--- a/compiler-rt/lib/hwasan/hwasan_allocator.h
+++ b/compiler-rt/lib/hwasan/hwasan_allocator.h
@@ -74,7 +74,7 @@ struct AP64 {
#if defined(HWASAN_ALIASING_MODE)
static const uptr kSpaceSize = 1ULL << kAddressTagShift;
typedef __sanitizer::DefaultSizeClassMap SizeClassMap;
-#elif SANITIZER_LINUX && !SANITIZER_ANDROID
+#elif SANITIZER_LINUX && !SANITIZER_ANDROID && !defined(SANITIZER_AARCH64_39BIT_VA)
static const uptr kSpaceSize = 0x40000000000ULL; // 4T.
typedef __sanitizer::DefaultSizeClassMap SizeClassMap;
#else
``````````
</details>
https://github.com/llvm/llvm-project/pull/170927
More information about the llvm-commits
mailing list