// https://syzkaller.appspot.com/bug?id=1fcf27876ebb8a6449e650c45052331806010187 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include static void execute_one(); void loop() { while (1) { execute_one(); } } void execute_one() { memcpy((void*)0x20000100, "./file0", 8); memcpy((void*)0x20000140, "./file0/file0", 14); syscall(SYS_rename, 0x20000100, 8, 0x20000140, 0xe); memcpy((void*)0x200005c0, "./file0", 8); syscall(SYS_openat, -1, 0x200005c0, 8, 0x10043, 6); } int main() { syscall(SYS_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); for (;;) { loop(); } }