// https://syzkaller.appspot.com/bug?id=4f430e796ee55ada94808a03945b9d1d31a7885d // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x32ul, -1, 0); intptr_t res = 0; *(uint64_t*)0x20000280 = 0; *(uint32_t*)0x20000288 = 0; *(uint64_t*)0x20000290 = 0x20000240; *(uint64_t*)0x20000240 = 0x20000080; memcpy((void*)0x20000080, "\x70\x00\x00\x00\x00\x01\x19\x05\x03\x00\x00\x00\x08\x00\x00\x00\x82" "\x00\x00\x00\x24\x00\x01\x00\x14\x00\x01\x00\x08\x00\x01\x00\xff\xff" "\xff\xff\x08\x00\x02\x00\xac\x1e\x00\x01\x0c\x00\x02\x00\x05\x00\x01" "\x00\x00\x00\x00\x00\x24\x00\x02\x00\x0c\x00\x02\x00\x05\x00\x01\x00" "\x00\x00\x00\x00\x14\x00\x01\x00\x08\x00\x01\x00\xe0\x00\x00\x02\x08" "\x00\x02\x00\x00\x00\x00\x00\x08\x00\x07\x00\x00\x00\x00\x00\x0c\x00" "\x06\x00\x08\x00\x01\x00\x7f\x00\x00\x01\x00\x94\x6f\xa2\xed\x16\xdf" "\xba\xe9\xf1\x4f\xca\xe2\x29", 126); *(uint64_t*)0x20000248 = 0x70; *(uint64_t*)0x20000298 = 1; *(uint64_t*)0x200002a0 = 0; *(uint64_t*)0x200002a8 = 0; *(uint32_t*)0x200002b0 = 0; syscall(__NR_sendmsg, -1, 0x20000280ul, 0ul); res = syscall(__NR_socket, 0x10ul, 3ul, 0xcul); if (res != -1) r[0] = res; *(uint64_t*)0x20000640 = 0; *(uint32_t*)0x20000648 = 0; *(uint64_t*)0x20000650 = 0x20000200; *(uint64_t*)0x20000200 = 0; *(uint64_t*)0x20000208 = 0; *(uint64_t*)0x20000658 = 8; *(uint64_t*)0x20000660 = 0; *(uint64_t*)0x20000668 = 0; *(uint32_t*)0x20000670 = 0; syscall(__NR_sendmsg, r[0], 0x20000640ul, 0ul); return 0; }