// https://syzkaller.appspot.com/bug?id=6317bbb466ee7673fdb42563a2ba310c04a0eae9 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #define __syscall syscall 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, 3, 0); if (res != -1) r[0] = res; *(uint16_t*)0x20000000 = 0x282; memcpy((void*)0x20000002, "./file0", 8); syscall(SYS_connect, r[0], 0x20000000, 0x10); *(uint16_t*)0x20000040 = 0; *(uint8_t*)0x20000042 = 0; *(uint32_t*)0x20000044 = 0; syscall(SYS_connect, r[0], 0x20000040, 8); *(uint64_t*)0x20000500 = 0; *(uint32_t*)0x20000508 = 0; *(uint64_t*)0x20000510 = 0; *(uint64_t*)0x20000518 = 0; *(uint64_t*)0x20000520 = 0; *(uint64_t*)0x20000528 = 0; *(uint32_t*)0x20000530 = 0x571; syscall(SYS_recvmsg, r[0], 0x20000500, 1); return 0; }