// https://syzkaller.appspot.com/bug?id=ad9da2be119e0ca4626ef81bd90f6e67b425c74d // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); intptr_t res = 0; res = syscall(__NR_socket, /*domain=*/0xaul, /*type=*/1ul, /*proto=*/0x106); if (res != -1) r[0] = res; syscall(__NR_listen, /*fd=*/r[0], /*backlog=*/0); res = syscall(__NR_socket, /*domain=*/0x10ul, /*type=*/3ul, /*proto=*/4); if (res != -1) r[1] = res; *(uint64_t*)0x200000c0 = 0; *(uint32_t*)0x200000c8 = 0; *(uint64_t*)0x200000d0 = 0x20000140; *(uint64_t*)0x20000140 = 0x20000240; memcpy((void*)0x20000240, "\x54\x00\x00\x00\x13\x00\xf5\xa1\xab\x62\xff\x00\x00\x00\x00\x03\x00" "\x00\x0f\xff\x00\x00\x00\x00\x40\x00\x00\x02\x00\x00\x00\x08\xbc\x00" "\x00\xe9\x1e\x88\x4e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x20\x00\x00\x00", 56); *(uint32_t*)0x20000278 = 0; memcpy((void*)0x2000027c, "\x00\x00\x00\x49\x00\x00\x05\xff\xff\xff\xf0\x00\x00\x00\x4a\x9b\x08" "\x00\x03\x00\x06\x01", 22); *(uint64_t*)0x20000148 = 0x54; *(uint64_t*)0x200000d8 = 1; *(uint64_t*)0x200000e0 = 0; *(uint64_t*)0x200000e8 = 0; *(uint32_t*)0x200000f0 = 0; syscall(__NR_sendmsg, /*fd=*/r[1], /*msg=*/0x200000c0ul, /*f=*/0ul); return 0; }