// https://syzkaller.appspot.com/bug?id=4b03aca487051d9ad259fe9376f9357ab4614222 // 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*)0x20000400, "./file0\000", 8); syscall(__NR_mkdir, /*path=*/0x20000400ul, /*mode=*/0ul); memcpy((void*)0x20000200, "./file0\000", 8); memcpy((void*)0x200000c0, "overlay\000", 8); memcpy((void*)0x20000480, "lowerdir=.:file0", 16); syscall(__NR_mount, /*src=*/0ul, /*dst=*/0x20000200ul, /*type=*/0x200000c0ul, /*flags=*/0ul, /*opts=*/0x20000480ul); return 0; }