================================================================== BUG: KASAN: global-out-of-bounds in memcpy include/linux/string.h:376 [inline] BUG: KASAN: global-out-of-bounds in soft_cursor+0x442/0xa50 drivers/video/fbdev/core/softcursor.c:70 Read of size 32 at addr ffffffff87cf60f0 by task agetty/16015 CPU: 1 PID: 16015 Comm: agetty Not tainted 4.14.232-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+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x5/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report+0x6f/0x80 mm/kasan/report.c:409 memcpy+0x20/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:376 [inline] soft_cursor+0x442/0xa50 drivers/video/fbdev/core/softcursor.c:70 bit_cursor+0xf7a/0x1580 drivers/video/fbdev/core/bitblit.c:377 fbcon_cursor+0x48e/0x650 drivers/video/fbdev/core/fbcon.c:1290 hide_cursor+0x7a/0x2a0 drivers/tty/vt/vt.c:590 do_con_write+0x102b/0x19b0 drivers/tty/vt/vt.c:2251 con_write+0x21/0xa0 drivers/tty/vt/vt.c:2805 process_output_block drivers/tty/n_tty.c:595 [inline] n_tty_write+0x352/0xda0 drivers/tty/n_tty.c:2333 do_tty_write drivers/tty/tty_io.c:959 [inline] tty_write+0x410/0x740 drivers/tty/tty_io.c:1043 __vfs_write+0xe4/0x630 fs/read_write.c:480 vfs_write+0x17f/0x4d0 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+0x46/0xbb RIP: 0033:0x7f538e071970 RSP: 002b:00007ffcd5857738 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f538e071970 RDX: 0000000000000001 RSI: 00007f538e330683 RDI: 0000000000000001 RBP: 00007f538e330683 R08: 00007f538e331760 R09: 00007f538e554500 R10: 0000000000000097 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000001 R14: 00007f538e330600 R15: 0000000000000001 The buggy address belongs to the variable: oid_index+0x270/0x9a0 Memory state around the buggy address: ffffffff87cf5f80: fa fa fa fa 00 00 02 fa fa fa fa fa 00 03 fa fa ffffffff87cf6000: fa fa fa fa 06 fa fa fa fa fa fa fa 05 fa fa fa >ffffffff87cf6080: fa fa fa fa 07 fa fa fa fa fa fa fa 00 01 fa fa ^ ffffffff87cf6100: fa fa fa fa 00 05 fa fa fa fa fa fa 03 fa fa fa ffffffff87cf6180: fa fa fa fa 03 fa fa fa fa fa fa fa 03 fa fa fa ==================================================================