// https://syzkaller.appspot.com/bug?id=8276dfa5354da516d5a04cd57ca916bf043ea77a // 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*)0x200020c0, "./file0\000", 8); syscall(__NR_mkdir, 0x200020c0ul, 0ul); memcpy((void*)0x200002c0, "./file0\000", 8); memcpy((void*)0x20000000, "./file0\000", 8); memcpy((void*)0x20000340, "incremental-fs\000", 15); syscall(__NR_mount, 0x200002c0ul, 0x20000000ul, 0x20000340ul, 0ul, 0ul); { int i; for (i = 0; i < 64; i++) { syscall(__NR_mount, 0x200002c0ul, 0x20000000ul, 0x20000340ul, 0ul, 0ul); } } memcpy((void*)0x20000200, "./file0/file1\000", 14); syscall(__NR_openat, 0xffffffffffffff9cul, 0x20000200ul, 0ul, 0ul); return 0; }