// https://syzkaller.appspot.com/bug?id=004b0f7b61d4901cbfecfc33de7996e8cbe0a278 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; void loop() { long res = 0; res = syscall(__NR_socket, 0x2b, 1, 0); if (res != -1) r[0] = res; *(uint64_t*)0x20000840 = 0x20000440; *(uint16_t*)0x20000440 = 3; memcpy((void*)0x20000442, "\xbe\x94\xc4\xfc\xf5\x58\x18", 7); *(uint32_t*)0x2000044c = 6; *(uint32_t*)0x20000848 = 0x80; *(uint64_t*)0x20000850 = 0x200005c0; *(uint64_t*)0x200005c0 = 0x200001c0; *(uint64_t*)0x200005c8 = 0; *(uint64_t*)0x200005d0 = 0x200004c0; *(uint64_t*)0x200005d8 = 0; *(uint64_t*)0x20000858 = 2; *(uint64_t*)0x20000860 = 0x20000600; *(uint64_t*)0x20000600 = 0x10; *(uint32_t*)0x20000608 = 0x10f; *(uint32_t*)0x2000060c = 8; *(uint64_t*)0x20000610 = 0x10; *(uint32_t*)0x20000618 = 0x10f; *(uint32_t*)0x2000061c = 4; *(uint64_t*)0x20000620 = 0x10; *(uint32_t*)0x20000628 = 0x11c; *(uint32_t*)0x2000062c = 7; *(uint64_t*)0x20000630 = 0x10; *(uint32_t*)0x20000638 = 0; *(uint32_t*)0x2000063c = 0x20; *(uint64_t*)0x20000640 = 0x10; *(uint32_t*)0x20000648 = 0x11f; *(uint32_t*)0x2000064c = 0x101; *(uint64_t*)0x20000868 = 0x50; *(uint32_t*)0x20000870 = 0x20040881; syscall(__NR_sendmsg, r[0], 0x20000840, 0x20008000); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }