From cbca8e0f043495ea2332604d8ce066891710e861 Mon Sep 17 00:00:00 2001 From: Necip Fazil Yildiran Date: Wed, 29 Jul 2020 07:36:25 +0000 Subject: 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. --- pkg/host/syscalls_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/host/syscalls_linux.go') 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" -- cgit mrf-deployment