// https://syzkaller.appspot.com/bug?id=1dc700fb992a842f54fa62273776713af1ebeb96 // 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/mdctl\000", 11); res = syscall(SYS_openat, 0xffffffffffffff9cul, 0x20000000ul, 0ul, 0ul); if (res != -1) r[0] = res; *(uint32_t*)0x20000300 = 0; *(uint32_t*)0x20000304 = 0xe41f; *(uint32_t*)0x20000308 = 0; *(uint64_t*)0x20000310 = 0; *(uint64_t*)0x20000318 = 9; *(uint32_t*)0x20000320 = 4; *(uint32_t*)0x20000324 = 0; *(uint64_t*)0x20000328 = 0x1ff; *(uint32_t*)0x20000330 = 0x401; *(uint32_t*)0x20000334 = 0xc05e; *(uint64_t*)0x20000338 = 0; *(uint32_t*)0x20000340 = 0xfd42; *(uint32_t*)0x20000344 = 0; *(uint32_t*)0x20000348 = 0xab4a; *(uint32_t*)0x2000034c = 2; *(uint32_t*)0x20000350 = 0x373f76e1; *(uint32_t*)0x20000354 = 0; *(uint32_t*)0x20000358 = 4; *(uint32_t*)0x2000035c = 0xb7c; *(uint32_t*)0x20000360 = 2; *(uint32_t*)0x20000364 = 5; *(uint32_t*)0x20000368 = 0; *(uint32_t*)0x2000036c = 0xfff; *(uint32_t*)0x20000370 = 8; *(uint32_t*)0x20000374 = 5; *(uint32_t*)0x20000378 = 0x98; *(uint32_t*)0x2000037c = 0x3ff; *(uint32_t*)0x20000380 = 0x57f; *(uint32_t*)0x20000384 = 9; *(uint32_t*)0x20000388 = 9; *(uint32_t*)0x2000038c = 0x9918; *(uint32_t*)0x20000390 = 0x2a56; *(uint32_t*)0x20000394 = 0x1f; *(uint32_t*)0x20000398 = 0; *(uint32_t*)0x2000039c = 1; *(uint32_t*)0x200003a0 = 1; *(uint32_t*)0x200003a4 = 2; *(uint32_t*)0x200003a8 = 9; *(uint32_t*)0x200003ac = 4; *(uint32_t*)0x200003b0 = 6; *(uint32_t*)0x200003b4 = 0x3dd9; *(uint32_t*)0x200003b8 = 0xfffffff7; *(uint32_t*)0x200003bc = 0xffff; *(uint32_t*)0x200003c0 = 0; *(uint32_t*)0x200003c4 = 0; *(uint32_t*)0x200003c8 = 0x7fffffff; *(uint32_t*)0x200003cc = 2; *(uint32_t*)0x200003d0 = 0xfffffe46; *(uint32_t*)0x200003d4 = 9; *(uint32_t*)0x200003d8 = 0x8001; *(uint32_t*)0x200003dc = 0xfffffffb; *(uint32_t*)0x200003e0 = 0x3f; *(uint32_t*)0x200003e4 = 1; *(uint32_t*)0x200003e8 = 1; *(uint32_t*)0x200003ec = 1; *(uint32_t*)0x200003f0 = 4; *(uint32_t*)0x200003f4 = 3; *(uint32_t*)0x200003f8 = 0x7ff; *(uint32_t*)0x200003fc = 3; *(uint32_t*)0x20000400 = 8; *(uint32_t*)0x20000404 = 7; *(uint32_t*)0x20000408 = 0xfffffffd; *(uint32_t*)0x2000040c = 0x40; *(uint32_t*)0x20000410 = 9; *(uint32_t*)0x20000414 = 0x4d; *(uint32_t*)0x20000418 = 0x100; *(uint32_t*)0x2000041c = 9; *(uint32_t*)0x20000420 = 0x7f; *(uint32_t*)0x20000424 = -1; *(uint32_t*)0x20000428 = 0x40; *(uint32_t*)0x2000042c = 6; *(uint32_t*)0x20000430 = 9; *(uint32_t*)0x20000434 = 5; *(uint32_t*)0x20000438 = 0; *(uint32_t*)0x2000043c = 4; *(uint32_t*)0x20000440 = 2; *(uint32_t*)0x20000444 = 0x81; *(uint32_t*)0x20000448 = 0x20; *(uint32_t*)0x2000044c = 7; *(uint32_t*)0x20000450 = 6; *(uint32_t*)0x20000454 = 0; *(uint32_t*)0x20000458 = 5; *(uint32_t*)0x2000045c = 0x1000; *(uint32_t*)0x20000460 = 4; *(uint32_t*)0x20000464 = -1; *(uint32_t*)0x20000468 = 0x101; *(uint32_t*)0x2000046c = 0; *(uint32_t*)0x20000470 = 1; *(uint32_t*)0x20000474 = 2; *(uint32_t*)0x20000478 = 0x83; *(uint32_t*)0x2000047c = 0xa1; *(uint32_t*)0x20000480 = 9; *(uint32_t*)0x20000484 = 0x200; *(uint32_t*)0x20000488 = 1; *(uint32_t*)0x2000048c = 2; *(uint32_t*)0x20000490 = 0xc29; *(uint32_t*)0x20000494 = 1; *(uint32_t*)0x20000498 = 0x800; *(uint32_t*)0x2000049c = 6; *(uint32_t*)0x200004a0 = 1; *(uint32_t*)0x200004a4 = 8; *(uint32_t*)0x200004a8 = 3; *(uint32_t*)0x200004ac = 0xffff; *(uint32_t*)0x200004b0 = 3; *(uint32_t*)0x200004b4 = 0x400; *(uint32_t*)0x200004b8 = 0x20; *(uint32_t*)0x200004bc = 0x1ff; syscall(SYS_ioctl, r[0], 0xc1c06d00ul, 0x20000300ul); return 0; }