================================================================== 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 fb_bitblit drivers/video/fbdev/core/fb_imageblit.h:153 [inline] BUG: KASAN: vmalloc-out-of-bounds in fb_bitmap1x_imageblit drivers/video/fbdev/core/fb_imageblit.h:275 [inline] BUG: KASAN: vmalloc-out-of-bounds in fb_bitmap_imageblit drivers/video/fbdev/core/fb_imageblit.h:477 [inline] BUG: KASAN: vmalloc-out-of-bounds in fb_imageblit drivers/video/fbdev/core/fb_imageblit.h:492 [inline] BUG: KASAN: vmalloc-out-of-bounds in sys_imageblit+0x1b48/0x1d60 drivers/video/fbdev/core/sysimgblt.c:24 Write of size 8 at addr ffffc90024344c00 by task syz.0.1232/9657 CPU: 2 UID: 0 PID: 9657 Comm: syz.0.1232 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 fb_write_offset drivers/video/fbdev/core/sysmem.h:30 [inline] fb_bitblit drivers/video/fbdev/core/fb_imageblit.h:153 [inline] fb_bitmap1x_imageblit drivers/video/fbdev/core/fb_imageblit.h:275 [inline] fb_bitmap_imageblit drivers/video/fbdev/core/fb_imageblit.h:477 [inline] fb_imageblit drivers/video/fbdev/core/fb_imageblit.h:492 [inline] sys_imageblit+0x1b48/0x1d60 drivers/video/fbdev/core/sysimgblt.c:24 drm_fbdev_shmem_defio_imageblit+0x20/0x130 drivers/gpu/drm/drm_fbdev_shmem.c:39 ccw_putcs_aligned drivers/video/fbdev/core/fbcon_ccw.c:126 [inline] ccw_putcs+0x92f/0xbb0 drivers/video/fbdev/core/fbcon_ccw.c:176 fbcon_putcs+0x3b2/0x480 drivers/video/fbdev/core/fbcon.c:1392 do_update_region+0x2cf/0x3f0 drivers/tty/vt/vt.c:656 redraw_screen+0x63f/0x760 drivers/tty/vt/vt.c:1008 vc_do_resize+0xc3d/0xeb0 drivers/tty/vt/vt.c:1309 vc_resize include/linux/vt_kern.h:49 [inline] fbcon_do_set_font+0x443/0x8c0 drivers/video/fbdev/core/fbcon.c:2435 fbcon_set_font+0x4be/0x730 drivers/video/fbdev/core/fbcon.c:2518 con_font_set drivers/tty/vt/vt.c:4992 [inline] con_font_op+0x9c0/0x1040 drivers/tty/vt/vt.c:5032 vt_k_ioctl drivers/tty/vt/vt_ioctl.c:474 [inline] vt_ioctl+0xe00/0x3150 drivers/tty/vt/vt_ioctl.c:745 tty_ioctl+0x26a/0x1640 drivers/tty/tty_io.c:2792 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6f6919e0d9 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:00007f6f6a14d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f6f69425fa0 RCX: 00007f6f6919e0d9 RDX: 00002000000001c0 RSI: 0000000000004b72 RDI: 0000000000000003 RBP: 00007f6f69235024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6f69426038 R14: 00007f6f69425fa0 R15: 00007fff97bc5128 The buggy address belongs to a 32-page vmalloc region starting at 0xffffc90024345000 allocated at tpg_alloc+0xbd/0x9b0 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:124 Memory state around the buggy address: ffffc90024344b00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90024344b80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ffffc90024344c00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc90024344c80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90024344d00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================