aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/init.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-09-15 10:15:00 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-09-15 16:02:37 +0200
commit539e603206f427ff6549cde661fef0205a4c9034 (patch)
treede4cd1db71fc293582ad495f4d8cc16f196c6827 /sys/linux/init.go
parent19f9bc13d374058b83b2712f119bb42559b35c0c (diff)
syz-manager, syz-fuzzer, executor: ensure that binaries are consistent
Check that manager/fuzzer/executor are build on the same git revision, use the same syscall descriptions and the same target arch. Update #336
Diffstat (limited to 'sys/linux/init.go')
-rw-r--r--sys/linux/init.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/linux/init.go b/sys/linux/init.go
index cbf93e963..509e2ab04 100644
--- a/sys/linux/init.go
+++ b/sys/linux/init.go
@@ -9,12 +9,13 @@ import (
"github.com/google/syzkaller/prog"
)
-func initArch(syscalls []*prog.Syscall, resources []*prog.ResourceDesc,
+func initArch(rev string, syscalls []*prog.Syscall, resources []*prog.ResourceDesc,
structDescs []*prog.KeyedStruct, consts []prog.ConstValue, archName string, ptrSize uint64) {
arch := makeArch(syscalls, resources, structDescs, consts, archName)
target := &prog.Target{
OS: "linux",
Arch: archName,
+ Revision: rev,
PtrSize: ptrSize,
PageSize: pageSize,
DataOffset: dataOffset,