// https://syzkaller.appspot.com/bug?id=89267af3fd2bf65e173bbb9d69db050f29cba168 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul); intptr_t res = 0; memcpy((void*)0x20000000, "/dev/crypto\000", 12); res = syscall(SYS_openat, 0xffffffffffffff9cul, 0x20000000ul, 0ul, 0ul); if (res != -1) r[0] = res; *(uint32_t*)0x20000440 = 0x17; *(uint32_t*)0x20000444 = 0; *(uint32_t*)0x20000448 = 0x10; *(uint64_t*)0x20000450 = 0x200001c0; memcpy((void*)0x200001c0, "\x3c\x02\x2e\x61\x79\x2e\xec\xb0\x7f\x8a\xee\x18\xe5\xaa\x35\x05", 16); *(uint32_t*)0x20000458 = 0; *(uint64_t*)0x20000460 = 0; *(uint32_t*)0x20000468 = 0; *(uint32_t*)0x2000046c = 0xfdffffff; *(uint32_t*)0x20000470 = 0; *(uint32_t*)0x20000474 = 0; *(uint32_t*)0x20000478 = 0; *(uint32_t*)0x2000047c = 0; syscall(SYS_ioctl, r[0], 0xc040636aul, 0x20000440ul); *(uint32_t*)0x20000180 = 0; *(uint16_t*)0x20000184 = 1; *(uint16_t*)0x20000186 = 0; *(uint32_t*)0x20000188 = 7; *(uint64_t*)0x20000190 = 0x20000200; *(uint64_t*)0x20000198 = 0; *(uint64_t*)0x200001a0 = 0; *(uint64_t*)0x200001a8 = 0; syscall(SYS_ioctl, r[0], 0xc0306367ul, 0x20000180ul); return 0; }