// https://syzkaller.appspot.com/bug?id=b8408774e9a8138e4a0dadca9adc6ac4ff266f17 // 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; syscall(__NR_pipe, 0ul); syscall(__NR_fcntl, -1, 0x407ul, 0ul); syscall(__NR_write, -1, 0x20000340ul, 0x41395527ul); 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 = 0x556; *(uint32_t*)0x2000034c = 0x800; *(uint32_t*)0x20000350 = 0x80; *(uint32_t*)0x20000354 = 0; *(uint32_t*)0x20000358 = 8; *(uint32_t*)0x2000035c = 0; *(uint32_t*)0x20000360 = 0; *(uint32_t*)0x20000364 = 0; *(uint32_t*)0x20000368 = 0; *(uint32_t*)0x2000036c = 0; *(uint32_t*)0x20000370 = 0; *(uint32_t*)0x20000374 = 0; *(uint32_t*)0x20000378 = 0; *(uint32_t*)0x2000037c = 0; *(uint32_t*)0x20000380 = 0; *(uint32_t*)0x20000384 = 0; *(uint32_t*)0x20000388 = 0xfffffffd; *(uint32_t*)0x2000038c = 0; *(uint32_t*)0x20000390 = 0; *(uint32_t*)0x20000394 = 0x10; *(uint32_t*)0x20000398 = 0; *(uint32_t*)0x2000039c = -1; *(uint32_t*)0x200003a0 = 0; *(uint32_t*)0x200003a4 = 0; *(uint32_t*)0x200003a8 = 0; *(uint32_t*)0x200003ac = 0; *(uint32_t*)0x200003b0 = 0; *(uint32_t*)0x200003b4 = 0; *(uint32_t*)0x200003b8 = 0; *(uint32_t*)0x200003bc = 0; *(uint32_t*)0x200003c0 = 0; *(uint32_t*)0x200003c4 = 0; *(uint32_t*)0x200003c8 = 0; *(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); syscall(__NR_read, -1, 0ul, 0ul); syscall(__NR_ioctl, -1, 0x5406, 0ul); return 0; }