Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys/targets: increase DataOffset for 64bit builds #5765

Merged
merged 1 commit into from
Feb 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion sys/targets/targets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down