================================================================== BUG: KASAN: global-out-of-bounds in vga_8planes_imageblit drivers/video/fbdev/vga16fb.c:1140 [inline] BUG: KASAN: global-out-of-bounds in vga_imageblit_expand drivers/video/fbdev/vga16fb.c:1203 [inline] BUG: KASAN: global-out-of-bounds in vga16fb_imageblit+0x1c75/0x2260 drivers/video/fbdev/vga16fb.c:1260 Read of size 2 at addr ffffffff88d97e5e by task syz-executor.3/8271 CPU: 0 PID: 8271 Comm: syz-executor.3 Not tainted 5.9.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x19e/0x21e lib/dump_stack.c:118 print_address_description.constprop.0.cold+0x5/0x499 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x20/0x37 mm/kasan/report.c:530 __asan_report_load2_noabort+0x14/0x20 mm/kasan/generic_report.c:145 vga_8planes_imageblit drivers/video/fbdev/vga16fb.c:1140 [inline] vga_imageblit_expand drivers/video/fbdev/vga16fb.c:1203 [inline] vga16fb_imageblit+0x1c75/0x2260 drivers/video/fbdev/vga16fb.c:1260 soft_cursor+0x4fe/0xa40 drivers/video/fbdev/core/softcursor.c:74 bit_cursor+0x1225/0x1920 drivers/video/fbdev/core/bitblit.c:386 fbcon_cursor+0x545/0x670 drivers/video/fbdev/core/fbcon.c:1411 set_cursor drivers/tty/vt/vt.c:919 [inline] set_cursor+0x1e4/0x260 drivers/tty/vt/vt.c:910 redraw_screen+0x4f0/0x7e0 drivers/tty/vt/vt.c:1036 fbcon_modechanged+0x57b/0x720 drivers/video/fbdev/core/fbcon.c:3001 fbcon_update_vcs+0x42/0x50 drivers/video/fbdev/core/fbcon.c:3048 do_fb_ioctl+0x674/0x6e0 drivers/video/fbdev/core/fbmem.c:1106 fb_ioctl+0xe6/0x130 drivers/video/fbdev/core/fbmem.c:1181 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x196/0x220 fs/ioctl.c:739 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45b439 Code: 2d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f18c9c3ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f18c9c3b6d4 RCX: 000000000045b439 RDX: 0000000020000000 RSI: 0000000000004601 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000002ea R14: 00000000004c4030 R15: 000000000075bf2c The buggy address belongs to the variable: transl_h+0x3e/0x40 Memory state around the buggy address: ffffffff88d97d00: 04 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 ffffffff88d97d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f9 >ffffffff88d97e00: f9 f9 f9 f9 00 00 00 00 f9 f9 f9 f9 00 00 00 00 ^ ffffffff88d97e80: f9 f9 f9 f9 00 01 f9 f9 f9 f9 f9 f9 00 00 00 04 ffffffff88d97f00: f9 f9 f9 f9 00 00 04 f9 f9 f9 f9 f9 00 00 00 00 ==================================================================