================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:348 [inline] BUG: KASAN: slab-out-of-bounds in soft_cursor+0x448/0xa20 drivers/video/fbdev/core/softcursor.c:70 Read of size 7 at addr ffff88809f6a829e by task kworker/0:5/24284 CPU: 0 PID: 24284 Comm: kworker/0:5 Not tainted 4.19.125-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+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x222 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x88/0x2b9 mm/kasan/report.c:396 memcpy+0x20/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:348 [inline] soft_cursor+0x448/0xa20 drivers/video/fbdev/core/softcursor.c:70 bit_cursor+0x1272/0x1890 drivers/video/fbdev/core/bitblit.c:386 fb_flashcursor+0x396/0x440 drivers/video/fbdev/core/fbcon.c:399 process_one_work+0x892/0x1580 kernel/workqueue.c:2155 worker_thread+0x96/0xe20 kernel/workqueue.c:2298 kthread+0x30b/0x410 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Allocated by task 6835: __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15a/0x3c0 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] fbcon_set_font+0x331/0x870 drivers/video/fbdev/core/fbcon.c:2644 con_font_set drivers/tty/vt/vt.c:4529 [inline] con_font_op+0xd3e/0x1130 drivers/tty/vt/vt.c:4594 vt_ioctl+0xcd0/0x2500 drivers/tty/vt/vt_ioctl.c:928 tty_ioctl+0x7a5/0x1420 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcda/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 4686: __cache_free mm/slab.c:3503 [inline] kfree+0xce/0x220 mm/slab.c:3822 skb_free_head+0x91/0xb0 net/core/skbuff.c:554 skb_release_data+0x623/0x8e0 net/core/skbuff.c:574 skb_release_all+0x46/0x60 net/core/skbuff.c:631 __kfree_skb net/core/skbuff.c:645 [inline] kfree_skb+0xe1/0x390 net/core/skbuff.c:663 llc_sap_state_process+0x8a/0x4d0 net/llc/llc_sap.c:217 llc_ui_sendmsg+0x9d9/0xfd0 net/llc/af_llc.c:961 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2115 __sys_sendmmsg+0x195/0x470 net/socket.c:2210 __do_sys_sendmmsg net/socket.c:2239 [inline] __se_sys_sendmmsg net/socket.c:2236 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2236 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88809f6a80c0 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 478 bytes inside of 512-byte region [ffff88809f6a80c0, ffff88809f6a82c0) The buggy address belongs to the page: page:ffffea00027daa00 count:1 mapcount:0 mapping:ffff88812c3dc940 index:0xffff88809f6a8ac0 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea00018c7408 ffffea0002650648 ffff88812c3dc940 raw: ffff88809f6a8ac0 ffff88809f6a80c0 0000000100000004 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809f6a8180: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ffff88809f6a8200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88809f6a8280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88809f6a8300: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff88809f6a8380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================