From 9209bc22d7f180ccb6aa6e8d45aec4980dceffc7 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 19 Mar 2025 22:18:40 +0100 Subject: sys/targets: use a smaller default DataOffset Use 0x200000000000 to be within the address range used by Starnix. --- sys/targets/targets.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys') 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 -- cgit mrf-deployment