==================================================================
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 ffffffff88b65c10 by task syz-executor208/8107
CPU: 0 PID: 8107 Comm: syz-executor208 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
update_region+0x136/0x190 drivers/tty/vt/vt.c:700
vcs_write+0x403/0xc30 drivers/tty/vt/vc_screen.c:604
__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:0x440389
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 db 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fff77bd3d18 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/0xa60
Memory state around the buggy address:
ffffffff88b65b00: fa fa fa fa 04 fa fa fa fa fa fa fa 07 fa fa fa
ffffffff88b65b80: fa fa fa fa 04 fa fa fa fa fa fa fa 05 fa fa fa
>ffffffff88b65c00: fa fa fa fa 01 fa fa fa fa fa fa fa 00 00 02 fa
^
ffffffff88b65c80: fa fa fa fa 00 00 00 fa fa fa fa fa 00 00 00 00
ffffffff88b65d00: 00 01 fa fa fa fa fa fa 00 00 00 00 01 fa fa fa
==================================================================