// https://syzkaller.appspot.com/bug?id=2ba02045eb5dbeb12c20b68c462f4866fed8c949 // 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; *(uint32_t*)0x20000000 = 1; syscall(__NR_setsockopt, r[0], 6, 0x13, 0x20000000ul, 4ul); *(uint16_t*)0x20000200 = 0xa; *(uint16_t*)0x20000202 = htobe16(0); *(uint32_t*)0x20000204 = htobe32(0); memset((void*)0x20000208, 0, 16); *(uint32_t*)0x20000218 = 0; syscall(__NR_connect, r[0], 0x20000200ul, 0x1cul); memcpy((void*)0x20000540, "tls\000", 4); syscall(__NR_setsockopt, r[0], 6, 0x1f, 0x20000540ul, 4ul); *(uint32_t*)0x20000140 = -1; *(uint64_t*)0x20000148 = 0; *(uint64_t*)0x20000150 = 0; *(uint64_t*)0x20000158 = 0x80000000; syscall(__NR_ioctl, -1, 0xc020f509, 0x20000140ul); *(uint16_t*)0x20000040 = 0x303; *(uint16_t*)0x20000042 = 0x33; memcpy((void*)0x20000044, "\x2e\x99\x16\x92\x00\x20\xb9\xad", 8); memcpy((void*)0x2000004c, "\x53\x49\x9a\xdd\xa3\x7e\x5c\x14\x26\x5f\x29\x8f\x9f\x57\x22\xd7", 16); memset((void*)0x2000005c, 0, 4); memcpy((void*)0x20000060, "\xc7\x91\xd3\x43\x04\xbb\x24\xeb", 8); syscall(__NR_setsockopt, r[0], 0x11a, 1, 0x20000040ul, 0x28ul); *(uint64_t*)0x20000080 = 0x200000c0; memset((void*)0x200000c0, 207, 1); *(uint64_t*)0x20000088 = 0x3fe3; syscall(__NR_writev, r[0], 0x20000080ul, 0x27ful); return 0; }