// https://syzkaller.appspot.com/bug?id=6366fc0d4b330eb0f95a736b02f14612697366b8 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void loop() { long res = 0; res = syscall(__NR_socket, 2, 3, 2); if (res != -1) r[0] = res; *(uint32_t*)0x20000080 = 0; syscall(__NR_setsockopt, r[0], 0, 0xc8, 0x20000080, 4); *(uint32_t*)0x200000c0 = 0; syscall(__NR_setsockopt, r[0], 0, 5, 0x200000c0, 4); res = syscall(__NR_socket, 2, 2, 0); if (res != -1) r[1] = res; *(uint32_t*)0x2001b000 = htobe32(0xe0000002); *(uint32_t*)0x2001b004 = htobe32(0x7f000001); *(uint8_t*)0x2001b008 = 0xac; *(uint8_t*)0x2001b009 = 0x14; *(uint8_t*)0x2001b00a = 0; *(uint8_t*)0x2001b00b = 0; syscall(__NR_setsockopt, r[1], 0, 0x27, 0x2001b000, 0xc); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }