================================================================== BUG: KASAN: vmalloc-out-of-bounds in fast_imageblit drivers/video/fbdev/core/sysimgblt.c:257 [inline] BUG: KASAN: vmalloc-out-of-bounds in sys_imageblit+0x1bac/0x25d0 drivers/video/fbdev/core/sysimgblt.c:323 Write of size 4 at addr ffffc90003df98a0 by task syz.2.1084/9234 CPU: 1 PID: 9234 Comm: syz.2.1084 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 fast_imageblit drivers/video/fbdev/core/sysimgblt.c:257 [inline] sys_imageblit+0x1bac/0x25d0 drivers/video/fbdev/core/sysimgblt.c:323 drm_fbdev_generic_defio_imageblit+0x2c/0x110 drivers/gpu/drm/drm_fbdev_generic.c:37 soft_cursor+0xa01/0xc30 drivers/video/fbdev/core/softcursor.c:74 bit_cursor+0x16dd/0x1f60 drivers/video/fbdev/core/bitblit.c:409 set_cursor drivers/tty/vt/vt.c:868 [inline] con_flush_chars+0x1fa/0x280 drivers/tty/vt/vt.c:3321 con_write+0x2e/0x40 drivers/tty/vt/vt.c:3249 process_output_block drivers/tty/n_tty.c:580 [inline] n_tty_write+0xd36/0x1240 drivers/tty/n_tty.c:2395 iterate_tty_write drivers/tty/tty_io.c:1019 [inline] file_tty_write+0x529/0x9b0 drivers/tty/tty_io.c:1090 call_write_iter include/linux/fs.h:2019 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x474/0x9a0 fs/read_write.c:584 ksys_write+0x151/0x260 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f0a2af9f559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0a2bd97028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f0a2b225fa0 RCX: 00007f0a2af9f559 RDX: 0000000000001006 RSI: 0000200000000380 RDI: 0000000000000005 RBP: 00007f0a2b036b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0a2b226038 R14: 00007f0a2b225fa0 R15: 00007fff46fdebe8 The buggy address belongs to a vmalloc virtual mapping Memory state around the buggy address: ffffc90003df9780: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90003df9800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ffffc90003df9880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc90003df9900: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90003df9980: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================