// https://syzkaller.appspot.com/bug?id=c0e5e8a9b9e0a6ce59be2302afe36b7de7e0aa03 // 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*)0x20003d40, "/dev/sg0\000", 9); memcpy((void*)0x20003d80, "./file0\000", 8); memcpy((void*)0x20003dc0, "tmpfs\000", 6); memcpy((void*)0x20003e00, "size", 4); syscall(__NR_mount, 0x20003d40ul, 0x20003d80ul, 0x20003dc0ul, 0ul, 0x20003e00ul); return 0; }