================================================================== 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 ffffffff88b65f90 by task systemd/1 CPU: 0 PID: 1 Comm: systemd Not tainted 4.19.161-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 hide_cursor+0x85/0x2c0 drivers/tty/vt/vt.c:902 flush_scrollback drivers/tty/vt/vt.c:957 [inline] csi_J+0x939/0xb70 drivers/tty/vt/vt.c:1557 do_con_trol+0x39ec/0x5970 drivers/tty/vt/vt.c:2385 do_con_write+0xbea/0x1d90 drivers/tty/vt/vt.c:2810 con_write+0x22/0xb0 drivers/tty/vt/vt.c:3145 process_output_block drivers/tty/n_tty.c:593 [inline] n_tty_write+0x3c0/0xff0 drivers/tty/n_tty.c:2331 do_tty_write drivers/tty/tty_io.c:960 [inline] tty_write+0x496/0x810 drivers/tty/tty_io.c:1044 __vfs_write+0xf7/0x770 fs/read_write.c:485 vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fa2a8aa71cd Code: c2 20 00 00 75 10 b8 01 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ae fc ff ff 48 89 04 24 b8 01 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 f7 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007ffc9310faf0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000000000a RCX: 00007fa2a8aa71cd RDX: 000000000000000a RSI: 00007fa2a9f12cbe RDI: 0000000000000013 RBP: 00007fa2a9f12cbe R08: 00007ffc9310fab0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000013 R13: 0000000000000000 R14: ffffffffffffffff R15: 0000564554d43460 The buggy address belongs to the variable: str__msr__trace_system_name+0x130/0xbc0 Memory state around the buggy address: 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 ^ ffffffff88b66000: fa fa fa fa 00 00 07 fa fa fa fa fa 00 00 01 fa ffffffff88b66080: fa fa fa fa 00 00 00 00 00 fa fa fa fa fa fa fa ==================================================================