// 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*)0x20000180, "/prof/kpctl", 12); syscall(SYS_openat, 0xffffffffffffff9c, 0x20000180, 0xc, 3, 0); memcpy((void*)0x20000580, "/dev/klog", 10); syscall(SYS_openat, 0xffffffffffffff9c, 0x20000580, 0xa, 1, 0); memcpy((void*)0x20000600, "/net/tcp/1/data", 16); syscall(SYS_openat, 0xffffffffffffff9c, 0x20000600, 0x10, 3, 0); memcpy((void*)0x20000640, "/dev/zero", 10); syscall(SYS_openat, 0xffffffffffffff9c, 0x20000640, 0xa, 1, 0); memcpy((void*)0x200006c0, "/dev/sysname", 13); syscall(SYS_openat, 0xffffffffffffff9c, 0x200006c0, 0xd, 3, 0); memcpy((void*)0x20000700, "/net/ipifc/0/ctl", 17); syscall(SYS_openat, 0xffffffffffffff9c, 0x20000700, 0x11, 3, 0); memcpy((void*)0x20000740, "/net/iprouter", 14); syscall(SYS_openat, 0xffffffffffffff9c, 0x20000740, 0xe, 3, 0); memcpy((void*)0x200007c0, "/proc/self/ns", 14); syscall(SYS_openat, 0xffffffffffffff9c, 0x200007c0, 0xe, 1, 0); memcpy((void*)0x20000800, "/net/ether0/2/type", 19); syscall(SYS_openat, 0xffffffffffffff9c, 0x20000800, 0x13, 1, 0); } int main() { syscall(SYS_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); for (;;) { loop(); } }