// https://syzkaller.appspot.com/bug?id=d38ed0177151ca71af235c613ab4897461cf9ff3 // 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, 2, 1, 0); if (res != -1) r[0] = res; *(uint32_t*)0x20d06000 = 1; syscall(__NR_setsockopt, r[0], 6, 0x10000000013, 0x20d06000, 4); *(uint32_t*)0x20000040 = 1; syscall(__NR_setsockopt, r[0], 6, 0x4000000000014, 0x20000040, 4); *(uint16_t*)0x20000180 = 2; *(uint16_t*)0x20000182 = htobe16(0); *(uint8_t*)0x20000184 = 0xac; *(uint8_t*)0x20000185 = 0x14; *(uint8_t*)0x20000186 = 0x14; *(uint8_t*)0x20000187 = 0xbb; *(uint8_t*)0x20000188 = 0; *(uint8_t*)0x20000189 = 0; *(uint8_t*)0x2000018a = 0; *(uint8_t*)0x2000018b = 0; *(uint8_t*)0x2000018c = 0; *(uint8_t*)0x2000018d = 0; *(uint8_t*)0x2000018e = 0; *(uint8_t*)0x2000018f = 0; syscall(__NR_connect, r[0], 0x20000180, 0x10); *(uint64_t*)0x20000400 = 0x200003c0; memcpy((void*)0x200003c0, "\x18", 1); *(uint64_t*)0x20000408 = 1; syscall(__NR_writev, r[0], 0x20000400, 1); syscall(__NR_sendto, r[0], 0x20000140, 0xeffdffff0001114e, 0, 0, 0); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }