// https://syzkaller.appspot.com/bug?id=cbf693554e7f0b00d6d1957c56e07af608c9c9d2 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include static void execute_one(); extern unsigned long long procid; void loop() { while (1) { execute_one(); } } uint64_t r[1] = {0xffffffffffffffff}; void execute_one() { long res = 0; memcpy((void*)0x20000000, "/dev/ptmx", 10); res = syscall(__NR_openat, 0xffffffffffffff9c, 0x20000000, 1, 0); if (res != -1) r[0] = res; syscall(__NR_write, r[0], 0x20c34fff, 0xffffff0b); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); for (;;) { loop(); } }