Skip to content

Commit c3acafc

Browse files
[hwasan] Add config for AArch64 Linux with 39-bit VA. (#170927)
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 58c8f57.)
1 parent b71eb53 commit c3acafc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/lib/hwasan/hwasan_allocator.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ struct AP64 {
7474
#if defined(HWASAN_ALIASING_MODE)
7575
static const uptr kSpaceSize = 1ULL << kAddressTagShift;
7676
typedef __sanitizer::DefaultSizeClassMap SizeClassMap;
77-
#elif SANITIZER_LINUX && !SANITIZER_ANDROID
77+
#elif SANITIZER_LINUX && !SANITIZER_ANDROID && \
78+
!defined(SANITIZER_AARCH64_39BIT_VA)
7879
static const uptr kSpaceSize = 0x40000000000ULL; // 4T.
7980
typedef __sanitizer::DefaultSizeClassMap SizeClassMap;
8081
#else

0 commit comments

Comments
 (0)