// https://syzkaller.appspot.com/bug?id=9b10db0a2f723cb7bc0e77963335b7a918035af8 // 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(); } }