// https://syzkaller.appspot.com/bug?id=2e4dbe448183da06b2940dd080287aa26c02baf3 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); intptr_t res = 0; memcpy((void*)0x20000040, "/dev/video37\000", 13); res = syscall(__NR_openat, 0xffffffffffffff9cul, 0x20000040ul, 2ul, 0ul); if (res != -1) r[0] = res; *(uint32_t*)0x20000380 = 0; *(uint32_t*)0x20000384 = 4; *(uint32_t*)0x20000388 = 1; *(uint32_t*)0x20000390 = 2; *(uint16_t*)0x20000398 = 0; *(uint16_t*)0x2000039a = 0; *(uint16_t*)0x2000039c = 0; *(uint16_t*)0x2000039e = 0; *(uint16_t*)0x200003a0 = 0; *(uint16_t*)0x200003a2 = 0; *(uint16_t*)0x200003a4 = 0; *(uint16_t*)0x200003a6 = 0; *(uint16_t*)0x200003a8 = 0; *(uint16_t*)0x200003aa = 0; *(uint16_t*)0x200003ac = 0; *(uint16_t*)0x200003ae = 0x2b; *(uint16_t*)0x200003b0 = 0; *(uint16_t*)0x200003b2 = 0; *(uint16_t*)0x200003b4 = 0; *(uint16_t*)0x200003b6 = 0; *(uint16_t*)0x200003b8 = 0; *(uint16_t*)0x200003ba = 0; *(uint16_t*)0x200003bc = 0; *(uint16_t*)0x200003be = 0; *(uint16_t*)0x200003c0 = 0; *(uint16_t*)0x200003c2 = 0; *(uint16_t*)0x200003c4 = 0; *(uint16_t*)0x200003c6 = 0; *(uint16_t*)0x200003c8 = 0; *(uint16_t*)0x200003ca = 0; *(uint16_t*)0x200003cc = 0; *(uint16_t*)0x200003ce = 0; *(uint16_t*)0x200003d0 = 0; *(uint16_t*)0x200003d2 = 0; *(uint16_t*)0x200003d4 = 0; *(uint16_t*)0x200003d6 = 0; *(uint16_t*)0x200003d8 = 0; *(uint16_t*)0x200003da = 0; *(uint16_t*)0x200003dc = 0; *(uint16_t*)0x200003de = 0; *(uint16_t*)0x200003e0 = 0; *(uint16_t*)0x200003e2 = 0; *(uint16_t*)0x200003e4 = 0; *(uint16_t*)0x200003e6 = 0; *(uint16_t*)0x200003e8 = 0; *(uint16_t*)0x200003ea = 0; *(uint16_t*)0x200003ec = 0; *(uint16_t*)0x200003ee = 0; *(uint16_t*)0x200003f0 = 0; *(uint16_t*)0x200003f2 = 0; *(uint16_t*)0x200003f4 = 0; *(uint16_t*)0x200003f6 = 0; *(uint16_t*)0x200003f8 = 0; *(uint32_t*)0x200003fc = 0; memset((void*)0x20000400, 0, 8); *(uint32_t*)0x20000460 = 0; memset((void*)0x20000464, 0, 28); syscall(__NR_ioctl, r[0], 0xc100565c, 0x20000380ul); *(uint32_t*)0x20000000 = 2; syscall(__NR_ioctl, r[0], 0x40045612, 0x20000000ul); return 0; }