// https://syzkaller.appspot.com/bug?id=060812edfbdc4df7774181b290a297687510fccf // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000, 0x1000000, 3, 0x1012, -1, 0); long res = 0; res = syscall(SYS_socket, 2, 2, 0); if (res != -1) r[0] = res; *(uint16_t*)0x20000000 = 0x282; memcpy((void*)0x20000002, "./file0\000", 8); syscall(SYS_connect, r[0], 0x20000000, 0x10); *(uint64_t*)0x20001480 = 0; *(uint32_t*)0x20001488 = 0; *(uint64_t*)0x20001490 = 0; *(uint64_t*)0x20001498 = 0; *(uint64_t*)0x200014a0 = 0x20001440; *(uint64_t*)0x20001440 = 0x14; *(uint32_t*)0x20001448 = 7; *(uint32_t*)0x2000144c = 1; *(uint64_t*)0x20001450 = 0x2d00800a; *(uint32_t*)0x20001458 = 0xffff; *(uint32_t*)0x2000145c = 2; *(uint32_t*)0x20001460 = 0; *(uint32_t*)0x20001464 = 0; *(uint32_t*)0x20001468 = 0; *(uint64_t*)0x200014a8 = 0x18; *(uint32_t*)0x200014b0 = 0; syscall(SYS_sendmsg, r[0], 0x20001480, 0); return 0; }