// 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; res = syscall(__NR_socket, 2, 1, 0); if (res != -1) r[0] = res; *(uint32_t*)0x2039c000 = 1; syscall(__NR_setsockopt, r[0], 6, 0x10000000013, 0x2039c000, 4); *(uint32_t*)0x200b2000 = 1; syscall(__NR_setsockopt, r[0], 6, 0x14, 0x200b2000, 4); *(uint16_t*)0x20e45ff0 = 2; *(uint16_t*)0x20e45ff2 = htobe16(0x4e20); *(uint32_t*)0x20e45ff4 = htobe32(0x7f000001); *(uint8_t*)0x20e45ff8 = 0; *(uint8_t*)0x20e45ff9 = 0; *(uint8_t*)0x20e45ffa = 0; *(uint8_t*)0x20e45ffb = 0; *(uint8_t*)0x20e45ffc = 0; *(uint8_t*)0x20e45ffd = 0; *(uint8_t*)0x20e45ffe = 0; *(uint8_t*)0x20e45fff = 0; syscall(__NR_sendto, r[0], 0x20482000, 0x177, 0x800000120000001, 0x20e45ff0, 0x10); *(uint64_t*)0x20a77000 = 0x20bc7f9a; *(uint64_t*)0x20a77008 = 0xfffffffb; syscall(__NR_writev, r[0], 0x20a77000, 1); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }