// https://syzkaller.appspot.com/bug?id=a33adfbe5191616c06fb664cb99c42003f424816 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #define do_sandbox_setuid() 0 #define do_sandbox_namespace() 0 #define setup_loop() #define reset_loop() #define setup_test() #define reset_test() uint64_t r[1] = {0xffffffffffffffff}; void loop() { long res = 0; memcpy((void*)0x20000080, "/dev/klog", 10); res = syscall(SYS_openat, 0xffffffffffffff9c, 0x20000080, 4, 1, 0); if (res != -1) r[0] = res; syscall(SYS_read, r[0], 0x200001c0, 0x14); } int main() { syscall(SYS_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }