// https://syzkaller.appspot.com/bug?id=9b5d329205dd021a1ff89b705c5d40dc8c5e02a5 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #ifndef SYS_mmap #define SYS_mmap 197 #endif #ifndef SYS_setsockopt #define SYS_setsockopt 105 #endif #ifndef SYS_socket #define SYS_socket 394 #endif uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000, 0x1000000, 3, 0x1012, -1, 0, 0); long res = 0; res = syscall(SYS_socket, 2, 0x20000001, 0); if (res != -1) r[0] = res; memcpy((void*)0x200018c0, "\x63\xb4\x55\x32", 4); syscall(SYS_setsockopt, r[0], 6, 3, 0x200018c0, 4); return 0; }