================================================================== BUG: KASAN: vmalloc-out-of-bounds in fb_write_offset drivers/video/fbdev/core/sysmem.h:30 [inline] BUG: KASAN: vmalloc-out-of-bounds in bitfill drivers/video/fbdev/core/fb_fillrect.h:134 [inline] BUG: KASAN: vmalloc-out-of-bounds in fb_fillrect_static drivers/video/fbdev/core/fb_fillrect.h:220 [inline] BUG: KASAN: vmalloc-out-of-bounds in fb_fillrect drivers/video/fbdev/core/fb_fillrect.h:279 [inline] BUG: KASAN: vmalloc-out-of-bounds in sys_fillrect+0x15d4/0x17b0 drivers/video/fbdev/core/sysfillrect.c:22 Write of size 8 at addr ffffc900039f9000 by task syz.2.192/6750 CPU: 1 UID: 0 PID: 6750 Comm: syz.2.192 Not tainted 6.16.0-rc3-syzkaller-00072-gee88bddf7f2f #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xcd/0x680 mm/kasan/report.c:521 kasan_report+0xe0/0x110 mm/kasan/report.c:634 fb_write_offset drivers/video/fbdev/core/sysmem.h:30 [inline] bitfill drivers/video/fbdev/core/fb_fillrect.h:134 [inline] fb_fillrect_static drivers/video/fbdev/core/fb_fillrect.h:220 [inline] fb_fillrect drivers/video/fbdev/core/fb_fillrect.h:279 [inline] sys_fillrect+0x15d4/0x17b0 drivers/video/fbdev/core/sysfillrect.c:22 drm_fbdev_shmem_defio_fillrect+0x22/0x140 drivers/gpu/drm/drm_fbdev_shmem.c:37 bit_clear+0x17a/0x220 drivers/video/fbdev/core/bitblit.c:73 __fbcon_clear+0x600/0x780 drivers/video/fbdev/core/fbcon.c:1297 fbcon_scroll+0x48b/0x690 drivers/video/fbdev/core/fbcon.c:1856 con_scroll+0x45f/0x690 drivers/tty/vt/vt.c:587 csi_M drivers/tty/vt/vt.c:2092 [inline] csi_ECMA drivers/tty/vt/vt.c:2504 [inline] do_con_trol drivers/tty/vt/vt.c:2678 [inline] do_con_write+0x5560/0x8280 drivers/tty/vt/vt.c:3174 con_write+0x23/0xb0 drivers/tty/vt/vt.c:3516 process_output_block drivers/tty/n_tty.c:561 [inline] n_tty_write+0x40f/0x1160 drivers/tty/n_tty.c:2377 iterate_tty_write drivers/tty/tty_io.c:1006 [inline] file_tty_write.constprop.0+0x504/0x9b0 drivers/tty/tty_io.c:1081 tty_write drivers/tty/tty_io.c:1102 [inline] redirected_tty_write drivers/tty/tty_io.c:1125 [inline] redirected_tty_write+0xd4/0x150 drivers/tty/tty_io.c:1105 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6c7/0x1150 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x490 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff46498e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff465717038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ff464bb6080 RCX: 00007ff46498e929 RDX: 000000000000003a RSI: 0000200000000440 RDI: 0000000000000005 RBP: 00007ff464a10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007ff464bb6080 R15: 00007ffe93898278 The buggy address ffffc900039f9000 belongs to a vmalloc virtual mapping Memory state around the buggy address: ffffc900039f8f00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc900039f8f80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ffffc900039f9000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc900039f9080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc900039f9100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================