// https://syzkaller.appspot.com/bug?id=adcd3457fd7a4b4d8855dd13f790ab533a8c31c0 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul); intptr_t res = 0; res = syscall(SYS_socket, 2ul, 2ul, 0x88); if (res != -1) r[0] = res; *(uint32_t*)0x200004c0 = r[0]; *(uint64_t*)0x200004c8 = 6; *(uint64_t*)0x200004d0 = 0; *(uint64_t*)0x200004d8 = 0; *(uint32_t*)0x200004e0 = 0; *(uint32_t*)0x200004e4 = 0x1ff; *(uint64_t*)0x200004e8 = 0x3ff; *(uint32_t*)0x200004f0 = 6; *(uint32_t*)0x200004f4 = 0x401; *(uint64_t*)0x200004f8 = 8; *(uint64_t*)0x20000500 = 0x812; *(uint64_t*)0x20000508 = 0; *(uint32_t*)0x20000510 = 0; *(uint32_t*)0x20000514 = 0x21; *(uint64_t*)0x20000518 = 2; *(uint32_t*)0x20000520 = -1; syscall(SYS_aio_read, 0x200004c0ul); syscall(SYS_shutdown, r[0], 0ul); return 0; }