// https://syzkaller.appspot.com/bug?id=ec98faccbdc8a99906eeaed3989831f56ef0930e // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; 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); intptr_t res = 0; res = syscall(__NR_socket, 0x200000100000011ul, 3ul, 0); if (res != -1) r[0] = res; res = syscall(__NR_socket, 2ul, 2ul, 0); if (res != -1) r[1] = res; syscall(__NR_ioctl, r[1], 0x8933, 0ul); { int i; for (i = 0; i < 32; i++) { syscall(__NR_ioctl, r[1], 0x8933, 0ul); } } *(uint32_t*)0x20000100 = 0x8008; syscall(__NR_setsockopt, r[0], 0x107, 0xf, 0x20000100ul, 4ul); syscall(__NR_bind, r[0], 0ul, 0ul); syscall(__NR_bind, -1, 0ul, 0ul); syscall(__NR_ioctl, -1, 0x8933, 0ul); memcpy((void*)0x20000600, "./file0\000", 8); syscall(__NR_mkdir, 0x20000600ul, 0ul); memcpy((void*)0x20000080, "./file0\000", 8); memcpy((void*)0x20000040, "./file0\000", 8); memcpy((void*)0x20000200, "incremental-fs\000", 15); syscall(__NR_mount, 0x20000080ul, 0x20000040ul, 0x20000200ul, 0ul, 0ul); { int i; for (i = 0; i < 64; i++) { syscall(__NR_mount, 0x20000080ul, 0x20000040ul, 0x20000200ul, 0ul, 0ul); } } memcpy((void*)0x200003c0, "./file0/file0\000", 14); syscall(__NR_open, 0x200003c0ul, 0ul, 0ul); return 0; }