================================================================== BUG: KASAN: global-out-of-bounds in memcpy include/linux/string.h:380 [inline] BUG: KASAN: global-out-of-bounds in soft_cursor+0x439/0xa30 drivers/video/fbdev/core/softcursor.c:70 Read of size 31 at addr ffffffff8872ad42 by task kworker/0:10/13100 CPU: 0 PID: 13100 Comm: kworker/0:10 Not tainted 5.5.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_power_efficient fb_flashcursor Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x197/0x210 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0x5/0x30b mm/kasan/report.c:374 __kasan_report.cold+0x1b/0x41 mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:639 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x134/0x1a0 mm/kasan/generic.c:192 memcpy+0x24/0x50 mm/kasan/common.c:125 memcpy include/linux/string.h:380 [inline] soft_cursor+0x439/0xa30 drivers/video/fbdev/core/softcursor.c:70 bit_cursor+0x12fc/0x1a60 drivers/video/fbdev/core/bitblit.c:386 fb_flashcursor+0x37a/0x3e0 drivers/video/fbdev/core/fbcon.c:417 process_one_work+0x9af/0x1740 kernel/workqueue.c:2264 worker_thread+0x98/0xe40 kernel/workqueue.c:2410 kthread+0x361/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 The buggy address belongs to the variable: oid_index+0xa02/0xb80 Memory state around the buggy address: ffffffff8872ac00: 07 fa fa fa fa fa fa fa 04 fa fa fa fa fa fa fa ffffffff8872ac80: 05 fa fa fa fa fa fa fa 01 fa fa fa fa fa fa fa >ffffffff8872ad00: 00 00 02 fa fa fa fa fa 00 00 00 05 fa fa fa fa ^ ffffffff8872ad80: 00 00 00 fa fa fa fa fa 00 00 00 00 00 01 fa fa ffffffff8872ae00: fa fa fa fa 00 00 00 00 01 fa fa fa fa fa fa fa ==================================================================