// https://syzkaller.appspot.com/bug?id=924f61f6084bdb25ca671dde359fadfabe976b05 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; void loop() { long res = 0; res = syscall(__NR_socket, 0xa, 1, 0); if (res != -1) r[0] = res; *(uint32_t*)0x200000c0 = 1; syscall(__NR_setsockopt, r[0], 6, 0x13, 0x200000c0, 0x1d4); *(uint16_t*)0x20000080 = 0xa; *(uint16_t*)0x20000082 = htobe16(0); *(uint32_t*)0x20000084 = 0; *(uint8_t*)0x20000088 = 0; *(uint8_t*)0x20000089 = 0; *(uint8_t*)0x2000008a = 0; *(uint8_t*)0x2000008b = 0; *(uint8_t*)0x2000008c = 0; *(uint8_t*)0x2000008d = 0; *(uint8_t*)0x2000008e = 0; *(uint8_t*)0x2000008f = 0; *(uint8_t*)0x20000090 = 0; *(uint8_t*)0x20000091 = 0; *(uint8_t*)0x20000092 = 0; *(uint8_t*)0x20000093 = 0; *(uint8_t*)0x20000094 = 0; *(uint8_t*)0x20000095 = 0; *(uint8_t*)0x20000096 = 0; *(uint8_t*)0x20000097 = 0; *(uint32_t*)0x20000098 = 0; syscall(__NR_connect, r[0], 0x20000080, 0x1c); memcpy((void*)0x20000200, "tls", 4); syscall(__NR_setsockopt, r[0], 6, 0x1f, 0x20000200, 4); *(uint16_t*)0x20000100 = 0x303; *(uint16_t*)0x20000102 = 0x33; syscall(__NR_setsockopt, r[0], 0x11a, 2, 0x20000100, 0x28); *(uint32_t*)0x20000000 = r[0]; *(uint16_t*)0x20000004 = 0; *(uint16_t*)0x20000006 = 0; *(uint32_t*)0x20000008 = r[0]; *(uint16_t*)0x2000000c = 0x400c; *(uint16_t*)0x2000000e = 0; *(uint32_t*)0x20000010 = r[0]; *(uint16_t*)0x20000014 = 0x100; *(uint16_t*)0x20000016 = 0; *(uint32_t*)0x20000018 = r[0]; *(uint16_t*)0x2000001c = 0x5000; *(uint16_t*)0x2000001e = 0; *(uint32_t*)0x20000020 = r[0]; *(uint16_t*)0x20000024 = 0x80; *(uint16_t*)0x20000026 = 0; *(uint32_t*)0x20000028 = r[0]; *(uint16_t*)0x2000002c = 0x12; *(uint16_t*)0x2000002e = 0; *(uint32_t*)0x20000030 = r[0]; *(uint16_t*)0x20000034 = 0x2000; *(uint16_t*)0x20000036 = 0; syscall(__NR_poll, 0x20000000, 7, 0); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }