// https://syzkaller.appspot.com/bug?id=225358f9a441634d655df9dcb12e442a77d9c3c5 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); memcpy((void*)0x20000140, "./file0\000", 8); syscall(__NR_mkdir, 0x20000140ul, 0ul); memcpy((void*)0x20000100, "./file0\000", 8); memcpy((void*)0x20000240, "sysfs\000", 6); syscall(__NR_mount, 0x200002c0ul, 0x20000100ul, 0x20000240ul, 0ul, 0ul); memcpy((void*)0x20000200, "./file0\000", 8); syscall(__NR_chdir, 0x20000200ul); memcpy((void*)0x20000080, "./bus\000", 6); memcpy((void*)0x20000040, ".\000", 2); syscall(__NR_rename, 0x20000080ul, 0x20000040ul); return 0; }