================================================================== 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 9 at addr ffff8880a8d14db0 by task kworker/0:0/5 CPU: 0 PID: 5 Comm: kworker/0:0 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 22964: __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15a/0x4f0 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] fbcon_set_font+0x421/0xc60 drivers/video/fbdev/core/fbcon.c:2467 con_font_set drivers/tty/vt/vt.c:4537 [inline] con_font_op+0xd2b/0x1140 drivers/tty/vt/vt.c:4602 vt_ioctl+0x128c/0x2af0 drivers/tty/vt/vt_ioctl.c:938 tty_ioctl+0x5b0/0x1420 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/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/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x250 mm/slab.c:3822 skb_free_head net/core/skbuff.c:554 [inline] skb_release_data+0x6ea/0x930 net/core/skbuff.c:574 skb_release_all net/core/skbuff.c:631 [inline] __kfree_skb net/core/skbuff.c:645 [inline] kfree_skb+0x11a/0x3f0 net/core/skbuff.c:663 __netif_receive_skb_core+0x1384/0x33c0 net/core/dev.c:4928 __netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:4952 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5066 process_backlog+0x261/0x760 net/core/dev.c:5848 napi_poll net/core/dev.c:6272 [inline] net_rx_action+0x4e5/0x10d0 net/core/dev.c:6338 __do_softirq+0x27d/0xad2 kernel/softirq.c:292 The buggy address belongs to the object at ffff8880a8d14c80 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 304 bytes inside of 512-byte region [ffff8880a8d14c80, ffff8880a8d14e80) The buggy address belongs to the page: page:ffffea0002a34500 count:1 mapcount:0 mapping:ffff88812c3f6940 index:0xffff8880a8d14000 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea00029fe188 ffffea0002a29288 ffff88812c3f6940 raw: ffff8880a8d14000 ffff8880a8d14000 0000000100000004 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a8d14c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a8d14d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880a8d14d80: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a8d14e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a8d14e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================