// https://syzkaller.appspot.com/bug?id=7ac0a22dad5fe5907c7c5dd72dfa6c9ab6882755 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 0x0}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); intptr_t res = 0; memcpy((void*)0x20000080, "/dev/cuse\000", 10); res = syscall(__NR_openat, 0xffffffffffffff9c, 0x20000080, 0x2842, 0); if (res != -1) r[0] = res; res = syscall(__NR_io_setup, 1, 0x20000040); if (res != -1) r[1] = *(uint64_t*)0x20000040; *(uint64_t*)0x20002600 = 0x200000c0; *(uint64_t*)0x200000c0 = 0; *(uint32_t*)0x200000c8 = 0; *(uint32_t*)0x200000cc = 0; *(uint16_t*)0x200000d0 = 5; *(uint16_t*)0x200000d2 = 0; *(uint32_t*)0x200000d4 = r[0]; *(uint64_t*)0x200000d8 = 0; *(uint64_t*)0x200000e0 = 0; *(uint64_t*)0x200000e8 = 0; *(uint64_t*)0x200000f0 = 0; *(uint32_t*)0x200000f8 = 0; *(uint32_t*)0x200000fc = -1; syscall(__NR_io_submit, r[1], 1, 0x20002600); return 0; }