// https://syzkaller.appspot.com/bug?id=a85a088887c207571b990ac7b4c55ee20fc35d6b // 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, 0x2c, 3, 0); if (res != -1) r[0] = res; *(uint64_t*)0x20000040 = 0x20000000; *(uint64_t*)0x20000048 = 0x200002000; *(uint32_t*)0x20000050 = 0x800; *(uint32_t*)0x20000054 = 2; syscall(__NR_setsockopt, r[0], 0x11b, 4, 0x20000040, 0x18); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }