// 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 uint64_t r[3] = {0xffffffffffffffff, 0x0, 0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; res = syscall(__NR_socketpair, 1, 0x100000002, 0, 0x20000180); if (res != -1) r[0] = *(uint32_t*)0x20000184; res = syscall(__NR_io_setup, 0x7fe, 0x20000040); if (res != -1) r[1] = *(uint64_t*)0x20000040; res = syscall(__NR_dup2, r[0], r[0]); if (res != -1) r[2] = res; *(uint64_t*)0x20000940 = 0x20000240; *(uint64_t*)0x20000240 = 0; *(uint32_t*)0x20000248 = 0; *(uint32_t*)0x2000024c = 0; *(uint16_t*)0x20000250 = 7; *(uint16_t*)0x20000252 = 0x8fd; *(uint32_t*)0x20000254 = r[2]; *(uint64_t*)0x20000258 = 0; *(uint64_t*)0x20000260 = 0; *(uint64_t*)0x20000268 = 0xfffffffffffffffb; *(uint64_t*)0x20000270 = 0; *(uint32_t*)0x20000278 = 3; *(uint32_t*)0x2000027c = -1; *(uint64_t*)0x20000948 = 0; *(uint64_t*)0x20000950 = 0; *(uint64_t*)0x20000958 = 0; *(uint64_t*)0x20000960 = 0; *(uint64_t*)0x20000968 = 0; *(uint64_t*)0x20000970 = 0; *(uint64_t*)0x20000978 = 0; syscall(__NR_io_submit, r[1], 8, 0x20000940); return 0; }