================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:406 [inline] BUG: KASAN: slab-out-of-bounds in fbcon_get_font+0x2f4/0x6f0 drivers/video/fbdev/core/fbcon.c:2474 Read of size 16 at addr ffff88809ed13910 by task syz-executor.3/15573 CPU: 1 PID: 15573 Comm: syz-executor.3 Not tainted 5.7.0-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+0x188/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x413 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 check_memory_region_inline mm/kasan/generic.c:186 [inline] check_memory_region+0x141/0x190 mm/kasan/generic.c:192 memcpy+0x20/0x60 mm/kasan/common.c:105 memcpy include/linux/string.h:406 [inline] fbcon_get_font+0x2f4/0x6f0 drivers/video/fbdev/core/fbcon.c:2474 con_font_get drivers/tty/vt/vt.c:4479 [inline] con_font_op+0x1f7/0x1160 drivers/tty/vt/vt.c:4638 vt_ioctl+0x1740/0x2640 drivers/tty/vt/vt_ioctl.c:980 tty_ioctl+0xedc/0x1440 drivers/tty/tty_io.c:2656 vfs_ioctl fs/ioctl.c:47 [inline] ksys_ioctl+0x11a/0x180 fs/ioctl.c:771 __do_sys_ioctl fs/ioctl.c:780 [inline] __se_sys_ioctl fs/ioctl.c:778 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:778 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45ca59 Code: 0d b7 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f2cca8e0c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000004e70e0 RCX: 000000000045ca59 RDX: 0000000020000580 RSI: 0000000000004b72 RDI: 0000000000000003 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000379 R14: 00000000004c60df R15: 00007f2cca8e16d4 Allocated by task 30193: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc mm/kasan/common.c:494 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:467 __do_kmalloc mm/slab.c:3656 [inline] __kmalloc+0x161/0x7a0 mm/slab.c:3665 kmalloc include/linux/slab.h:560 [inline] fbcon_set_font+0x331/0x870 drivers/video/fbdev/core/fbcon.c:2672 con_font_set drivers/tty/vt/vt.c:4571 [inline] con_font_op+0xd65/0x1160 drivers/tty/vt/vt.c:4636 vt_ioctl+0xb9b/0x2640 drivers/tty/vt/vt_ioctl.c:928 tty_ioctl+0xedc/0x1440 drivers/tty/tty_io.c:2656 vfs_ioctl fs/ioctl.c:47 [inline] ksys_ioctl+0x11a/0x180 fs/ioctl.c:771 __do_sys_ioctl fs/ioctl.c:780 [inline] __se_sys_ioctl fs/ioctl.c:778 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:778 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 2553: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] kasan_set_free_info mm/kasan/common.c:316 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/common.c:455 __cache_free mm/slab.c:3426 [inline] kfree+0x109/0x2b0 mm/slab.c:3757 skb_free_head+0x8b/0xa0 net/core/skbuff.c:590 skb_release_data+0x42e/0x8b0 net/core/skbuff.c:610 skb_release_all+0x46/0x60 net/core/skbuff.c:664 __kfree_skb net/core/skbuff.c:678 [inline] consume_skb net/core/skbuff.c:837 [inline] consume_skb+0xf3/0x400 net/core/skbuff.c:831 wg_packet_consume_data_done drivers/net/wireguard/receive.c:447 [inline] wg_packet_rx_poll+0x1014/0x2570 drivers/net/wireguard/receive.c:488 napi_poll net/core/dev.c:6671 [inline] net_rx_action+0x4c2/0x1070 net/core/dev.c:6739 __do_softirq+0x26c/0x9f7 kernel/softirq.c:292 The buggy address belongs to the object at ffff88809ed13800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 272 bytes inside of 512-byte region [ffff88809ed13800, ffff88809ed13a00) The buggy address belongs to the page: page:ffffea00027b44c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88809ed13c00 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea0002773008 ffffea00023c9ec8 ffff8880aa000a80 raw: ffff88809ed13c00 ffff88809ed13000 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809ed13800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88809ed13880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88809ed13900: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88809ed13980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88809ed13a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================