From 539e603206f427ff6549cde661fef0205a4c9034 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 15 Sep 2017 10:15:00 +0200 Subject: 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 --- sys/linux/init.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/linux/init.go') 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, -- cgit mrf-deployment