From 7a64ac6842776e98f142092abeaf3b6819018052 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 7 Feb 2025 12:22:53 +0100 Subject: [PATCH] sys/targets: increase DataOffset for 64bit builds It turned out the currently used value hit the high shadow area on arm64 machines. Closes #5762. --- sys/targets/targets.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/targets/targets.go b/sys/targets/targets.go index 1d79f4f9509a..18b722945877 100644 --- a/sys/targets/targets.go +++ b/sys/targets/targets.go @@ -777,7 +777,10 @@ func initTarget(target *Target, OS, arch string) { func (target *Target) defaultDataOffset() uint64 { if target.PtrSize == 8 { // An address from ASAN's 64-bit HighMem area. - return 0x200000000000 + // 0x400000000000 works both for arm64 and amd64. We don't run syzkaller tests on any other platform. + // During real fuzzing, we don't build with ASAN, so the address should not matter much as long as + // it's far enough from the area allocated by malloc(). + return 0x400000000000 } // From 32-bit HighMem area. return 0x80000000