// 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; res = syscall(__NR_socketpair, 1, 5, 0, 0x20000140); if (res != -1) r[0] = *(uint32_t*)0x20000140; syscall(__NR_close, r[0]); memcpy((void*)0x200005c0, "/dev/cuse\000", 10); syscall(__NR_openat, 0xffffffffffffff9c, 0x200005c0, 0x121102, 0); res = syscall(__NR_io_setup, 8, 0x20000100); if (res != -1) r[1] = *(uint64_t*)0x20000100; *(uint64_t*)0x20000600 = 0x20000540; *(uint64_t*)0x20000540 = 0; *(uint32_t*)0x20000548 = 0; *(uint32_t*)0x2000054c = 0; *(uint16_t*)0x20000550 = 5; *(uint16_t*)0x20000552 = 0; *(uint32_t*)0x20000554 = r[0]; *(uint64_t*)0x20000558 = 0; *(uint64_t*)0x20000560 = 0; *(uint64_t*)0x20000568 = 0; *(uint64_t*)0x20000570 = 0; *(uint32_t*)0x20000578 = 0; *(uint32_t*)0x2000057c = -1; syscall(__NR_io_submit, r[1], 1, 0x20000600); return 0; }