// https://syzkaller.appspot.com/bug?id=5354f1d031a05ad221d00f040e18dc90a2ffd180 // 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); intptr_t res = 0; memcpy((void*)0x20000100, "/dev/ashmem\000", 12); res = syscall(__NR_openat, 0xffffffffffffff9c, 0x20000100, 0, 0); if (res != -1) r[0] = res; syscall(__NR_ioctl, r[0], 0x40087703, 0xa); syscall(__NR_mmap, 0x20701000, 0x1000, 0, 0x12, r[0], 0); memcpy((void*)0x20000080, "\000\000\000\000\000\000\000\000\001", 9); syscall(__NR_ioctl, r[0], 0x40087708, 0x20000080); syscall(__NR_ioctl, r[0], 0x770a, 0); return 0; }