// https://syzkaller.appspot.com/bug?id=d0610cdc1da3d04b42ec8453d780e181fae45ef2 // 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, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); intptr_t res = 0; res = syscall(__NR_socket, 0xaul, 0x400000000001ul, 0); if (res != -1) r[0] = res; *(uint32_t*)0x20000040 = 0x401; syscall(__NR_setsockopt, r[0], 0x29, 0x33, 0x20000040ul, 4ul); *(uint16_t*)0x20000140 = 0xa; *(uint16_t*)0x20000142 = htobe16(0x4e20); *(uint32_t*)0x20000144 = htobe32(0); *(uint64_t*)0x20000148 = htobe64(0); *(uint64_t*)0x20000150 = htobe64(1); *(uint32_t*)0x20000158 = 2; syscall(__NR_bind, r[0], 0x20000140ul, 0x1cul); *(uint16_t*)0x200002c0 = 0xa; *(uint16_t*)0x200002c2 = htobe16(0x4e20); *(uint32_t*)0x200002c4 = htobe32(0); *(uint64_t*)0x200002c8 = htobe64(0); *(uint64_t*)0x200002d0 = htobe64(1); *(uint32_t*)0x200002d8 = 0; syscall(__NR_sendto, r[0], 0ul, 0ul, 0x20000008ul, 0x200002c0ul, 0x1cul); return 0; }