================================================================== BUG: KASAN: global-out-of-bounds in vga_8planes_imageblit drivers/video/fbdev/vga16fb.c:1141 [inline] BUG: KASAN: global-out-of-bounds in vga_imageblit_expand drivers/video/fbdev/vga16fb.c:1204 [inline] BUG: KASAN: global-out-of-bounds in vga16fb_imageblit+0x1be2/0x2140 drivers/video/fbdev/vga16fb.c:1261 Read of size 2 at addr ffffffff86e8dc1e by task syz-executor.5/14103 CPU: 1 PID: 14103 Comm: syz-executor.5 Not tainted 4.14.198-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x283 lib/dump_stack.c:58 print_address_description.cold+0x5/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x194 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load2_noabort+0x68/0x70 mm/kasan/report.c:428 vga_8planes_imageblit drivers/video/fbdev/vga16fb.c:1141 [inline] vga_imageblit_expand drivers/video/fbdev/vga16fb.c:1204 [inline] vga16fb_imageblit+0x1be2/0x2140 drivers/video/fbdev/vga16fb.c:1261 soft_cursor+0x50a/0xa50 drivers/video/fbdev/core/softcursor.c:74 bit_cursor+0x1056/0x1620 drivers/video/fbdev/core/bitblit.c:386 fbcon_cursor+0x4b1/0x6a0 drivers/video/fbdev/core/fbcon.c:1350 set_cursor drivers/tty/vt/vt.c:603 [inline] set_cursor+0x189/0x1e0 drivers/tty/vt/vt.c:594 redraw_screen+0x57b/0x790 drivers/tty/vt/vt.c:707 vc_do_resize+0xc08/0xe00 drivers/tty/vt/vt.c:974 fbcon_modechanged+0x49d/0x980 drivers/video/fbdev/core/fbcon.c:2959 fbcon_event_notify+0x107/0x1760 drivers/video/fbdev/core/fbcon.c:3323 notifier_call_chain+0x108/0x1a0 kernel/notifier.c:93 __blocking_notifier_call_chain kernel/notifier.c:317 [inline] __blocking_notifier_call_chain kernel/notifier.c:304 [inline] blocking_notifier_call_chain kernel/notifier.c:328 [inline] blocking_notifier_call_chain+0x79/0x90 kernel/notifier.c:325 fb_set_var+0xac5/0xc90 drivers/video/fbdev/core/fbmem.c:1054 do_fb_ioctl+0x36d/0xa70 drivers/video/fbdev/core/fbmem.c:1127 fb_ioctl+0xdd/0x130 drivers/video/fbdev/core/fbmem.c:1242 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x45de59 RSP: 002b:00007f7232753c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000000e280 RCX: 000000000045de59 RDX: 0000000020000400 RSI: 0000000000004601 RDI: 0000000000000003 RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007ffc352fc73f R14: 00007f72327549c0 R15: 000000000118bf2c The buggy address belongs to the variable: transl_h+0x3e/0x40 Memory state around the buggy address: ffffffff86e8db00: 02 fa fa fa fa fa fa fa 00 00 00 00 00 fa fa fa ffffffff86e8db80: fa fa fa fa 04 fa fa fa fa fa fa fa 00 00 00 00 >ffffffff86e8dc00: fa fa fa fa 00 00 00 00 fa fa fa fa 00 01 fa fa ^ ffffffff86e8dc80: fa fa fa fa 00 00 00 04 fa fa fa fa 00 00 04 fa ffffffff86e8dd00: fa fa fa fa 00 00 00 00 00 00 02 fa fa fa fa fa ==================================================================