// https://syzkaller.appspot.com/bug?id=a33adfbe5191616c06fb664cb99c42003f424816 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; void loop() { long res = 0; memcpy((void*)0x20000040, "/", 2); res = syscall(SYS_openat, -1, 0x20000040, 0x40, 0x21); if (res != -1) r[0] = res; syscall(SYS_read, r[0], 0x200000c0, 0xde); } int main() { syscall(SYS_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }