// https://syzkaller.appspot.com/bug?id=d94a809ad1d24d41b7c4caf892d204dbf1112bff // 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, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); memcpy((void*)0x20000000, ".pending_reads\000", 15); syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000000ul, /*flags=*/0x2340ul, /*mode=*/0ul); memcpy((void*)0x20000000, ".pending_reads\000", 15); syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000000ul, /*flags=*/0x2340ul, /*mode=*/0ul); memcpy((void*)0x200008c0, "./bus\000", 6); syscall(__NR_mkdir, /*path=*/0x200008c0ul, /*mode=*/0ul); memcpy((void*)0x200002c0, "./file1\000", 8); syscall(__NR_mkdir, /*path=*/0x200002c0ul, /*mode=*/0ul); memcpy((void*)0x20000040, "./bus\000", 6); memcpy((void*)0x20000080, "overlay\000", 8); memcpy((void*)0x20000280, "upperdir=./bus,workdir=./file1,lowerdir=.", 41); syscall(__NR_mount, /*src=*/0ul, /*dst=*/0x20000040ul, /*type=*/0x20000080ul, /*flags=*/0ul, /*opts=*/0x20000280ul); memcpy((void*)0x20000480, "./file0\000", 8); syscall(__NR_creat, /*file=*/0x20000480ul, /*mode=*/0ul); memcpy((void*)0x20000000, "./bus/file0\000", 12); syscall(__NR_open, /*file=*/0x20000000ul, /*flags=*/0x101003ul, /*mode=*/0ul); return 0; }