// https://syzkaller.appspot.com/bug?id=90f9738058b5de9e9e580f12eabb2816d506a610 // 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, 0x20000000, 0x1000000, 3, 0x32, -1, 0); intptr_t res = 0; res = syscall(__NR_socket, 0xa, 1, 0); if (res != -1) r[0] = res; *(uint16_t*)0x20000100 = 0xa; *(uint16_t*)0x20000102 = htobe16(0x4e22); *(uint32_t*)0x20000104 = htobe32(0); memcpy((void*)0x20000108, "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", 16); *(uint32_t*)0x20000118 = 0; syscall(__NR_bind, r[0], 0x20000100, 0x1c); syscall(__NR_listen, r[0], 0x80); res = syscall(__NR_socket, 0xa, 1, 0); if (res != -1) r[1] = res; *(uint16_t*)0x20000280 = 0xa; *(uint16_t*)0x20000282 = htobe16(0x4e22); *(uint32_t*)0x20000284 = htobe32(0); memcpy((void*)0x20000288, "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", 16); *(uint32_t*)0x20000298 = 0; syscall(__NR_sendto, r[1], 0, 0xfffffffffffffdc6, 0x20000004, 0x20000280, 0x1c); return 0; }