kobject: 'loop3' (0000000033f460d0): kobject_uevent_env kobject: 'loop3' (0000000033f460d0): fill_kobj_path: path = '/devices/virtual/block/loop3' ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:348 [inline] BUG: KASAN: slab-out-of-bounds in soft_cursor+0x439/0xa30 drivers/video/fbdev/core/softcursor.c:70 Read of size 16 at addr ffff88809ae53410 by task syz-executor.2/1916 CPU: 1 PID: 1916 Comm: syz-executor.2 Not tainted 4.19.93-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+0x197/0x210 lib/dump_stack.c:118 print_address_description.cold+0x7c/0x20d 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+0x8c/0x2ba mm/kasan/report.c:396 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x123/0x190 mm/kasan/kasan.c:267 memcpy+0x24/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:348 [inline] soft_cursor+0x439/0xa30 drivers/video/fbdev/core/softcursor.c:70 bit_cursor+0x12fc/0x1a60 drivers/video/fbdev/core/bitblit.c:386 fbcon_cursor+0x58a/0x7b0 drivers/video/fbdev/core/fbcon.c:1369 hide_cursor+0x9e/0x300 drivers/tty/vt/vt.c:895 redraw_screen+0x2ee/0x8e0 drivers/tty/vt/vt.c:988 vc_do_resize+0x118e/0x14a0 drivers/tty/vt/vt.c:1287 vc_resize+0x4d/0x60 drivers/tty/vt/vt.c:1307 vt_ioctl+0x1fe0/0x2530 drivers/tty/vt/vt_ioctl.c:887 tty_ioctl+0x7f3/0x1510 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xd5f/0x1380 fs/ioctl.c:688 ksys_ioctl+0xab/0xd0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:710 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45af49 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007effc9aecc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045af49 RDX: 0000000020000000 RSI: 000000000000560a RDI: 0000000000000003 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007effc9aed6d4 R13: 00000000004c6263 R14: 00000000004dd738 R15: 00000000ffffffff Allocated by task 15042: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:531 __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15d/0x750 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] fbcon_set_font+0x32d/0x860 drivers/video/fbdev/core/fbcon.c:2641 con_font_set drivers/tty/vt/vt.c:4492 [inline] con_font_op+0xe18/0x1250 drivers/tty/vt/vt.c:4557 vt_ioctl+0xd2e/0x2530 drivers/tty/vt/vt_ioctl.c:913 tty_ioctl+0x7f3/0x1510 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xd5f/0x1380 fs/ioctl.c:688 ksys_ioctl+0xab/0xd0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:710 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7857: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3503 [inline] kfree+0xcf/0x220 mm/slab.c:3822 skb_free_head+0x99/0xc0 net/core/skbuff.c:554 skb_release_data+0x619/0x8d0 net/core/skbuff.c:574 skb_release_all+0x4d/0x60 net/core/skbuff.c:631 __kfree_skb net/core/skbuff.c:645 [inline] consume_skb net/core/skbuff.c:705 [inline] consume_skb+0xe2/0x390 net/core/skbuff.c:699 __dev_kfree_skb_any+0xa4/0xd0 net/core/dev.c:2799 dev_consume_skb_any include/linux/netdevice.h:3534 [inline] napi_consume_skb+0x3ee/0x560 net/core/skbuff.c:769 free_old_xmit_skbs+0xf4/0x260 drivers/net/virtio_net.c:1377 start_xmit+0x151/0x1690 drivers/net/virtio_net.c:1573 __netdev_start_xmit include/linux/netdevice.h:4308 [inline] netdev_start_xmit include/linux/netdevice.h:4317 [inline] xmit_one net/core/dev.c:3257 [inline] dev_hard_start_xmit+0x1a5/0x970 net/core/dev.c:3273 sch_direct_xmit+0x372/0x1140 net/sched/sch_generic.c:332 qdisc_restart net/sched/sch_generic.c:395 [inline] __qdisc_run+0x570/0x19f0 net/sched/sch_generic.c:403 qdisc_run include/net/pkt_sched.h:120 [inline] qdisc_run include/net/pkt_sched.h:117 [inline] __dev_xmit_skb net/core/dev.c:3452 [inline] __dev_queue_xmit+0x228c/0x2fe0 net/core/dev.c:3811 dev_queue_xmit+0x18/0x20 net/core/dev.c:3876 neigh_hh_output include/net/neighbour.h:491 [inline] neigh_output include/net/neighbour.h:499 [inline] ip_finish_output2+0x1041/0x1730 net/ipv4/ip_output.c:229 ip_finish_output+0x737/0xce0 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip_output+0x225/0x650 net/ipv4/ip_output.c:405 dst_output include/net/dst.h:447 [inline] ip_local_out+0xbb/0x190 net/ipv4/ip_output.c:124 __ip_queue_xmit+0x86f/0x1bc0 net/ipv4/ip_output.c:505 ip_queue_xmit+0x5a/0x70 include/net/ip.h:197 __tcp_transmit_skb+0x1ae1/0x39f0 net/ipv4/tcp_output.c:1146 __tcp_send_ack.part.0+0x3f3/0x5e0 net/ipv4/tcp_output.c:3634 __tcp_send_ack net/ipv4/tcp_output.c:3640 [inline] tcp_send_ack+0x88/0xa0 net/ipv4/tcp_output.c:3640 tcp_cleanup_rbuf+0x1d1/0x620 net/ipv4/tcp.c:1596 tcp_recvmsg+0x9eb/0x29a0 net/ipv4/tcp.c:2166 inet_recvmsg+0x136/0x5f0 net/ipv4/af_inet.c:830 sock_recvmsg_nosec net/socket.c:795 [inline] sock_recvmsg net/socket.c:802 [inline] sock_recvmsg+0xce/0x110 net/socket.c:798 sock_read_iter+0x299/0x3b0 net/socket.c:879 call_read_iter include/linux/fs.h:1814 [inline] new_sync_read fs/read_write.c:406 [inline] __vfs_read+0x584/0x800 fs/read_write.c:418 vfs_read+0x194/0x3d0 fs/read_write.c:452 ksys_read+0x14f/0x2d0 fs/read_write.c:579 __do_sys_read fs/read_write.c:589 [inline] __se_sys_read fs/read_write.c:587 [inline] __x64_sys_read+0x73/0xb0 fs/read_write.c:587 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88809ae53200 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 528 bytes inside of 1024-byte region [ffff88809ae53200, ffff88809ae53600) The buggy address belongs to the page: page:ffffea00026b9480 count:1 mapcount:0 mapping:ffff88812c31cac0 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffffea0002955508 ffffea000251ec08 ffff88812c31cac0 raw: 0000000000000000 ffff88809ae52000 0000000100000007 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809ae53300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88809ae53380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88809ae53400: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88809ae53480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88809ae53500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================