// https://syzkaller.appspot.com/bug?id=9e4a19095ebae54877fbd1758779d99e0e9c4a86 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #ifndef __NR_openat #define __NR_openat 295 #endif #ifndef __NR_mmap #define __NR_mmap 192 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 void loop() { syscall(__NR_mmap, 0x20000000, 0xe84000, 3, 0x32, -1, 0); memcpy((void*)0x20000000, "/dev/sequencer", 15); syscall(__NR_openat, 0xffffff9c, 0x20000000, 0x40002, 0); memcpy((void*)0x20e81000, "/selinux/policy", 16); syscall(__NR_openat, 0xffffff9c, 0x20e81000, 0, 0); } int main() { loop(); return 0; }