aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-02-07 12:22:53 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-02-07 11:34:29 +0000
commit94926c8dd954acda93e0726c09325ecb8d88572b (patch)
treecd39a776ce55bdf76b1117b83c37fc094ecf3029
parenta4f327c25a415765c6cca57d7d9fb572861fe158 (diff)
sys/targets: increase DataOffset for 64bit builds
It turned out the currently used value hit the high shadow area on arm64 machines. Closes #5762.
-rw-r--r--sys/targets/targets.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go
index 1d79f4f95..18b722945 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