// https://syzkaller.appspot.com/bug?id=52304f8f4b4e28508d52875f95df5e30417eff1b // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include static void test(); void loop() { while (1) { test(); } } long r[1]; void test() { memset(r, -1, sizeof(r)); syscall(__NR_mmap, 0x20000000, 0xfff000, 3, 0x32, -1, 0); memcpy((void*)0x20b4508a, "/dev/ashmem", 12); r[0] = syscall(__NR_openat, 0xffffffffffffff9c, 0x20b4508a, 0, 0); syscall(__NR_ioctl, r[0], 0x40087703, 0x7fffffffffffffff); syscall(__NR_mmap, 0x203f5000, 0x2000, 0, 0x1011, r[0], 0); } int main() { for (;;) { loop(); } }