// https://syzkaller.appspot.com/bug?id=a01a02da149cc48c01ebc3ecb6eaf056b2665ad2 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; memcpy((void*)0x20000000, "/prof/kprintx\000", 14); res = syscall(SYS_openat, 0xffffffffffffff9c, 0x20000000, 0xe, 3, 0); if (res != -1) r[0] = res; syscall(SYS_write, r[0], 0x20000040, 0); return 0; }