// https://syzkaller.appspot.com/bug?id=af4e096cd916465ae6a9d7d2b680fc321d75e60e // 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*)0x20000180, "/dev/fb0\000", 9); res = syscall(__NR_openat, 0xffffffffffffff9cul, 0x20000180ul, 0ul, 0ul); if (res != -1) r[0] = res; *(uint32_t*)0x20000340 = 0; *(uint32_t*)0x20000344 = 0; *(uint32_t*)0x20000348 = 0x280; *(uint32_t*)0x2000034c = 0x480; *(uint32_t*)0x20000350 = 0xb693; *(uint32_t*)0x20000354 = 7; *(uint32_t*)0x20000358 = 4; *(uint32_t*)0x2000035c = 0; *(uint32_t*)0x20000360 = 0; *(uint32_t*)0x20000364 = 0; *(uint32_t*)0x20000368 = 1; *(uint32_t*)0x2000036c = 0xae; *(uint32_t*)0x20000370 = 0; *(uint32_t*)0x20000374 = 1; *(uint32_t*)0x20000378 = 0; *(uint32_t*)0x2000037c = 0; *(uint32_t*)0x20000380 = 0; *(uint32_t*)0x20000384 = 0x80001000; *(uint32_t*)0x20000388 = 0x8000; *(uint32_t*)0x2000038c = 0; *(uint32_t*)0x20000390 = 0; *(uint32_t*)0x20000394 = 0; *(uint32_t*)0x20000398 = 0; *(uint32_t*)0x2000039c = 0; *(uint32_t*)0x200003a0 = 0; *(uint32_t*)0x200003a4 = 0; *(uint32_t*)0x200003a8 = 0; *(uint32_t*)0x200003ac = 0; *(uint32_t*)0x200003b0 = 0x1ff; *(uint32_t*)0x200003b4 = 0; *(uint32_t*)0x200003b8 = 0xfffffffc; *(uint32_t*)0x200003bc = 0; *(uint32_t*)0x200003c0 = 0; *(uint32_t*)0x200003c4 = 0; *(uint32_t*)0x200003c8 = 3; *(uint32_t*)0x200003cc = 0; *(uint32_t*)0x200003d0 = 0; *(uint32_t*)0x200003d4 = 0; *(uint32_t*)0x200003d8 = 0; *(uint32_t*)0x200003dc = 0; syscall(__NR_ioctl, r[0], 0x4601, 0x20000340ul); return 0; }