// https://syzkaller.appspot.com/bug?id=e634bd820c7bd376c401dd05f3ba79fe401f44ec // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_io_setup #define __NR_io_setup 245 #endif #ifndef __NR_io_submit #define __NR_io_submit 248 #endif #ifndef __NR_mmap #define __NR_mmap 192 #endif #ifndef __NR_socket #define __NR_socket 359 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 uint64_t r[2] = {0xffffffffffffffff, 0x0}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; res = syscall(__NR_socket, 0x26, 5, 0); if (res != -1) r[0] = res; res = syscall(__NR_io_setup, 0xffff, 0x20000180); if (res != -1) r[1] = *(uint32_t*)0x20000180; *(uint32_t*)0x20738000 = 0x20000040; *(uint64_t*)0x20000040 = 0; *(uint32_t*)0x20000048 = 0; *(uint32_t*)0x2000004c = 0; *(uint16_t*)0x20000050 = 5; *(uint16_t*)0x20000052 = 0; *(uint32_t*)0x20000054 = r[0]; *(uint64_t*)0x20000058 = 0; *(uint64_t*)0x20000060 = 0; *(uint64_t*)0x20000068 = 0; *(uint64_t*)0x20000070 = 0; *(uint32_t*)0x20000078 = 0; *(uint32_t*)0x2000007c = -1; syscall(__NR_io_submit, (long)r[1], 1, 0x20738000); return 0; }