IPv6: ADDRCONF(NETDEV_UP): veth1_to_hsr: link is not ready 8021q: adding VLAN 0 to HW filter on device bond0 IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_hsr: link becomes ready ================================================================== IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready BUG: KASAN: use-after-free in erspan_build_header+0x392/0x3b0 net/ipv4/ip_gre.c:706 Read of size 2 at addr ffff88809126834b by task syz-executor.3/7224 CPU: 1 PID: 7224 Comm: syz-executor.3 Not tainted 4.14.112 #2 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x138/0x19c lib/dump_stack.c:53 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_hsr: link becomes ready kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xaf/0x2b5 mm/kasan/report.c:393 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/report.c:440 erspan_build_header+0x392/0x3b0 net/ipv4/ip_gre.c:706 IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready erspan_xmit net/ipv4/ip_gre.c:748 [inline] erspan_xmit+0x3ec/0x11c0 net/ipv4/ip_gre.c:725 IPv6: ADDRCONF(NETDEV_UP): veth0_to_bridge: link is not ready __netdev_start_xmit include/linux/netdevice.h:4033 [inline] netdev_start_xmit include/linux/netdevice.h:4042 [inline] packet_direct_xmit+0x438/0x640 net/packet/af_packet.c:269 packet_snd net/packet/af_packet.c:2969 [inline] packet_sendmsg+0x31e1/0x5990 net/packet/af_packet.c:2994 IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1: link is not ready IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xd0/0x110 net/socket.c:656 ___sys_sendmsg+0x70c/0x850 net/socket.c:2062 8021q: adding VLAN 0 to HW filter on device team0 IPv6: ADDRCONF(NETDEV_UP): veth0_to_bridge: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_bridge: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth0_to_bond: link is not ready __sys_sendmsg+0xb9/0x140 net/socket.c:2096 IPv6: ADDRCONF(NETDEV_UP): veth1_to_bond: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth0_to_team: link is not ready SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2103 IPv6: ADDRCONF(NETDEV_UP): veth1_to_team: link is not ready do_syscall_64+0x1eb/0x630 arch/x86/entry/common.c:289 IPv6: ADDRCONF(NETDEV_UP): veth0_to_hsr: link is not ready entry_SYSCALL_64_after_hwframe+0x42/0xb7 IPv6: ADDRCONF(NETDEV_UP): veth1_to_hsr: link is not ready RIP: 0033:0x458c29 RSP: 002b:00007fed2ac89c78 EFLAGS: 00000246 hsr0: Slave A (hsr_slave_0) is not up; please bring it up to get a fully working HSR network ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458c29 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003 RBP: 000000000073bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fed2ac8a6d4 R13: 00000000004c64a3 R14: 00000000004dadd8 R15: 00000000ffffffff hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network Allocated by task 0: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:489 IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready kmem_cache_alloc+0x12e/0x780 mm/slab.c:3552 skb_clone+0x129/0x310 net/core/skbuff.c:1282 IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready skb_share_check include/linux/skbuff.h:1538 [inline] packet_rcv_spkt+0x424/0x560 net/packet/af_packet.c:1857 deliver_skb net/core/dev.c:1881 [inline] deliver_ptype_list_skb net/core/dev.c:1896 [inline] __netif_receive_skb_core+0x9be/0x2ac0 net/core/dev.c:4460 __netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4515 8021q: adding VLAN 0 to HW filter on device batadv0 netif_receive_skb_internal+0xe4/0x5a0 net/core/dev.c:4588 napi_skb_finish net/core/dev.c:4949 [inline] napi_gro_receive+0x2fb/0x410 net/core/dev.c:4980 receive_buf+0x532/0x3fd0 drivers/net/virtio_net.c:852 virtnet_receive drivers/net/virtio_net.c:1098 [inline] virtnet_poll+0x515/0xa6e drivers/net/virtio_net.c:1189 napi_poll net/core/dev.c:5595 [inline] net_rx_action+0x495/0xf80 net/core/dev.c:5661 __do_softirq+0x24e/0x9ae kernel/softirq.c:288 Freed by task 0: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kmem_cache_free+0x83/0x2b0 mm/slab.c:3758 kfree_skbmem net/core/skbuff.c:586 [inline] kfree_skbmem+0xac/0x120 net/core/skbuff.c:580 __kfree_skb net/core/skbuff.c:646 [inline] kfree_skb+0xbd/0x350 net/core/skbuff.c:663 packet_rcv_spkt+0xd9/0x560 net/packet/af_packet.c:1888 deliver_skb net/core/dev.c:1881 [inline] deliver_ptype_list_skb net/core/dev.c:1896 [inline] __netif_receive_skb_core+0x9be/0x2ac0 net/core/dev.c:4460 __netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4515 netif_receive_skb_internal+0xe4/0x5a0 net/core/dev.c:4588 napi_skb_finish net/core/dev.c:4949 [inline] napi_gro_receive+0x2fb/0x410 net/core/dev.c:4980 receive_buf+0x532/0x3fd0 drivers/net/virtio_net.c:852 virtnet_receive drivers/net/virtio_net.c:1098 [inline] virtnet_poll+0x515/0xa6e drivers/net/virtio_net.c:1189 napi_poll net/core/dev.c:5595 [inline] net_rx_action+0x495/0xf80 net/core/dev.c:5661 __do_softirq+0x24e/0x9ae kernel/softirq.c:288 The buggy address belongs to the object at ffff888091268340 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 11 bytes inside of 232-byte region [ffff888091268340, ffff888091268428) The buggy address belongs to the page: page:ffffea0002449a00 count:1 mapcount:0 mapping:ffff8880912680c0 index:0x0 flags: 0x1fffc0000000100(slab) raw: 01fffc0000000100 ffff8880912680c0 0000000000000000 000000010000000c raw: ffffea00022b6c60 ffffea000246d9e0 ffff8880a9e74a80 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888091268200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888091268280: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc >ffff888091268300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff888091268380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888091268400: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ==================================================================