diff options
| author | Necip Fazil Yildiran <necip@google.com> | 2020-07-29 07:36:25 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-29 13:44:49 +0200 |
| commit | cbca8e0f043495ea2332604d8ce066891710e861 (patch) | |
| tree | cf7eb1825cd4133c77d9ce8c4697190baa21b755 /sys/linux/test/io_uring | |
| parent | a3d497bf6ccc7141b66ada4b01a05068a09b31c3 (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 'sys/linux/test/io_uring')
| -rw-r--r-- | sys/linux/test/io_uring | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/linux/test/io_uring b/sys/linux/test/io_uring index 3e28259d1..1d93c33e6 100644 --- a/sys/linux/test/io_uring +++ b/sys/linux/test/io_uring @@ -1,9 +1,5 @@ # Create an io_uring instance -r0 = io_uring_setup(0x1, &AUTO={0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, [0x0, 0x0, 0x0], [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0], [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]}) - -# mmap the ring and the sqes -r1 = mmap$IORING_OFF_SQ_RING(&(0x7f00000a0000)=nil, 0x184, 0x3, 0x8001, r0, AUTO) -r2 = mmap$IORING_OFF_SQES(&(0x7f00000b0000)=nil, 0x40, 0x3, 0x8001, r0, AUTO) +r0 = syz_io_uring_setup(0x1, &AUTO={0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, [0x0, 0x0, 0x0], [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0], [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]}, &(0x7f00000a0000)=nil, &(0x7f00000b0000)=nil, &AUTO=<r1=>0x0, &AUTO=<r2=>0x0) # Set IORING_CQ_EVENTFD_DISABLED. Has no side-effect for the test, # only tests syz_memcpy_off(). |
