// https://syzkaller.appspot.com/bug?id=5237853955e2ac445de71091d37fc4cc37b7f981 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include const int kInitNetNsFd = 239; static long syz_init_net_socket(volatile long domain, volatile long type, volatile long proto) { return syscall(__NR_socket, domain, type, proto); } uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x32ul, -1, 0); intptr_t res = 0; res = syz_init_net_socket(0x1f, 3, 0); if (res != -1) r[0] = res; *(uint64_t*)0x20000140 = 0; syscall(__NR_getsockopt, r[0], 0x112ul, 0xeul, 0ul, 0x20000140ul); return 0; }