================================================================== BUG: KASAN: slab-out-of-bounds in scr_memcpyw include/linux/vt_buffer.h:49 [inline] BUG: KASAN: slab-out-of-bounds in vc_do_resize+0xe2e/0x1d00 drivers/tty/vt/vt.c:1286 Read of size 6 at addr ffff888098ae0a58 by task syz-executor.5/30113 CPU: 0 PID: 30113 Comm: syz-executor.5 Not tainted 5.8.0-rc7-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+0x1f0/0x31e lib/dump_stack.c:118 print_address_description+0x66/0x5a0 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report+0x132/0x1d0 mm/kasan/report.c:530 check_memory_region_inline mm/kasan/generic.c:183 [inline] check_memory_region+0x2b5/0x2f0 mm/kasan/generic.c:192 memcpy+0x25/0x60 mm/kasan/common.c:105 scr_memcpyw include/linux/vt_buffer.h:49 [inline] vc_do_resize+0xe2e/0x1d00 drivers/tty/vt/vt.c:1286 fbcon_modechanged+0x710/0xd90 drivers/video/fbdev/core/fbcon.c:2990 fb_set_var+0x825/0xcc0 drivers/video/fbdev/core/fbmem.c:1056 do_fb_ioctl+0x502/0x6f0 drivers/video/fbdev/core/fbmem.c:1109 vfs_ioctl fs/ioctl.c:48 [inline] ksys_ioctl fs/ioctl.c:753 [inline] __do_sys_ioctl fs/ioctl.c:762 [inline] __se_sys_ioctl+0xf9/0x160 fs/ioctl.c:760 do_syscall_64+0x73/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45c369 Code: 8d 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 5b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f6ecd6adc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000000d540 RCX: 000000000045c369 RDX: 00000000200001c0 RSI: 0000000000004601 RDI: 0000000000000003 RBP: 000000000078bf40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bf0c R13: 00007ffd9d7e0f9f R14: 00007f6ecd6ae9c0 R15: 000000000078bf0c Allocated by task 30113: save_stack mm/kasan/common.c:48 [inline] set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc+0x103/0x140 mm/kasan/common.c:494 __do_kmalloc mm/slab.c:3656 [inline] __kmalloc+0x24b/0x330 mm/slab.c:3665 kmalloc include/linux/slab.h:560 [inline] kzalloc+0x1d/0x40 include/linux/slab.h:669 vc_do_resize+0x29a/0x1d00 drivers/tty/vt/vt.c:1223 fbcon_modechanged+0x710/0xd90 drivers/video/fbdev/core/fbcon.c:2990 fb_set_var+0x825/0xcc0 drivers/video/fbdev/core/fbmem.c:1056 fbcon_resize+0x7bb/0xff0 drivers/video/fbdev/core/fbcon.c:2231 resize_screen drivers/tty/vt/vt.c:1170 [inline] vc_do_resize+0x701/0x1d00 drivers/tty/vt/vt.c:1241 fbcon_modechanged+0x710/0xd90 drivers/video/fbdev/core/fbcon.c:2990 fb_set_var+0x825/0xcc0 drivers/video/fbdev/core/fbmem.c:1056 do_fb_ioctl+0x502/0x6f0 drivers/video/fbdev/core/fbmem.c:1109 vfs_ioctl fs/ioctl.c:48 [inline] ksys_ioctl fs/ioctl.c:753 [inline] __do_sys_ioctl fs/ioctl.c:762 [inline] __se_sys_ioctl+0xf9/0x160 fs/ioctl.c:760 do_syscall_64+0x73/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 26: save_stack mm/kasan/common.c:48 [inline] set_track mm/kasan/common.c:56 [inline] kasan_set_free_info mm/kasan/common.c:316 [inline] __kasan_slab_free+0x114/0x170 mm/kasan/common.c:455 __cache_free mm/slab.c:3426 [inline] kfree+0x10a/0x220 mm/slab.c:3757 skb_release_all net/core/skbuff.c:664 [inline] __kfree_skb+0x56/0x1c0 net/core/skbuff.c:678 ipip6_tunnel_xmit net/ipv6/sit.c:1044 [inline] sit_tunnel_xmit+0xf4f/0x2ae0 net/ipv6/sit.c:1079 __netdev_start_xmit include/linux/netdevice.h:4611 [inline] netdev_start_xmit include/linux/netdevice.h:4625 [inline] xmit_one net/core/dev.c:3556 [inline] dev_hard_start_xmit+0x1bd/0x3d0 net/core/dev.c:3572 __dev_queue_xmit+0x1bda/0x2940 net/core/dev.c:4131 neigh_output include/net/neighbour.h:509 [inline] ip6_finish_output2+0x107a/0x1400 net/ipv6/ip6_output.c:117 ip6tunnel_xmit include/net/ip6_tunnel.h:160 [inline] udp_tunnel6_xmit_skb+0x454/0x7f0 net/ipv6/ip6_udp_tunnel.c:109 send6+0x7d2/0x990 drivers/net/wireguard/socket.c:152 wg_socket_send_skb_to_peer drivers/net/wireguard/socket.c:177 [inline] wg_socket_send_buffer_to_peer+0x206/0x310 drivers/net/wireguard/socket.c:199 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline] wg_packet_handshake_send_worker+0x153/0x1a0 drivers/net/wireguard/send.c:51 process_one_work+0x789/0xfc0 kernel/workqueue.c:2269 worker_thread+0xaa4/0x1460 kernel/workqueue.c:2415 kthread+0x37e/0x3a0 drivers/block/aoe/aoecmd.c:1234 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293 The buggy address belongs to the object at ffff888098ae0800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 600 bytes inside of 1024-byte region [ffff888098ae0800, ffff888098ae0c00) The buggy address belongs to the page: page:ffffea000262b800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea0002439fc8 ffffea00027f4ac8 ffff8880aa400c40 raw: 0000000000000000 ffff888098ae0000 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888098ae0900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888098ae0980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888098ae0a00: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc ^ ffff888098ae0a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888098ae0b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================