aboutsummaryrefslogtreecommitdiffstats
path: root/sys/targets
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-03-19 22:18:40 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-03-19 21:31:48 +0000
commit9209bc22d7f180ccb6aa6e8d45aec4980dceffc7 (patch)
treeba3df8d857f01368fb8c57512a0e5b8436e1f01c /sys/targets
parent3b7445cf7f3c99cd574fc04ecdda1a67097cf55f (diff)
sys/targets: use a smaller default DataOffset
Use 0x200000000000 to be within the address range used by Starnix.
Diffstat (limited to 'sys/targets')
-rw-r--r--sys/targets/targets.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go
index 69b530a94..b8783d5c8 100644
--- a/sys/targets/targets.go
+++ b/sys/targets/targets.go
@@ -790,10 +790,11 @@ func (target *Target) defaultDataOffset() uint64 {
}
// An address from ASAN's 64-bit HighMem area.
- // 0x400000000000 works both for arm64 and amd64. We don't run syzkaller tests on any other platform.
+ // 0x200000000000 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
+ // Another restriction is that on Starnix the available memory space ends at 0x400000000000.
+ return 0x200000000000
}
// From 32-bit HighMem area.
return 0x80000000