// 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[2] = {0xffffffffffffffff, 0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; res = syscall(__NR_openat, 0xffffff9c, 0, 0x26e1, 0); if (res != -1) r[0] = res; *(uint64_t*)0x20000000 = 0; syscall(__NR_ioctl, r[0], 0x40086602, 0x20000000); memcpy((void*)0x20000140, "memory.events", 14); res = syscall(__NR_openat, 0xffffff9c, 0x20000140, 0x7a05, 0x1700); if (res != -1) r[1] = res; *(uint8_t*)0x20000040 = 0; memcpy((void*)0x20000041, "io", 2); *(uint8_t*)0x20000043 = 0x20; syscall(__NR_write, r[0], 0x20000040, 0xfeec); syscall(__NR_write, r[1], 0x20000000, 0xfffffcdd); return 0; }