From e16e2c9a4cb6937323e861b646792a6c4c978a3c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 4 Jun 2024 12:55:41 +0200 Subject: executor: add runner mode Move all syz-fuzzer logic into syz-executor and remove syz-fuzzer. Also restore syz-runtest functionality in the manager. Update #4917 (sets most signal handlers to SIG_IGN) --- sys/linux/init.go | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'sys/linux/init.go') diff --git a/sys/linux/init.go b/sys/linux/init.go index faf4a98af..55953eee0 100644 --- a/sys/linux/init.go +++ b/sys/linux/init.go @@ -4,8 +4,6 @@ package linux import ( - "runtime" - "github.com/google/syzkaller/prog" "github.com/google/syzkaller/sys/targets" ) @@ -109,27 +107,8 @@ func InitTarget(target *prog.Target) { int(target.GetConst("XENSTORE_REL_PATH_MAX")), 1 << 16, // gVisor's MaxFilenameLen } - - if target.Arch == runtime.GOARCH { - KCOV_INIT_TRACE = uintptr(target.GetConst("KCOV_INIT_TRACE")) - KCOV_ENABLE = uintptr(target.GetConst("KCOV_ENABLE")) - KCOV_REMOTE_ENABLE = uintptr(target.GetConst("KCOV_REMOTE_ENABLE")) - KCOV_DISABLE = uintptr(target.GetConst("KCOV_DISABLE")) - KCOV_TRACE_PC = uintptr(target.GetConst("KCOV_TRACE_PC")) - KCOV_TRACE_CMP = uintptr(target.GetConst("KCOV_TRACE_CMP")) - } } -var ( - // This should not be here, but for now we expose this for syz-fuzzer. - KCOV_INIT_TRACE uintptr - KCOV_ENABLE uintptr - KCOV_REMOTE_ENABLE uintptr - KCOV_DISABLE uintptr - KCOV_TRACE_PC uintptr - KCOV_TRACE_CMP uintptr -) - type arch struct { unix *targets.UnixNeutralizer -- cgit mrf-deployment