// https://syzkaller.appspot.com/bug?id=77d71b927fdbb036e6c8c044b1c7bccc9b8db877 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include static void execute_one(); void loop() { while (1) { execute_one(); } } void execute_one() { memcpy((void*)0x200001c0, "/prof/kpctl", 12); syscall(SYS_openat, 0xffffffffffffff9c, 0x200001c0, 0xc, 3, 0); memcpy((void*)0x20000740, "/proc/self/syscall", 19); syscall(SYS_openat, 0xffffffffffffff9c, 0x20000740, 0x13, 1, 0); memcpy((void*)0x20000780, "/net/tcp/1/data", 16); syscall(SYS_openat, 0xffffffffffffff9c, 0x20000780, 0x10, 3, 0); memcpy((void*)0x20000000, "/dev/bintime", 13); syscall(SYS_openat, 0xffffffffffffff9c, 0x20000000, 0xd, 3, 0); memcpy((void*)0x20000100, "/net/udp/0/err", 15); syscall(SYS_openat, 0xffffffffffffff9c, 0x20000100, 0xf, 3, 0); memcpy((void*)0x20000080, "/dev/consctl", 13); syscall(SYS_openat, 0xffffffffffffff9c, 0x20000080, 0xd, 3, 0); } int main() { syscall(SYS_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); for (;;) { loop(); } }