// https://syzkaller.appspot.com/bug?id=f0e83251f8b05eb0bcb28db78ccf3128a152bfd4 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #define __syscall syscall uint64_t r[3] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x1012ul, -1, 0ul); intptr_t res = 0; res = syscall(SYS_socket, 1ul, 2ul, 0); if (res != -1) r[0] = res; res = syscall(SYS_socket, 0x18ul, 1ul, 0); if (res != -1) r[1] = res; syscall(SYS_fcntl, r[0], 0ul, r[1]); res = syscall(SYS_socket, 2ul, 2ul, 0); if (res != -1) r[2] = res; *(uint32_t*)0x200002c0 = 5; syscall(SYS_setsockopt, r[2], 0xffff, 0x1023, 0x200002c0ul, 4ul); return 0; }