// https://syzkaller.appspot.com/bug?id=2668718853a3764ffe6976db2451c75e34780d67 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; memcpy((void*)0x200006c0, "cpuacct.usage_percpu_sys", 25); syscall(__NR_openat, -1, 0x200006c0, 0, 0); memcpy((void*)0x20000080, "cpu.stat", 9); res = syscall(__NR_openat, 0xffffff9c, 0x20000080, 0x275a, 0); if (res != -1) r[0] = res; syscall(__NR_ioctl, r[0], 0x6611); memcpy((void*)0x200005c0, "syz1", 5); syscall(__NR_openat, -1, 0x200005c0, 0x200002, 0); return 0; }