================================================================== BUG: KASAN: global-out-of-bounds in memcpy include/linux/string.h:377 [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 ffffffff88b67f90 by task syz-executor.4/2006 CPU: 1 PID: 2006 Comm: syz-executor.4 Not tainted 4.19.191-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/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x5/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report+0x8f/0xa0 mm/kasan/report.c:412 memcpy+0x20/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:377 [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+0x531/0x710 drivers/video/fbdev/core/fbcon.c:1312 hide_cursor+0x85/0x2c0 drivers/tty/vt/vt.c:902 do_con_write+0x13d3/0x1d90 drivers/tty/vt/vt.c:2605 con_write+0x22/0xb0 drivers/tty/vt/vt.c:3146 do_output_char+0x5de/0x850 drivers/tty/n_tty.c:445 process_output drivers/tty/n_tty.c:512 [inline] n_tty_write+0x46e/0xff0 drivers/tty/n_tty.c:2343 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:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f85ae4b8188 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000003 RSI: 0000000020000380 RDI: 0000000000000008 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffc103b984f R14: 00007f85ae4b8300 R15: 0000000000022000 The buggy address belongs to the variable: str__msr__trace_system_name+0x130/0xbc0 Memory state around the buggy address: ffffffff88b67e80: fa fa fa fa 00 03 fa fa fa fa fa fa 05 fa fa fa ffffffff88b67f00: fa fa fa fa 00 06 fa fa fa fa fa fa 00 00 00 03 >ffffffff88b67f80: fa fa fa fa 00 02 fa fa fa fa fa fa 00 00 07 fa ^ ffffffff88b68000: fa fa fa fa 00 00 07 fa fa fa fa fa 00 00 01 fa ffffffff88b68080: fa fa fa fa 00 00 00 00 00 fa fa fa fa fa fa fa ==================================================================