// 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[3] = {0xffffffffffffffff, 0x0, 0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); intptr_t res = 0; memcpy((void*)0x200001c0, "/dev/cuse\000", 10); res = syscall(__NR_openat, 0xffffffffffffff9c, 0x200001c0, 0x82, 0); if (res != -1) r[0] = res; res = syscall(__NR_io_setup, 9, 0x20000080); if (res != -1) r[1] = *(uint64_t*)0x20000080; res = syscall(__NR_dup, r[0]); if (res != -1) r[2] = res; *(uint64_t*)0x20000540 = 0x20000180; *(uint64_t*)0x20000180 = 0; *(uint32_t*)0x20000188 = 0; *(uint32_t*)0x2000018c = 0; *(uint16_t*)0x20000190 = 5; *(uint16_t*)0x20000192 = 0; *(uint32_t*)0x20000194 = r[2]; *(uint64_t*)0x20000198 = 0; *(uint64_t*)0x200001a0 = 0; *(uint64_t*)0x200001a8 = 0; *(uint64_t*)0x200001b0 = 0; *(uint32_t*)0x200001b8 = 0; *(uint32_t*)0x200001bc = -1; syscall(__NR_io_submit, r[1], 1, 0x20000540); return 0; }