// 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, 1ul, 0); if (res != -1) r[0] = res; *(uint16_t*)0x20000180 = 0xa; *(uint16_t*)0x20000182 = htobe16(0x10); *(uint32_t*)0x20000184 = htobe32(0); memset((void*)0x20000188, 0, 16); *(uint32_t*)0x20000198 = 0; syscall(__NR_bind, r[0], 0x20000180ul, 0x1cul); *(uint16_t*)0x20000300 = 0xa; *(uint16_t*)0x20000302 = htobe16(0x4e23); *(uint32_t*)0x20000304 = htobe32(4); *(uint64_t*)0x20000308 = htobe64(0); *(uint64_t*)0x20000310 = htobe64(1); *(uint32_t*)0x20000318 = 0; syscall(__NR_connect, r[0], 0x20000300ul, 0x1cul); syscall(__NR_listen, r[0], 0); syscall(__NR_openat, 0xffffff9c, 0ul, 0x42ul, 0x1fful); return 0; }