// https://syzkaller.appspot.com/bug?id=284ea5a644f5ff5750cc2fd2f10fb0c387e9c032 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul); intptr_t res = 0; memcpy((void*)0x20000100, "/dev/crypto\000", 12); res = syscall(SYS_openat, 0xffffffffffffff9cul, 0x20000100ul, 0ul, 0ul); if (res != -1) r[0] = res; *(uint32_t*)0x20000080 = 0x17; *(uint32_t*)0x20000084 = 0; *(uint32_t*)0x20000088 = 0x10; *(uint64_t*)0x20000090 = 0x20000000; memcpy((void*)0x20000000, "\x83\xcb\xf0\x2a\x22\xb5\xbb\x55\x7e\xcf\x49\x72\xe8\xd6\x91\x9d", 16); *(uint32_t*)0x20000098 = 0; *(uint64_t*)0x200000a0 = 0; *(uint32_t*)0x200000a8 = 0; *(uint32_t*)0x200000ac = 0x7d86619b; *(uint32_t*)0x200000b0 = 0; *(uint32_t*)0x200000b4 = 0; *(uint32_t*)0x200000b8 = 0; *(uint32_t*)0x200000bc = 0; syscall(SYS_ioctl, r[0], 0xc040636aul, 0x20000080ul); res = syscall(SYS_dup2, r[0], r[0]); if (res != -1) r[1] = res; *(uint32_t*)0x20000280 = 0; *(uint16_t*)0x20000284 = 1; *(uint16_t*)0x20000286 = 0; *(uint32_t*)0x20000288 = 0x8001; *(uint64_t*)0x20000290 = 0x200000c0; *(uint64_t*)0x20000298 = 0; *(uint64_t*)0x200002a0 = 0; *(uint64_t*)0x200002a8 = 0x20000240; syscall(SYS_ioctl, r[1], 0xc0306367ul, 0x20000280ul); return 0; }