// https://syzkaller.appspot.com/bug?id=e7585ccdbb8513b9deb055a477bf31160a846c4c // 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*)0x20000080, "/dev/mdctl\000", 11); res = syscall(SYS_openat, 0xffffffffffffff9cul, 0x20000080ul, 0ul, 0ul); if (res != -1) r[0] = res; *(uint32_t*)0x200002c0 = 0; *(uint32_t*)0x200002c4 = 9; *(uint32_t*)0x200002c8 = 4; *(uint64_t*)0x200002d0 = 0; *(uint64_t*)0x200002d8 = 0x1b6400000000; *(uint32_t*)0x200002e0 = 8; *(uint32_t*)0x200002e4 = 0x97; *(uint64_t*)0x200002e8 = 1; *(uint32_t*)0x200002f0 = 4; *(uint32_t*)0x200002f4 = 0xce72; *(uint64_t*)0x200002f8 = 0; *(uint32_t*)0x20000300 = 0x400; *(uint32_t*)0x20000304 = 0x800; *(uint32_t*)0x20000308 = 4; *(uint32_t*)0x2000030c = 0x80000000; *(uint32_t*)0x20000310 = 3; *(uint32_t*)0x20000314 = 0x3f; *(uint32_t*)0x20000318 = 0x39; *(uint32_t*)0x2000031c = 9; *(uint32_t*)0x20000320 = 0x10001; *(uint32_t*)0x20000324 = 6; *(uint32_t*)0x20000328 = 0; *(uint32_t*)0x2000032c = 0x3f; *(uint32_t*)0x20000330 = 0x16; *(uint32_t*)0x20000334 = 0x4e; *(uint32_t*)0x20000338 = 0x101; *(uint32_t*)0x2000033c = 0x1000; *(uint32_t*)0x20000340 = 0x58; *(uint32_t*)0x20000344 = 0x10000; *(uint32_t*)0x20000348 = 0x55eb; *(uint32_t*)0x2000034c = 0; *(uint32_t*)0x20000350 = 1; *(uint32_t*)0x20000354 = 0x8000000; *(uint32_t*)0x20000358 = 4; *(uint32_t*)0x2000035c = 1; *(uint32_t*)0x20000360 = 9; *(uint32_t*)0x20000364 = 0; *(uint32_t*)0x20000368 = 0x200; *(uint32_t*)0x2000036c = 2; *(uint32_t*)0x20000370 = 1; *(uint32_t*)0x20000374 = 6; *(uint32_t*)0x20000378 = 2; *(uint32_t*)0x2000037c = 0x100; *(uint32_t*)0x20000380 = 0x1ff; *(uint32_t*)0x20000384 = 0; *(uint32_t*)0x20000388 = 0x80; *(uint32_t*)0x2000038c = 0x40; *(uint32_t*)0x20000390 = 0xe7; *(uint32_t*)0x20000394 = 1; *(uint32_t*)0x20000398 = 1; *(uint32_t*)0x2000039c = 0xff; *(uint32_t*)0x200003a0 = 0xf3; *(uint32_t*)0x200003a4 = 0x3a2; *(uint32_t*)0x200003a8 = 0x7fffffff; *(uint32_t*)0x200003ac = 3; *(uint32_t*)0x200003b0 = 1; *(uint32_t*)0x200003b4 = 8; *(uint32_t*)0x200003b8 = 0x101; *(uint32_t*)0x200003bc = 0x200; *(uint32_t*)0x200003c0 = 4; *(uint32_t*)0x200003c4 = 0x8000; *(uint32_t*)0x200003c8 = 0x969; *(uint32_t*)0x200003cc = 4; *(uint32_t*)0x200003d0 = 0x1a85e459; *(uint32_t*)0x200003d4 = 1; *(uint32_t*)0x200003d8 = 0xfffffff8; *(uint32_t*)0x200003dc = 0x358; *(uint32_t*)0x200003e0 = 6; *(uint32_t*)0x200003e4 = 4; *(uint32_t*)0x200003e8 = 0xb; *(uint32_t*)0x200003ec = 1; *(uint32_t*)0x200003f0 = 0x10001; *(uint32_t*)0x200003f4 = 0; *(uint32_t*)0x200003f8 = 7; *(uint32_t*)0x200003fc = 0x7f; *(uint32_t*)0x20000400 = 9; *(uint32_t*)0x20000404 = 8; *(uint32_t*)0x20000408 = 0x80000000; *(uint32_t*)0x2000040c = 0x3ff00000; *(uint32_t*)0x20000410 = 2; *(uint32_t*)0x20000414 = 7; *(uint32_t*)0x20000418 = 0x800; *(uint32_t*)0x2000041c = 0xc82; *(uint32_t*)0x20000420 = 7; *(uint32_t*)0x20000424 = 9; *(uint32_t*)0x20000428 = 0x81d; *(uint32_t*)0x2000042c = 7; *(uint32_t*)0x20000430 = 0x80000001; *(uint32_t*)0x20000434 = 7; *(uint32_t*)0x20000438 = 0x7fffffff; *(uint32_t*)0x2000043c = 7; *(uint32_t*)0x20000440 = 6; *(uint32_t*)0x20000444 = -1; *(uint32_t*)0x20000448 = 0x51; *(uint32_t*)0x2000044c = 1; *(uint32_t*)0x20000450 = 0x3ff; *(uint32_t*)0x20000454 = 6; *(uint32_t*)0x20000458 = 5; *(uint32_t*)0x2000045c = 3; *(uint32_t*)0x20000460 = 2; *(uint32_t*)0x20000464 = 1; *(uint32_t*)0x20000468 = 0x1000; *(uint32_t*)0x2000046c = 0xb1d; *(uint32_t*)0x20000470 = 0x400; *(uint32_t*)0x20000474 = 0x40; *(uint32_t*)0x20000478 = 2; *(uint32_t*)0x2000047c = 6; syscall(SYS_ioctl, r[0], 0xc1c06d00ul, 0x200002c0ul); return 0; }