// https://syzkaller.appspot.com/bug?id=7b74f2b8e087a7cd0fa65044cf338dae29735d23 // 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, 0x0, 0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x1012ul, -1, 0ul, 0ul); intptr_t res = 0; res = syscall(SYS_socket, 2ul, 0x4003ul, 0); if (res != -1) r[0] = res; memcpy((void*)0x20000040, "./file0\000", 8); syscall(SYS_open, 0x20000040ul, 0x40341ul, 0ul); res = syscall(SYS_getpid); if (res != -1) r[1] = res; memcpy((void*)0x20000080, "./file0\000", 8); syscall(SYS_ktrace, 0x20000080ul, 0ul, 0xfcfc96ac7f78779eul, r[1]); memcpy((void*)0x20000040, "./file0\000", 8); res = syscall(SYS_open, 0x20000040ul, 0x60eul, 0ul); if (res != -1) r[2] = res; syscall(SYS_mmap, 0x20000000ul, 0x13000ul, 5ul, 0x10ul, r[2], 0ul, 0ul); syscall(SYS_connect, r[0], 0x20000240ul, 0x10ul); return 0; }