summaryrefslogtreecommitdiff
path: root/test/b19062a56726-test.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-04-23 12:05:18 -0600
committerJens Axboe <axboe@kernel.dk>2019-04-23 12:06:18 -0600
commit78f59df3339191a500d9a27e2fe9d2eea888a2e0 (patch)
treefb2dbc860f04220d8547791959a6a8bbfb1460f2 /test/b19062a56726-test.c
parentad45ed1d67833ccea7f20c60c0cd503e52998a56 (diff)
Add regression test cases for three recent issues
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test/b19062a56726-test.c')
-rw-r--r--test/b19062a56726-test.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/test/b19062a56726-test.c b/test/b19062a56726-test.c
new file mode 100644
index 0000000..62d4645
--- /dev/null
+++ b/test/b19062a56726-test.c
@@ -0,0 +1,50 @@
+// autogenerated by syzkaller (https://github.com/google/syzkaller)
+
+#include <endian.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/syscall.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#ifndef __NR_io_uring_setup
+#define __NR_io_uring_setup 425
+#endif
+
+int main(void)
+{
+ syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
+
+ *(uint32_t*)0x20000200 = 0;
+ *(uint32_t*)0x20000204 = 0;
+ *(uint32_t*)0x20000208 = 5;
+ *(uint32_t*)0x2000020c = 0x400;
+ *(uint32_t*)0x20000210 = 0;
+ *(uint32_t*)0x20000214 = 0;
+ *(uint32_t*)0x20000218 = 0;
+ *(uint32_t*)0x2000021c = 0;
+ *(uint32_t*)0x20000220 = 0;
+ *(uint32_t*)0x20000224 = 0;
+ *(uint32_t*)0x20000228 = 0;
+ *(uint32_t*)0x2000022c = 0;
+ *(uint32_t*)0x20000230 = 0;
+ *(uint32_t*)0x20000234 = 0;
+ *(uint32_t*)0x20000238 = 0;
+ *(uint32_t*)0x2000023c = 0;
+ *(uint32_t*)0x20000240 = 0;
+ *(uint32_t*)0x20000244 = 0;
+ *(uint64_t*)0x20000248 = 0;
+ *(uint32_t*)0x20000250 = 0;
+ *(uint32_t*)0x20000254 = 0;
+ *(uint32_t*)0x20000258 = 0;
+ *(uint32_t*)0x2000025c = 0;
+ *(uint32_t*)0x20000260 = 0;
+ *(uint32_t*)0x20000264 = 0;
+ *(uint32_t*)0x20000268 = 0;
+ *(uint32_t*)0x2000026c = 0;
+ *(uint64_t*)0x20000270 = 0;
+ syscall(__NR_io_uring_setup, 0xc9f, 0x20000200);
+ return 0;
+}