// https://syzkaller.appspot.com/bug?id=3943bd791c7ac464be145b4c9148d9a0a34cce5c // 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, 0x800ul, 0ul); if (res != -1) r[0] = res; *(uint32_t*)0x200000c0 = 0; *(uint32_t*)0x200000c4 = 0x69; *(uint32_t*)0x200000c8 = 0; *(uint64_t*)0x200000d0 = 0; *(uint64_t*)0x200000d8 = 0xffff; *(uint32_t*)0x200000e0 = 4; *(uint32_t*)0x200000e4 = 0; *(uint64_t*)0x200000e8 = 0xc419; *(uint32_t*)0x200000f0 = 8; *(uint32_t*)0x200000f4 = 0x80000000; *(uint64_t*)0x200000f8 = 0; *(uint32_t*)0x20000100 = 9; *(uint32_t*)0x20000104 = 0x101; *(uint32_t*)0x20000108 = 9; *(uint32_t*)0x2000010c = 0x740; *(uint32_t*)0x20000110 = 0xbf; *(uint32_t*)0x20000114 = 5; *(uint32_t*)0x20000118 = 0; *(uint32_t*)0x2000011c = 0x1000; *(uint32_t*)0x20000120 = 0x1f; *(uint32_t*)0x20000124 = 7; *(uint32_t*)0x20000128 = 0xfff; *(uint32_t*)0x2000012c = 0xfffffffc; *(uint32_t*)0x20000130 = 6; *(uint32_t*)0x20000134 = 0xfffffffd; *(uint32_t*)0x20000138 = 0; *(uint32_t*)0x2000013c = 0xffff033e; *(uint32_t*)0x20000140 = 0x3c0c7688; *(uint32_t*)0x20000144 = 8; *(uint32_t*)0x20000148 = 0x661; *(uint32_t*)0x2000014c = 0xfff; *(uint32_t*)0x20000150 = 0x100; *(uint32_t*)0x20000154 = -1; *(uint32_t*)0x20000158 = 0x20; *(uint32_t*)0x2000015c = 0x4f08ab1; *(uint32_t*)0x20000160 = 0; *(uint32_t*)0x20000164 = 0x3f; *(uint32_t*)0x20000168 = 0x80000000; *(uint32_t*)0x2000016c = 0; *(uint32_t*)0x20000170 = 0x1f; *(uint32_t*)0x20000174 = 0x1db5a50b; *(uint32_t*)0x20000178 = 0xfff; *(uint32_t*)0x2000017c = 0x1000; *(uint32_t*)0x20000180 = 0x7ff; *(uint32_t*)0x20000184 = 0x20; *(uint32_t*)0x20000188 = 0; *(uint32_t*)0x2000018c = 0x1ff; *(uint32_t*)0x20000190 = 0x5b; *(uint32_t*)0x20000194 = 0xe619; *(uint32_t*)0x20000198 = 0x100; *(uint32_t*)0x2000019c = 0; *(uint32_t*)0x200001a0 = 8; *(uint32_t*)0x200001a4 = 0x7fffffff; *(uint32_t*)0x200001a8 = 4; *(uint32_t*)0x200001ac = 4; *(uint32_t*)0x200001b0 = 0xa80; *(uint32_t*)0x200001b4 = 0x1000; *(uint32_t*)0x200001b8 = 0xfffffbce; *(uint32_t*)0x200001bc = -1; *(uint32_t*)0x200001c0 = 0xf71; *(uint32_t*)0x200001c4 = 1; *(uint32_t*)0x200001c8 = 1; *(uint32_t*)0x200001cc = 0; *(uint32_t*)0x200001d0 = 3; *(uint32_t*)0x200001d4 = 6; *(uint32_t*)0x200001d8 = 0xfff; *(uint32_t*)0x200001dc = 0xb64; *(uint32_t*)0x200001e0 = 6; *(uint32_t*)0x200001e4 = 0x101; *(uint32_t*)0x200001e8 = 0x8000; *(uint32_t*)0x200001ec = 0x7029cb30; *(uint32_t*)0x200001f0 = 0x1f; *(uint32_t*)0x200001f4 = 8; *(uint32_t*)0x200001f8 = 2; *(uint32_t*)0x200001fc = 0xa0; *(uint32_t*)0x20000200 = 0; *(uint32_t*)0x20000204 = 0xffffff80; *(uint32_t*)0x20000208 = 0x2191; *(uint32_t*)0x2000020c = 0xaa; *(uint32_t*)0x20000210 = 0x94; *(uint32_t*)0x20000214 = 5; *(uint32_t*)0x20000218 = 0x1f; *(uint32_t*)0x2000021c = 0; *(uint32_t*)0x20000220 = 5; *(uint32_t*)0x20000224 = 4; *(uint32_t*)0x20000228 = 1; *(uint32_t*)0x2000022c = 0xfdc0; *(uint32_t*)0x20000230 = 1; *(uint32_t*)0x20000234 = 0x968; *(uint32_t*)0x20000238 = 0x401; *(uint32_t*)0x2000023c = 3; *(uint32_t*)0x20000240 = 4; *(uint32_t*)0x20000244 = 1; *(uint32_t*)0x20000248 = 0xffff8001; *(uint32_t*)0x2000024c = 0x8001; *(uint32_t*)0x20000250 = 0x3ff; *(uint32_t*)0x20000254 = 0x10001; *(uint32_t*)0x20000258 = 7; *(uint32_t*)0x2000025c = 3; *(uint32_t*)0x20000260 = 8; *(uint32_t*)0x20000264 = 2; *(uint32_t*)0x20000268 = 0x7fff; *(uint32_t*)0x2000026c = 0x400; *(uint32_t*)0x20000270 = 5; *(uint32_t*)0x20000274 = 6; *(uint32_t*)0x20000278 = 4; *(uint32_t*)0x2000027c = 2; syscall(SYS_ioctl, r[0], 0xc1c06d00ul, 0x200000c0ul); return 0; }