// https://syzkaller.appspot.com/bug?id=9253638353fa73b900167c64495455f5327644bd // 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*)0x20000280, "./bus\000", 6); syscall(__NR_mkdir, 0x20000280ul, 0ul); memcpy((void*)0x20000140, "./file0\000", 8); syscall(__NR_mkdir, 0x20000140ul, 0ul); memcpy((void*)0x20000040, "./file1\000", 8); syscall(__NR_mkdir, 0x20000040ul, 0ul); memcpy((void*)0x20000300, "./bus/file0\000", 12); syscall(__NR_mknod, 0x20000300ul, 0ul, 0); memcpy((void*)0x20000180, "./bus/file0\000", 12); memcpy((void*)0x20000200, "./bus/file1\000", 12); syscall(__NR_link, 0x20000180ul, 0x20000200ul); memcpy((void*)0x200000c0, "./bus\000", 6); memcpy((void*)0x20000100, "overlay\000", 8); memcpy((void*)0x20000480, "upperdir=./file1,lowerdir=./bus,workdir=./file0,nfs_export=on", 61); syscall(__NR_mount, 0x400002ul, 0x200000c0ul, 0x20000100ul, 0ul, 0x20000480ul); memcpy((void*)0x20000000, "./bus/file1\000", 12); syscall(__NR_open, 0x20000000ul, 0x2003ul, 0ul); return 0; }