================================================================== BUG: KASAN: global-out-of-bounds in memcpy include/linux/string.h:347 [inline] BUG: KASAN: global-out-of-bounds in fbcon_get_font+0x288/0x550 drivers/video/fbdev/core/fbcon.c:2421 Read of size 32 at addr ffffffff87064ca0 by task syz-executor.4/349 CPU: 0 PID: 349 Comm: syz-executor.4 Not tainted 4.14.159-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+0x142/0x197 lib/dump_stack.c:58 print_address_description.cold+0x5/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2af mm/kasan/report.c:393 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x123/0x190 mm/kasan/kasan.c:267 memcpy+0x24/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:347 [inline] fbcon_get_font+0x288/0x550 drivers/video/fbdev/core/fbcon.c:2421 con_font_get drivers/tty/vt/vt.c:4078 [inline] con_font_op+0x1d5/0x1060 drivers/tty/vt/vt.c:4229 do_fontx_ioctl drivers/tty/vt/vt_ioctl.c:252 [inline] vt_ioctl+0x1b72/0x2170 drivers/tty/vt/vt_ioctl.c:944 tty_ioctl+0x841/0x1320 drivers/tty/tty_io.c:2661 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a919 RSP: 002b:00007fa343b8cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a919 RDX: 0000000020000040 RSI: 0000000000004b6b RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa343b8d6d4 R13: 00000000004c3561 R14: 00000000004d8948 R15: 00000000ffffffff The buggy address belongs to the variable: fontdata_8x16+0x1000/0x1120 Memory state around the buggy address: ffffffff87064b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff87064c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffff87064c80: 00 00 00 00 fa fa fa fa 06 fa fa fa fa fa fa fa ^ ffffffff87064d00: 05 fa fa fa fa fa fa fa 06 fa fa fa fa fa fa fa ffffffff87064d80: 00 00 03 fa fa fa fa fa 00 00 00 00 00 00 00 00 ==================================================================