================================================================== BUG: KASAN: global-out-of-bounds in memcpy include/linux/string.h:373 [inline] BUG: KASAN: global-out-of-bounds in soft_cursor+0x44b/0xa30 drivers/video/fbdev/core/softcursor.c:70 Read of size 32 at addr ffffffff87cd7a60 by task syz-executor.0/16404 CPU: 0 PID: 16404 Comm: syz-executor.0 Not tainted 4.19.138-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+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x5/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report+0x8f/0x96 mm/kasan/report.c:412 memcpy+0x20/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:373 [inline] soft_cursor+0x44b/0xa30 drivers/video/fbdev/core/softcursor.c:70 bit_cursor+0x1239/0x1820 drivers/video/fbdev/core/bitblit.c:386 fbcon_cursor+0x555/0x760 drivers/video/fbdev/core/fbcon.c:1372 hide_cursor+0x85/0x2c0 drivers/tty/vt/vt.c:902 redraw_screen+0x2ed/0x870 drivers/tty/vt/vt.c:1006 fbcon_do_set_font+0x734/0xa30 drivers/video/fbdev/core/fbcon.c:2586 fbcon_copy_font+0x125/0x190 drivers/video/fbdev/core/fbcon.c:2601 con_font_copy drivers/tty/vt/vt.c:4592 [inline] con_font_op+0x637/0x10e0 drivers/tty/vt/vt.c:4607 vt_ioctl+0x167e/0x24d0 drivers/tty/vt/vt_ioctl.c:980 tty_ioctl+0x5b0/0x15c0 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45ce69 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:00007f3c8d1c3c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000000f5c0 RCX: 000000000045ce69 RDX: 0000000020000000 RSI: 0000000000004b72 RDI: 0000000000000003 RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007ffe9caea3bf R14: 00007f3c8d1c49c0 R15: 000000000118bf2c The buggy address belongs to the variable: str__msr__trace_system_name+0x80/0x940 Memory state around the buggy address: ffffffff87cd7900: fa fa fa fa 00 00 00 05 fa fa fa fa 00 00 00 00 ffffffff87cd7980: fa fa fa fa 00 03 fa fa fa fa fa fa 04 fa fa fa >ffffffff87cd7a00: fa fa fa fa 00 00 07 fa fa fa fa fa 00 00 07 fa ^ ffffffff87cd7a80: fa fa fa fa 00 00 01 fa fa fa fa fa 00 00 00 02 ffffffff87cd7b00: fa fa fa fa 00 00 00 00 00 fa fa fa fa fa fa fa ==================================================================