// https://syzkaller.appspot.com/bug?id=150eb4d23e1836652f0680c967836e7eae85af10 // 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*)0x20000040, "/dev/mdctl\000", 11); res = syscall(SYS_openat, 0xffffffffffffff9cul, 0x20000040ul, 0ul, 0ul); if (res != -1) r[0] = res; *(uint32_t*)0x20000100 = 0; *(uint32_t*)0x20000104 = 2; *(uint32_t*)0x20000108 = 4; *(uint64_t*)0x20000110 = 0; *(uint64_t*)0x20000118 = 0x8000; *(uint32_t*)0x20000120 = 5; *(uint32_t*)0x20000124 = 0x63; *(uint64_t*)0x20000128 = 0; *(uint32_t*)0x20000130 = 0xf35e; *(uint32_t*)0x20000134 = -1; *(uint64_t*)0x20000138 = 0; *(uint32_t*)0x20000140 = 2; *(uint32_t*)0x20000144 = 4; *(uint32_t*)0x20000148 = 1; *(uint32_t*)0x2000014c = 0x8001; *(uint32_t*)0x20000150 = 0x401; *(uint32_t*)0x20000154 = 4; *(uint32_t*)0x20000158 = 0x1000; *(uint32_t*)0x2000015c = 8; *(uint32_t*)0x20000160 = 0xffff; *(uint32_t*)0x20000164 = 0; *(uint32_t*)0x20000168 = 9; *(uint32_t*)0x2000016c = 8; *(uint32_t*)0x20000170 = 0x1f; *(uint32_t*)0x20000174 = 7; *(uint32_t*)0x20000178 = 1; *(uint32_t*)0x2000017c = 4; *(uint32_t*)0x20000180 = 0x80; *(uint32_t*)0x20000184 = 1; *(uint32_t*)0x20000188 = 0x10001; *(uint32_t*)0x2000018c = 1; *(uint32_t*)0x20000190 = 0xfa; *(uint32_t*)0x20000194 = 8; *(uint32_t*)0x20000198 = 3; *(uint32_t*)0x2000019c = 0x84f6; *(uint32_t*)0x200001a0 = 0xffff; *(uint32_t*)0x200001a4 = 9; *(uint32_t*)0x200001a8 = 5; *(uint32_t*)0x200001ac = 1; *(uint32_t*)0x200001b0 = 0xe9; *(uint32_t*)0x200001b4 = 1; *(uint32_t*)0x200001b8 = 0x40000000; *(uint32_t*)0x200001bc = 6; *(uint32_t*)0x200001c0 = 5; *(uint32_t*)0x200001c4 = 9; *(uint32_t*)0x200001c8 = 0x7f; *(uint32_t*)0x200001cc = 6; *(uint32_t*)0x200001d0 = 0x1ff; *(uint32_t*)0x200001d4 = 3; *(uint32_t*)0x200001d8 = 3; *(uint32_t*)0x200001dc = 0x800; *(uint32_t*)0x200001e0 = 4; *(uint32_t*)0x200001e4 = 0x7fff; *(uint32_t*)0x200001e8 = 0xff; *(uint32_t*)0x200001ec = 0x40; *(uint32_t*)0x200001f0 = 7; *(uint32_t*)0x200001f4 = 2; *(uint32_t*)0x200001f8 = 0x1ff; *(uint32_t*)0x200001fc = 3; *(uint32_t*)0x20000200 = 8; *(uint32_t*)0x20000204 = 5; *(uint32_t*)0x20000208 = 0xe4d8; *(uint32_t*)0x2000020c = 2; *(uint32_t*)0x20000210 = 0x7ff; *(uint32_t*)0x20000214 = 2; *(uint32_t*)0x20000218 = 4; *(uint32_t*)0x2000021c = 1; *(uint32_t*)0x20000220 = 9; *(uint32_t*)0x20000224 = 0; *(uint32_t*)0x20000228 = 0xa71; *(uint32_t*)0x2000022c = 0; *(uint32_t*)0x20000230 = 1; *(uint32_t*)0x20000234 = 0x8000; *(uint32_t*)0x20000238 = 0xfffffffb; *(uint32_t*)0x2000023c = 0; *(uint32_t*)0x20000240 = 0x401; *(uint32_t*)0x20000244 = 0xb9; *(uint32_t*)0x20000248 = 0x400; *(uint32_t*)0x2000024c = 7; *(uint32_t*)0x20000250 = 6; *(uint32_t*)0x20000254 = 1; *(uint32_t*)0x20000258 = 0x3ff; *(uint32_t*)0x2000025c = 0xfffffc00; *(uint32_t*)0x20000260 = 0xfffff001; *(uint32_t*)0x20000264 = 0; *(uint32_t*)0x20000268 = 0x4bfa; *(uint32_t*)0x2000026c = 9; *(uint32_t*)0x20000270 = 6; *(uint32_t*)0x20000274 = 0xff; *(uint32_t*)0x20000278 = 3; *(uint32_t*)0x2000027c = 9; *(uint32_t*)0x20000280 = 6; *(uint32_t*)0x20000284 = 7; *(uint32_t*)0x20000288 = 8; *(uint32_t*)0x2000028c = 0x745c4882; *(uint32_t*)0x20000290 = 0x5ef7; *(uint32_t*)0x20000294 = 8; *(uint32_t*)0x20000298 = 5; *(uint32_t*)0x2000029c = 3; *(uint32_t*)0x200002a0 = 9; *(uint32_t*)0x200002a4 = 6; *(uint32_t*)0x200002a8 = 0x7f; *(uint32_t*)0x200002ac = 0x4ef; *(uint32_t*)0x200002b0 = 0; *(uint32_t*)0x200002b4 = 0xffffa4a8; *(uint32_t*)0x200002b8 = 0; *(uint32_t*)0x200002bc = 4; syscall(SYS_ioctl, r[0], 0xc1c06d00ul, 0x20000100ul); return 0; }