================================================================== BUG: KASAN: global-out-of-bounds in memcpy include/linux/string.h:347 [inline] BUG: KASAN: global-out-of-bounds in soft_cursor+0x445/0xa40 drivers/video/fbdev/core/softcursor.c:70 Read of size 32 at addr ffffffff86e6a260 by task syz-executor.1/15687 CPU: 1 PID: 15687 Comm: syz-executor.1 Not tainted 4.14.172-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+0x13e/0x194 lib/dump_stack.c:58 print_address_description.cold+0x5/0x1e2 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/0x2ae mm/kasan/report.c:393 memcpy+0x20/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:347 [inline] soft_cursor+0x445/0xa40 drivers/video/fbdev/core/softcursor.c:70 bit_cursor+0x10d9/0x1700 drivers/video/fbdev/core/bitblit.c:386 fbcon_cursor+0x4be/0x690 drivers/video/fbdev/core/fbcon.c:1347 fbcon_scroll+0x1ee/0x34c0 drivers/video/fbdev/core/fbcon.c:1824 con_scroll+0x294/0x310 drivers/tty/vt/vt.c:327 lf+0x226/0x270 drivers/tty/vt/vt.c:1121 do_con_trol+0x4c3/0x5450 drivers/tty/vt/vt.c:1784 do_con_write.part.0+0xc44/0x1a20 drivers/tty/vt/vt.c:2434 do_con_write drivers/tty/vt/vt.c:2205 [inline] con_write+0x33/0xc0 drivers/tty/vt/vt.c:2787 do_output_char+0x4f5/0x750 drivers/tty/n_tty.c:447 process_output drivers/tty/n_tty.c:514 [inline] n_tty_write+0x409/0xe30 drivers/tty/n_tty.c:2345 do_tty_write drivers/tty/tty_io.c:959 [inline] tty_write+0x3f0/0x700 drivers/tty/tty_io.c:1043 __vfs_write+0xe4/0x630 fs/read_write.c:480 vfs_write+0x192/0x4e0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45c4a9 RSP: 002b:00007fe11123cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe11123d6d4 RCX: 000000000045c4a9 RDX: 00000000000000a0 RSI: 0000000020000580 RDI: 0000000000000004 RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000cbc R14: 00000000004d7cc8 R15: 000000000076bf2c The buggy address belongs to the variable: str__msr__trace_system_name+0x200/0x9a0 Memory state around the buggy address: ffffffff86e6a100: fa fa fa fa 00 00 00 00 06 fa fa fa fa fa fa fa ffffffff86e6a180: 00 00 00 fa fa fa fa fa 00 00 00 fa fa fa fa fa >ffffffff86e6a200: 00 00 00 03 fa fa fa fa 00 00 00 04 fa fa fa fa ^ ffffffff86e6a280: 00 00 00 00 03 fa fa fa fa fa fa fa 00 00 07 fa ffffffff86e6a300: fa fa fa fa 00 00 00 00 00 00 03 fa fa fa fa fa ==================================================================