================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:373 [inline] BUG: KASAN: slab-out-of-bounds in soft_cursor+0x44b/0xa30 drivers/video/fbdev/core/softcursor.c:70 Read of size 23 at addr ffff88804d0c40ad by task kworker/1:3/24677 CPU: 1 PID: 24677 Comm: kworker/1:3 Not tainted 4.19.150-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+0x22c/0x33e lib/dump_stack.c:118 print_address_description.cold+0x56/0x25c mm/kasan/report.c:256 kasan_report_error.cold+0x66/0xb9 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+0x112a/0x1750 drivers/video/fbdev/core/bitblit.c:377 fb_flashcursor+0x412/0x530 drivers/video/fbdev/core/fbcon.c:379 process_one_work+0x796/0x14e0 kernel/workqueue.c:2155 worker_thread+0x64c/0x1130 kernel/workqueue.c:2298 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Allocated by task 22085: kmem_cache_alloc+0x126/0x4a0 mm/slab.c:3559 getname_flags+0xce/0x590 fs/namei.c:140 user_path_at_empty+0x2a/0x50 fs/namei.c:2609 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0x113/0x210 fs/stat.c:185 vfs_fstatat include/linux/fs.h:3144 [inline] __do_sys_newfstatat fs/stat.c:364 [inline] __se_sys_newfstatat+0x9e/0x120 fs/stat.c:358 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 22085: __cache_free mm/slab.c:3503 [inline] kmem_cache_free+0x7f/0x2b0 mm/slab.c:3765 putname+0xe1/0x130 fs/namei.c:261 filename_lookup+0x3d0/0x5a0 fs/namei.c:2358 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0x113/0x210 fs/stat.c:185 vfs_fstatat include/linux/fs.h:3144 [inline] __do_sys_newfstatat fs/stat.c:364 [inline] __se_sys_newfstatat+0x9e/0x120 fs/stat.c:358 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88804d0c4e80 which belongs to the cache names_cache of size 4096 The buggy address is located 3539 bytes to the left of 4096-byte region [ffff88804d0c4e80, ffff88804d0c5e80) The buggy address belongs to the page: page:ffffea0001343100 count:1 mapcount:0 mapping:ffff88821bc44b00 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffffea0001408208 ffffea00008c4e08 ffff88821bc44b00 raw: 0000000000000000 ffff88804d0c4e80 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88804d0c3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88804d0c4000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88804d0c4080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88804d0c4100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88804d0c4180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================