================================================================== BUG: KASAN: global-out-of-bounds in memcpy include/linux/string.h:372 [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 ffffffff87cf4cd0 by task syz-executor768/7988 CPU: 1 PID: 7988 Comm: syz-executor768 Not tainted 4.14.210-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/0x283 lib/dump_stack.c:58 print_address_description.cold+0x5/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x194 mm/kasan/report.c:351 kasan_report+0x6f/0x7b mm/kasan/report.c:409 memcpy+0x20/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:372 [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+0x480/0x640 drivers/video/fbdev/core/fbcon.c:1287 hide_cursor+0x7a/0x2a0 drivers/tty/vt/vt.c:590 update_region+0xc9/0x110 drivers/tty/vt/vt.c:390 vcs_write+0x3b9/0xb40 drivers/tty/vt/vc_screen.c:549 __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:0x440389 RSP: 002b:00007ffd141f0528 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440389 RDX: 0000000000000121 RSI: 00000000200000c0 RDI: 0000000000000004 RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000401bf0 R13: 0000000000401c80 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the variable: oid_index+0x850/0x9a0 Memory state around the buggy address: ffffffff87cf4b80: fa fa fa fa 04 fa fa fa fa fa fa fa 05 fa fa fa ffffffff87cf4c00: fa fa fa fa 01 fa fa fa fa fa fa fa 00 00 02 fa >ffffffff87cf4c80: fa fa fa fa 00 00 00 fa fa fa fa fa 00 00 00 00 ^ ffffffff87cf4d00: 00 01 fa fa fa fa fa fa 00 00 00 00 01 fa fa fa ffffffff87cf4d80: fa fa fa fa 00 00 00 05 fa fa fa fa 00 00 00 00 ==================================================================