Skip to content

Commit

Permalink
sys/targets: arm64: compile with -fno-jump-tables
Browse files Browse the repository at this point in the history
Prevent the compiler from generating jump tables that may kick in
at random places and break SyzOS execution
(google#5565)
  • Loading branch information
ramosian-glider committed Dec 3, 2024
1 parent 62300cc commit 4594620
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sys/targets/targets.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,11 @@ var List = map[string]map[string]*Target{
KernelHeaderArch: "x86",
},
ARM64: {
PtrSize: 8,
PageSize: 4 << 10,
PtrSize: 8,
PageSize: 4 << 10,
// Jump tables mess up with SyzOS execution, disable them for now.
// See https://github.com/google/syzkaller/issues/5565 for context.
CFlags: []string{"-fno-jump-tables"},
Triple: "aarch64-linux-gnu",
KernelArch: "arm64",
KernelHeaderArch: "arm64",
Expand Down

0 comments on commit 4594620

Please sign in to comment.