aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/syscalls_linux.go
diff options
context:
space:
mode:
authorNecip Fazil Yildiran <necip@google.com>2020-07-29 07:36:25 +0000
committerDmitry Vyukov <dvyukov@google.com>2020-07-29 13:44:49 +0200
commitcbca8e0f043495ea2332604d8ce066891710e861 (patch)
treecf7eb1825cd4133c77d9ce8c4697190baa21b755 /pkg/host/syscalls_linux.go
parenta3d497bf6ccc7141b66ada4b01a05068a09b31c3 (diff)
executor: added syz_io_uring_setup to wrap both setup and mmap
It is hard for the fuzzer to generate correct programs using mmap calls with fuzzer-provided mmap length. This wrapper ensures correct length computation.
Diffstat (limited to 'pkg/host/syscalls_linux.go')
-rw-r--r--pkg/host/syscalls_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/host/syscalls_linux.go b/pkg/host/syscalls_linux.go
index 8e9702ee6..715deada4 100644
--- a/pkg/host/syscalls_linux.go
+++ b/pkg/host/syscalls_linux.go
@@ -226,7 +226,7 @@ func isSupportedSyzkall(c *prog.Syscall, target *prog.Target, sandbox string) (b
return onlySandboxNone(sandbox)
case "syz_execute_func":
return true, ""
- case "syz_io_uring_submit", "syz_io_uring_complete", "syz_memcpy_off":
+ case "syz_io_uring_submit", "syz_io_uring_complete", "syz_io_uring_setup", "syz_memcpy_off":
// syz_memcpy_off is only used for io_uring descriptions, thus, enable it
// only if io_uring syscalls are enabled.
ioUringSyscallName := "io_uring_setup"