diff options
| author | Cheng-Min Chiang <chmnchiang@google.com> | 2020-08-06 17:39:34 -0700 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-08-07 09:44:43 +0200 |
| commit | 28ac5c9e93a44c3eb145195ffb55591be58ef510 (patch) | |
| tree | b960c863f76fbfd7532dedbe4a9edc1b6707c2f8 /sys/linux | |
| parent | 8115b1e2252634693a1a4686b6ad903bae12224c (diff) | |
sys/linux/test: fix io_uring test
Fix the io_uring test by adding some blank lines after comments. This
commit changes nothing beside that.
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/test/io_uring | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/linux/test/io_uring b/sys/linux/test/io_uring index 1d93c33e6..a85a4cc70 100644 --- a/sys/linux/test/io_uring +++ b/sys/linux/test/io_uring @@ -1,18 +1,24 @@ # Create an io_uring instance + 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(). + syz_memcpy_off$IO_URING_METADATA_FLAGS(r1, 0x114, &AUTO=0x1, 0x0, AUTO) # Write an openat2 operation to the submission queue + syz_io_uring_submit(r1, r2, &AUTO=@IORING_OP_OPENAT2={AUTO, 0x0, AUTO, 0xffffffffffffff9c, &AUTO={0x42, 0x0, 0x0}, &AUTO='./file1\x00', AUTO, AUTO, 0x12345, {AUTO, 0x0, [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]} }, 0x0) # Notify the kernel about the submission and wait until completion + io_uring_enter(r0, 0x1, 0x1, 0x1, 0x0, 0x0) # Get the resulting fd from the completion queue + r3 = syz_io_uring_complete(r1) # Close the file + close(r3) |
