// https://syzkaller.appspot.com/bug?id=eaf19f4b0d987acee3229c25eaa4994f2b3b94ea // 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, 2, 3, 0x11); if (res != -1) r[0] = res; *(uint64_t*)0x200008c0 = 0x20000000; *(uint16_t*)0x20000000 = 2; *(uint16_t*)0x20000002 = htobe16(0); *(uint32_t*)0x20000004 = htobe32(0x7f000001); *(uint8_t*)0x20000008 = 0; *(uint8_t*)0x20000009 = 0; *(uint8_t*)0x2000000a = 0; *(uint8_t*)0x2000000b = 0; *(uint8_t*)0x2000000c = 0; *(uint8_t*)0x2000000d = 0; *(uint8_t*)0x2000000e = 0; *(uint8_t*)0x2000000f = 0; *(uint32_t*)0x200008c8 = 0x10; *(uint64_t*)0x200008d0 = 0x20000640; *(uint64_t*)0x200008d8 = 0; *(uint64_t*)0x200008e0 = 0x20000700; *(uint64_t*)0x200008e8 = 0; *(uint32_t*)0x200008f0 = 0; syscall(__NR_sendmsg, r[0], 0x200008c0, 0x8000); *(uint64_t*)0x200002c0 = 0x20000240; *(uint16_t*)0x20000240 = 2; *(uint16_t*)0x20000242 = htobe16(0); *(uint32_t*)0x20000244 = htobe32(0x7f000001); *(uint8_t*)0x20000248 = 0; *(uint8_t*)0x20000249 = 0; *(uint8_t*)0x2000024a = 0; *(uint8_t*)0x2000024b = 0; *(uint8_t*)0x2000024c = 0; *(uint8_t*)0x2000024d = 0; *(uint8_t*)0x2000024e = 0; *(uint8_t*)0x2000024f = 0; *(uint32_t*)0x200002c8 = 0x80; *(uint64_t*)0x200002d0 = 0x200001c0; *(uint64_t*)0x200001c0 = 0x20000300; memcpy((void*)0x20000300, "\x4a\x2d\x55\x2c\x75\x7e\x65\xc7", 8); *(uint64_t*)0x200001c8 = 8; *(uint64_t*)0x200002d8 = 1; *(uint64_t*)0x200002e0 = 0x20000140; *(uint64_t*)0x200002e8 = 0; *(uint32_t*)0x200002f0 = 0; syscall(__NR_sendmsg, r[0], 0x200002c0, 0); *(uint32_t*)0x20005000 = 0; *(uint32_t*)0x20005004 = 0; *(uint32_t*)0x20005008 = 0; *(uint32_t*)0x2000500c = 0; *(uint32_t*)0x20005010 = 0; *(uint32_t*)0x20005014 = 0; } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }