aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-06-04 12:55:41 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-06-24 09:57:34 +0000
commite16e2c9a4cb6937323e861b646792a6c4c978a3c (patch)
tree6c513e98e5f465b44a98546d8984485d2c128582 /sys/linux
parent90d67044dab68568e8f35bc14b68055dbd166eff (diff)
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)
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/init.go21
1 files changed, 0 insertions, 21 deletions
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