// https://syzkaller.appspot.com/bug?id=6fb466a9470d6dee6b26c700110fd28823c3def2 // 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); intptr_t res = 0; memcpy((void*)0x200000c0, "./file0\000", 8); syscall(SYS_open, 0x200000c0, 0x80000000000206, 0); syscall(SYS_mlockall, 2); memcpy((void*)0x200000c0, "./file0\000", 8); res = syscall(SYS_open, 0x200000c0, 0, 0); if (res != -1) r[0] = res; syscall(SYS_mmap, 0x20e00000, 0x200000, 1, 0x12, r[0], 0); return 0; }