// https://syzkaller.appspot.com/bug?id=24bc7f3022b8fd1d99c48aec3e0bcac1628968e9 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #ifndef __NR_mmap #define __NR_mmap 192 #endif #ifndef __NR_socket #define __NR_socket 359 #endif #ifndef __NR_getsockopt #define __NR_getsockopt 365 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 long r[1]; void loop() { memset(r, -1, sizeof(r)); syscall(__NR_mmap, 0x20000000, 0x29000, 3, 0x32, -1, 0); r[0] = syscall(__NR_socket, 0xa, 2, 0); *(uint32_t*)0x2000d000 = 4; syscall(__NR_getsockopt, r[0], 0x29, 0x50, 0x20028000, 0x2000d000); } int main() { loop(); return 0; }