================================================================== 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 31 at addr ffffffff88b65e92 by task syz-executor.0/31323 CPU: 1 PID: 31323 Comm: syz-executor.0 Not tainted 4.19.163-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+0x1126/0x1740 drivers/video/fbdev/core/bitblit.c:377 fbcon_cursor+0x523/0x700 drivers/video/fbdev/core/fbcon.c:1309 fbcon_scroll+0x2fc/0x3440 drivers/video/fbdev/core/fbcon.c:1666 con_scroll+0x5f8/0x720 drivers/tty/vt/vt.c:637 lf+0x262/0x2b0 drivers/tty/vt/vt.c:1491 do_con_write+0x133e/0x1d90 drivers/tty/vt/vt.c:2768 con_write+0x22/0xb0 drivers/tty/vt/vt.c:3145 n_tty_write+0xa03/0xff0 drivers/tty/n_tty.c:2354 do_tty_write drivers/tty/tty_io.c:960 [inline] tty_write+0x496/0x810 drivers/tty/tty_io.c:1044 do_loop_readv_writev fs/read_write.c:704 [inline] do_loop_readv_writev fs/read_write.c:688 [inline] do_iter_write+0x461/0x5d0 fs/read_write.c:962 vfs_writev+0x153/0x2e0 fs/read_write.c:1005 do_writev+0x136/0x330 fs/read_write.c:1040 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45e149 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f5087e0fc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e149 RDX: 0000000000000001 RSI: 00000000200005c0 RDI: 0000000000000004 RBP: 000000000119bfc0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007ffe68195aff R14: 00007f5087e109c0 R15: 000000000119bf8c The buggy address belongs to the variable: str__msr__trace_system_name+0x32/0xbc0 Memory state around the buggy address: ffffffff88b65d80: fa fa fa fa 00 00 00 05 fa fa fa fa 00 00 00 00 ffffffff88b65e00: fa fa fa fa 00 03 fa fa fa fa fa fa 04 fa fa fa >ffffffff88b65e80: fa fa fa fa 00 03 fa fa fa fa fa fa 05 fa fa fa ^ ffffffff88b65f00: fa fa fa fa 00 06 fa fa fa fa fa fa 00 00 00 03 ffffffff88b65f80: fa fa fa fa 00 02 fa fa fa fa fa fa 00 00 07 fa ==================================================================