================================================================== BUG: KASAN: use-after-free in br_dev_xmit+0x12b3/0x13e0 net/bridge/br_device.c:68 Read of size 2 at addr ffff88809700438e by task syz-executor.0/15681 CPU: 1 PID: 15681 Comm: syz-executor.0 Not tainted 4.19.211-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+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 syz-executor.2 (15594): drop_caches: 1 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load_n_noabort+0x8b/0xa0 mm/kasan/report.c:443 br_dev_xmit+0x12b3/0x13e0 net/bridge/br_device.c:68 __netdev_start_xmit include/linux/netdevice.h:4349 [inline] netdev_start_xmit include/linux/netdevice.h:4363 [inline] xmit_one net/core/dev.c:3256 [inline] dev_hard_start_xmit+0x1a8/0x920 net/core/dev.c:3272 __dev_queue_xmit+0x269d/0x2e00 net/core/dev.c:3838 vlan_dev_hard_start_xmit+0x38f/0x800 net/8021q/vlan_dev.c:131 __netdev_start_xmit include/linux/netdevice.h:4349 [inline] netdev_start_xmit include/linux/netdevice.h:4363 [inline] xmit_one net/core/dev.c:3256 [inline] dev_hard_start_xmit+0x1a8/0x920 net/core/dev.c:3272 __dev_queue_xmit+0x269d/0x2e00 net/core/dev.c:3838 bond_dev_queue_xmit+0x103/0x380 drivers/net/bonding/bond_main.c:256 bond_do_alb_xmit+0x2fb/0x800 drivers/net/bonding/bond_alb.c:1337 bond_alb_xmit+0x1da/0x1b70 drivers/net/bonding/bond_alb.c:1521 __bond_start_xmit drivers/net/bonding/bond_main.c:4212 [inline] bond_start_xmit+0x7fe/0x14f0 drivers/net/bonding/bond_main.c:4237 __netdev_start_xmit include/linux/netdevice.h:4349 [inline] netdev_start_xmit include/linux/netdevice.h:4363 [inline] xmit_one net/core/dev.c:3256 [inline] dev_hard_start_xmit+0x1a8/0x920 net/core/dev.c:3272 __dev_queue_xmit+0x269d/0x2e00 net/core/dev.c:3838 neigh_resolve_output+0x55a/0x910 net/core/neighbour.c:1374 neigh_output include/net/neighbour.h:501 [inline] ip6_finish_output2+0x113d/0x2290 net/ipv6/ip6_output.c:120 ip6_finish_output+0x89b/0x10f0 net/ipv6/ip6_output.c:192 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x205/0x770 net/ipv6/ip6_output.c:209 dst_output include/net/dst.h:455 [inline] NF_HOOK include/linux/netfilter.h:289 [inline] mld_sendpack+0x674/0x1060 net/ipv6/mcast.c:1681 mld_send_cr net/ipv6/mcast.c:1977 [inline] mld_ifc_timer_expire+0x616/0xdf0 net/ipv6/mcast.c:2476 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1696 [inline] run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709 __do_softirq+0x265/0x980 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x215/0x260 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x4/0x50 kernel/kcov.c:100 Code: e8 11 dd 35 00 e9 ab fe ff ff 4c 89 ef e8 04 dd 35 00 e9 23 fe ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 8b 34 24 <65> 48 8b 04 25 c0 df 01 00 65 8b 15 cc 59 9f 7e 81 e2 00 01 1f 00 RSP: 0018:ffff88804c6d7408 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000002 RBX: 0000000000000001 RCX: ffffffff83771e23 RDX: 0000000000000001 RSI: ffffffff83771e2c RDI: 0000000000000005 RBP: ffffffff88b3e120 R08: 00000000e6c2318d R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001 R13: ffffffff88b3e0e0 R14: 0000000000000049 R15: 0000000000000000 check_preemption_disabled+0x3c/0x280 lib/smp_processor_id.c:25 rcu_dynticks_curr_cpu_in_eqs kernel/rcu/tree.c:348 [inline] rcu_is_watching+0x12/0xc0 kernel/rcu/tree.c:1025 rcu_read_lock include/linux/rcupdate.h:628 [inline] dev_get_by_index+0x264/0x2e0 net/core/dev.c:864 ip6_route_info_create+0x16e7/0x3800 net/ipv6/route.c:3037 ip6_route_add+0x24/0x110 net/ipv6/route.c:3223 addrconf_prefix_route+0x360/0x4f0 net/ipv6/addrconf.c:2348 sit_add_v4_addrs net/ipv6/addrconf.c:3093 [inline] addrconf_sit_config net/ipv6/addrconf.c:3343 [inline] addrconf_notify+0x12f8/0x21f0 net/ipv6/addrconf.c:3538 notifier_call_chain+0xc0/0x230 kernel/notifier.c:93 call_netdevice_notifiers net/core/dev.c:1762 [inline] __dev_notify_flags+0x110/0x2b0 net/core/dev.c:7717 dev_change_flags+0xf0/0x140 net/core/dev.c:7753 dev_ifsioc+0x2ce/0x8c0 net/core/dev_ioctl.c:237 dev_ioctl+0x1ab/0xc50 net/core/dev_ioctl.c:488 sock_do_ioctl+0x178/0x300 net/socket.c:1038 sock_ioctl+0x2ef/0x5d0 net/socket.c:1135 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/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7ff8d772a049 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff8d605d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff8d783d100 RCX: 00007ff8d772a049 RDX: 0000000020000080 RSI: 0000000000008914 RDI: 0000000000000005 RBP: 00007ff8d778408d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff8687847f R14: 00007ff8d605d300 R15: 0000000000022000 Allocated by task 15681: __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node_track_caller+0x4c/0x70 mm/slab.c:3703 __kmalloc_reserve net/core/skbuff.c:137 [inline] __alloc_skb+0xae/0x560 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:995 [inline] alloc_skb_with_frags+0x92/0x570 net/core/skbuff.c:5333 sock_alloc_send_pskb+0x6e1/0x830 net/core/sock.c:2108 mld_newpack+0x1d2/0x760 net/ipv6/mcast.c:1609 add_grhead+0x265/0x330 net/ipv6/mcast.c:1712 add_grec+0xe3c/0x10b0 net/ipv6/mcast.c:1843 mld_send_cr net/ipv6/mcast.c:1969 [inline] mld_ifc_timer_expire+0x5a2/0xdf0 net/ipv6/mcast.c:2476 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1696 [inline] run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709 __do_softirq+0x265/0x980 kernel/softirq.c:292 Freed by task 15681: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 skb_free_head net/core/skbuff.c:563 [inline] pskb_expand_head+0x327/0xf20 net/core/skbuff.c:1506 __skb_cow include/linux/skbuff.h:2977 [inline] skb_cow_head include/linux/skbuff.h:3011 [inline] __vlan_insert_inner_tag include/linux/if_vlan.h:346 [inline] vlan_insert_inner_tag include/linux/if_vlan.h:416 [inline] vlan_insert_tag include/linux/if_vlan.h:441 [inline] vlan_insert_tag_set_proto include/linux/if_vlan.h:460 [inline] __allowed_ingress net/bridge/br_vlan.c:437 [inline] br_allowed_ingress+0x376/0xed0 net/bridge/br_vlan.c:514 br_dev_xmit+0x3e5/0x13e0 net/bridge/br_device.c:64 __netdev_start_xmit include/linux/netdevice.h:4349 [inline] netdev_start_xmit include/linux/netdevice.h:4363 [inline] xmit_one net/core/dev.c:3256 [inline] dev_hard_start_xmit+0x1a8/0x920 net/core/dev.c:3272 __dev_queue_xmit+0x269d/0x2e00 net/core/dev.c:3838 vlan_dev_hard_start_xmit+0x38f/0x800 net/8021q/vlan_dev.c:131 __netdev_start_xmit include/linux/netdevice.h:4349 [inline] netdev_start_xmit include/linux/netdevice.h:4363 [inline] xmit_one net/core/dev.c:3256 [inline] dev_hard_start_xmit+0x1a8/0x920 net/core/dev.c:3272 __dev_queue_xmit+0x269d/0x2e00 net/core/dev.c:3838 bond_dev_queue_xmit+0x103/0x380 drivers/net/bonding/bond_main.c:256 bond_do_alb_xmit+0x2fb/0x800 drivers/net/bonding/bond_alb.c:1337 bond_alb_xmit+0x1da/0x1b70 drivers/net/bonding/bond_alb.c:1521 __bond_start_xmit drivers/net/bonding/bond_main.c:4212 [inline] bond_start_xmit+0x7fe/0x14f0 drivers/net/bonding/bond_main.c:4237 __netdev_start_xmit include/linux/netdevice.h:4349 [inline] netdev_start_xmit include/linux/netdevice.h:4363 [inline] xmit_one net/core/dev.c:3256 [inline] dev_hard_start_xmit+0x1a8/0x920 net/core/dev.c:3272 __dev_queue_xmit+0x269d/0x2e00 net/core/dev.c:3838 neigh_resolve_output+0x55a/0x910 net/core/neighbour.c:1374 neigh_output include/net/neighbour.h:501 [inline] ip6_finish_output2+0x113d/0x2290 net/ipv6/ip6_output.c:120 ip6_finish_output+0x89b/0x10f0 net/ipv6/ip6_output.c:192 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x205/0x770 net/ipv6/ip6_output.c:209 dst_output include/net/dst.h:455 [inline] NF_HOOK include/linux/netfilter.h:289 [inline] mld_sendpack+0x674/0x1060 net/ipv6/mcast.c:1681 mld_send_cr net/ipv6/mcast.c:1977 [inline] mld_ifc_timer_expire+0x616/0xdf0 net/ipv6/mcast.c:2476 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1696 [inline] run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709 __do_softirq+0x265/0x980 kernel/softirq.c:292 The buggy address belongs to the object at ffff888097004380 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 14 bytes inside of 2048-byte region [ffff888097004380, ffff888097004b80) The buggy address belongs to the page: page:ffffea00025c0100 count:1 mapcount:0 mapping:ffff88813bff0c40 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea0002579c08 ffffea00022fff88 ffff88813bff0c40 raw: 0000000000000000 ffff888097004380 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888097004280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888097004300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888097004380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888097004400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888097004480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: e8 11 dd 35 00 callq 0x35dd16 5: e9 ab fe ff ff jmpq 0xfffffeb5 a: 4c 89 ef mov %r13,%rdi d: e8 04 dd 35 00 callq 0x35dd16 12: e9 23 fe ff ff jmpq 0xfffffe3a 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: 90 nop 24: 90 nop 25: 90 nop 26: 48 8b 34 24 mov (%rsp),%rsi * 2a: 65 48 8b 04 25 c0 df mov %gs:0x1dfc0,%rax <-- trapping instruction 31: 01 00 33: 65 8b 15 cc 59 9f 7e mov %gs:0x7e9f59cc(%rip),%edx # 0x7e9f5a06 3a: 81 e2 00 01 1f 00 and $0x1f0100,%edx