[ 21.178876][ T292] ==================================================================
[ 21.179406][ T292] BUG: KASAN: slab-use-after-free in kobject_put+0xbb/0xd0
[ 21.179877][ T292] Read of size 1 at addr ffff88800e1ba6ac by task ip/292
[ 21.180262][ T292]
[ 21.180438][ T292] CPU: 2 UID: 0 PID: 292 Comm: ip Not tainted 6.18.0-rc4-virtme #1 PREEMPT(full)
[ 21.180446][ T292] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 21.180450][ T292] Call Trace:
[ 21.180454][ T292]
[ 21.180457][ T292] dump_stack_lvl+0x82/0xc0
[ 21.180470][ T292] print_address_description.constprop.0+0x2c/0x3a0
[ 21.180492][ T292] ? kobject_put+0xbb/0xd0
[ 21.180497][ T292] print_report+0xb4/0x270
[ 21.180503][ T292] ? kobject_put+0xbb/0xd0
[ 21.180508][ T292] ? kasan_addr_to_slab+0x21/0x70
[ 21.180514][ T292] ? kobject_put+0xbb/0xd0
[ 21.180519][ T292] kasan_report+0xca/0x100
[ 21.180525][ T292] ? kobject_put+0xbb/0xd0
[ 21.180535][ T292] kobject_put+0xbb/0xd0
[ 21.180542][ T292] netdev_run_todo+0x5f0/0xc60
[ 21.180556][ T292] ? dev_ingress_queue_create+0x190/0x190
[ 21.180561][ T292] ? generic_xdp_install+0x410/0x410
[ 21.180565][ T292] ? kernfs_put.part.0+0x12d/0x480
[ 21.180583][ T292] ? unregister_netdevice_many+0x20/0x20
[ 21.180594][ T292] ? br_dev_delete+0x115/0x1a0 [bridge]
[ 21.180649][ T292] rtnl_dellink+0x350/0xa30
[ 21.180660][ T292] ? valid_bridge_getlink_req.constprop.0+0x640/0x640
[ 21.180697][ T292] ? find_held_lock+0x2b/0x80
[ 21.180715][ T292] ? __lock_acquire+0x449/0x7e0
[ 21.180726][ T292] ? find_held_lock+0x2b/0x80
[ 21.180733][ T292] ? rtnetlink_rcv_msg+0x6e6/0xc00
[ 21.180737][ T292] ? __lock_release+0x5d/0x170
[ 21.180744][ T292] ? valid_bridge_getlink_req.constprop.0+0x640/0x640
[ 21.180751][ T292] rtnetlink_rcv_msg+0x709/0xc00
[ 21.180758][ T292] ? rtnl_port_fill+0x850/0x850
[ 21.180763][ T292] ? __lock_acquire+0x449/0x7e0
[ 21.180776][ T292] netlink_rcv_skb+0x121/0x340
[ 21.180783][ T292] ? rtnl_port_fill+0x850/0x850
[ 21.180790][ T292] ? netlink_ack+0xdd0/0xdd0
[ 21.180803][ T292] ? netlink_deliver_tap+0x13e/0x340
[ 21.180808][ T292] ? netlink_deliver_tap+0xc3/0x340
[ 21.180815][ T292] netlink_unicast+0x4aa/0x780
[ 21.180823][ T292] ? netlink_attachskb+0x810/0x810
[ 21.180830][ T292] ? __lock_acquire+0x449/0x7e0
[ 21.180839][ T292] netlink_sendmsg+0x714/0xbd0
[ 21.180848][ T292] ? netlink_unicast+0x780/0x780
[ 21.180853][ T292] ? __import_iovec+0x230/0x3b0
[ 21.180869][ T292] ? netlink_unicast+0x780/0x780
[ 21.180879][ T292] ____sys_sendmsg+0x3dd/0x890
[ 21.180893][ T292] ? get_timestamp.constprop.0+0x380/0x380
[ 21.180899][ T292] ? __copy_msghdr+0x3c0/0x3c0
[ 21.180915][ T292] ___sys_sendmsg+0xed/0x170
[ 21.180920][ T292] ? kasan_record_aux_stack+0x8c/0xa0
[ 21.180925][ T292] ? __call_rcu_common.constprop.0+0xa8/0x630
[ 21.180941][ T292] ? copy_msghdr_from_user+0x110/0x110
[ 21.180950][ T292] ? find_held_lock+0x2b/0x80
[ 21.180957][ T292] ? __lock_acquire+0x449/0x7e0
[ 21.180968][ T292] ? find_held_lock+0x2b/0x80
[ 21.180974][ T292] ? __virt_addr_valid+0x22a/0x450
[ 21.180990][ T292] ? __lock_release+0x5d/0x170
[ 21.181002][ T292] __sys_sendmsg+0x10b/0x1a0
[ 21.181006][ T292] ? __call_rcu_common.constprop.0+0x318/0x630
[ 21.181013][ T292] ? __sys_sendmsg_sock+0x20/0x20
[ 21.181026][ T292] ? rcu_is_watching+0x12/0xb0
[ 21.181034][ T292] do_syscall_64+0xc1/0xfd0
[ 21.181043][ T292] entry_SYSCALL_64_after_hwframe+0x4b/0x53
[ 21.181049][ T292] RIP: 0033:0x7f277487f1d7
[ 21.181058][ T292] Code: 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b9 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10
[ 21.181062][ T292] RSP: 002b:00007ffff5d13f68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
[ 21.181072][ T292] RAX: ffffffffffffffda RBX: 00007ffff5d14690 RCX: 00007f277487f1d7
[ 21.181076][ T292] RDX: 0000000000000000 RSI: 00007ffff5d13fd0 RDI: 0000000000000005
[ 21.181080][ T292] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078
[ 21.181083][ T292] R10: 00007f277477bf60 R11: 0000000000000246 R12: 0000000000000002
[ 21.181086][ T292] R13: 00000000690deb0c R14: 0000000000499600 R15: 0000000000000000
[ 21.181098][ T292]
[ 21.181101][ T292]
[ 21.196890][ T292] Allocated by task 285:
[ 21.197086][ T292] kasan_save_stack+0x24/0x40
[ 21.197295][ T292] kasan_save_track+0x14/0x30
[ 21.197466][ T292] __kasan_kmalloc+0x7b/0x90
[ 21.197726][ T292] __kvmalloc_node_noprof+0x2e5/0x8e0
[ 21.197959][ T292] alloc_netdev_mqs+0x7d/0x1370
[ 21.198143][ T292] rtnl_create_link+0xa9e/0xe20
[ 21.198409][ T292] rtnl_newlink_create+0x203/0x770
[ 21.198679][ T292] __rtnl_newlink+0x231/0xa30
[ 21.198872][ T292] rtnl_newlink+0x693/0xa60
[ 21.199092][ T292] rtnetlink_rcv_msg+0x709/0xc00
[ 21.199300][ T292] netlink_rcv_skb+0x121/0x340
[ 21.199467][ T292] netlink_unicast+0x4aa/0x780
[ 21.199639][ T292] netlink_sendmsg+0x714/0xbd0
[ 21.199864][ T292] ____sys_sendmsg+0x3dd/0x890
[ 21.200041][ T292] ___sys_sendmsg+0xed/0x170
[ 21.200249][ T292] __sys_sendmsg+0x10b/0x1a0
[ 21.200420][ T292] do_syscall_64+0xc1/0xfd0
[ 21.200649][ T292] entry_SYSCALL_64_after_hwframe+0x4b/0x53
[ 21.200893][ T292]
[ 21.201014][ T292] Freed by task 292:
[ 21.201240][ T292] kasan_save_stack+0x24/0x40
[ 21.201436][ T292] kasan_save_track+0x14/0x30
[ 21.201609][ T292] __kasan_save_free_info+0x3b/0x60
[ 21.201853][ T292] __kasan_slab_free+0x3f/0x60
[ 21.202076][ T292] kfree+0x21d/0x540
[ 21.202220][ T292] device_release+0x9c/0x210
[ 21.202402][ T292] kobject_cleanup+0xfe/0x360
[ 21.202658][ T292] netdev_run_todo+0x81f/0xc60
[ 21.202874][ T292] rtnl_dellink+0x350/0xa30
[ 21.203048][ T292] rtnetlink_rcv_msg+0x709/0xc00
[ 21.203232][ T292] netlink_rcv_skb+0x121/0x340
[ 21.203417][ T292] netlink_unicast+0x4aa/0x780
[ 21.203613][ T292] netlink_sendmsg+0x714/0xbd0
[ 21.203803][ T292] ____sys_sendmsg+0x3dd/0x890
[ 21.203981][ T292] ___sys_sendmsg+0xed/0x170
[ 21.204198][ T292] __sys_sendmsg+0x10b/0x1a0
[ 21.204402][ T292] do_syscall_64+0xc1/0xfd0
[ 21.204596][ T292] entry_SYSCALL_64_after_hwframe+0x4b/0x53
[ 21.204810][ T292]
[ 21.204905][ T292] Last potentially related work creation:
[ 21.205126][ T292] kasan_save_stack+0x24/0x40
[ 21.205428][ T292] kasan_record_aux_stack+0x8c/0xa0
[ 21.205606][ T292] insert_work+0x34/0x230
[ 21.205737][ T292] __queue_work+0x5fd/0xab0
[ 21.205929][ T292] queue_work_on+0x84/0x90
[ 21.206127][ T292] fdb_delete+0x7bf/0xd50 [bridge]
[ 21.206435][ T292] br_fdb_change_mac_address+0x41e/0x5a0 [bridge]
[ 21.206722][ T292] br_stp_change_bridge_id+0x93/0x350 [bridge]
[ 21.206997][ T292] br_set_mac_address+0x1eb/0x260 [bridge]
[ 21.207341][ T292] netif_set_mac_address+0x280/0x410
[ 21.207548][ T292] do_setlink.constprop.0+0x629/0x2460
[ 21.207738][ T292] rtnl_setlink+0x2bb/0x5a0
[ 21.207972][ T292] rtnetlink_rcv_msg+0x709/0xc00
[ 21.208171][ T292] netlink_rcv_skb+0x121/0x340
[ 21.208351][ T292] netlink_unicast+0x4aa/0x780
[ 21.208550][ T292] netlink_sendmsg+0x714/0xbd0
[ 21.208718][ T292] __sys_sendto+0x24b/0x380
[ 21.208896][ T292] __x64_sys_sendto+0xe0/0x1b0
[ 21.209075][ T292] do_syscall_64+0xc1/0xfd0
[ 21.209283][ T292] entry_SYSCALL_64_after_hwframe+0x4b/0x53
[ 21.209552][ T292]
[ 21.209651][ T292] The buggy address belongs to the object at ffff88800e1ba000
[ 21.209651][ T292] which belongs to the cache kmalloc-8k of size 8192
[ 21.210085][ T292] The buggy address is located 1708 bytes inside of
[ 21.210085][ T292] freed 8192-byte region [ffff88800e1ba000, ffff88800e1bc000)
[ 21.210559][ T292]
[ 21.210651][ T292] The buggy address belongs to the physical page:
[ 21.210899][ T292] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe1b8
[ 21.211238][ T292] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[ 21.211505][ T292] flags: 0x80000000000040(head|node=0|zone=1)
[ 21.211728][ T292] page_type: f5(slab)
[ 21.211864][ T292] raw: 0080000000000040 ffff8880010438c0 ffffea000013fe10 ffff888001041228
[ 21.212229][ T292] raw: 0000000000000000 0000000000010001 00000000f5000000 0000000000000000
[ 21.212553][ T292] head: 0080000000000040 ffff8880010438c0 ffffea000013fe10 ffff888001041228
[ 21.212867][ T292] head: 0000000000000000 0000000000010001 00000000f5000000 0000000000000000
[ 21.213212][ T292] head: 0080000000000003 ffffea0000386e01 00000000ffffffff 00000000ffffffff
[ 21.213540][ T292] head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[ 21.213863][ T292] page dumped because: kasan: bad access detected
[ 21.214102][ T292]
[ 21.214210][ T292] Memory state around the buggy address:
[ 21.214389][ T292] ffff88800e1ba580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 21.214657][ T292] ffff88800e1ba600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 21.214938][ T292] >ffff88800e1ba680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 21.215250][ T292] ^
[ 21.215435][ T292] ffff88800e1ba700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 21.215699][ T292] ffff88800e1ba780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 21.215973][ T292] ==================================================================
[ 21.216498][ T292] Disabling lock debugging due to kernel taint
[ 21.216765][ T292] ------------[ cut here ]------------
[ 21.216959][ T292] refcount_t: underflow; use-after-free.
[ 21.217218][ T292] WARNING: CPU: 0 PID: 292 at lib/refcount.c:28 refcount_warn_saturate+0x16f/0x1b0
[ 21.217648][ T292] Modules linked in: bridge stp llc veth
[ 21.217947][ T292] CPU: 0 UID: 0 PID: 292 Comm: ip Tainted: G B 6.18.0-rc4-virtme #1 PREEMPT(full)
[ 21.218519][ T292] Tainted: [B]=BAD_PAGE
[ 21.218733][ T292] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 21.219083][ T292] RIP: 0010:refcount_warn_saturate+0x16f/0x1b0
[ 21.219488][ T292] Code: 7d 93 02 80 fb 01 0f 87 bb 99 d9 fe 83 e3 01 0f 85 51 ff ff ff c6 05 a8 7d 93 02 01 90 48 c7 c7 60 8d a5 88 e8 32 bf 18 ff 90 <0f> 0b 90 90 e9 33 ff ff ff 48 89 df e8 b0 63 a1 ff e9 ba fe ff ff
[ 21.220529][ T292] RSP: 0018:ffffc900005971f0 EFLAGS: 00010286
[ 21.220904][ T292] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 21.221357][ T292] RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000001
[ 21.221800][ T292] RBP: 0000000000000003 R08: 0000000000000000 R09: fffffbfff127e134
[ 21.222257][ T292] R10: 0000000000000003 R11: ffffc90000596d80 R12: 0000000000000001
[ 21.222706][ T292] R13: dffffc0000000000 R14: dead000000000122 R15: dead000000000100
[ 21.223138][ T292] FS: 00007f27746b1800(0000) GS:ffff8880ab9f2000(0000) knlGS:0000000000000000
[ 21.223651][ T292] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 21.224015][ T292] CR2: 000055f33ccebbd8 CR3: 000000000c4ce003 CR4: 0000000000772ef0
[ 21.224464][ T292] PKRU: 55555554
[ 21.224686][ T292] Call Trace:
[ 21.224899][ T292]
[ 21.225014][ T292] netdev_run_todo+0x5f0/0xc60
[ 21.225251][ T292] ? dev_ingress_queue_create+0x190/0x190
[ 21.225558][ T292] ? generic_xdp_install+0x410/0x410
[ 21.225751][ T292] ? kernfs_put.part.0+0x12d/0x480
[ 21.226049][ T292] ? unregister_netdevice_many+0x20/0x20
[ 21.226271][ T292] ? br_dev_delete+0x115/0x1a0 [bridge]
[ 21.226535][ T292] rtnl_dellink+0x350/0xa30
[ 21.226722][ T292] ? valid_bridge_getlink_req.constprop.0+0x640/0x640
[ 21.227070][ T292] ? find_held_lock+0x2b/0x80
[ 21.227299][ T292] ? __lock_acquire+0x449/0x7e0
[ 21.227503][ T292] ? find_held_lock+0x2b/0x80
[ 21.227802][ T292] ? rtnetlink_rcv_msg+0x6e6/0xc00
[ 21.227982][ T292] ? __lock_release+0x5d/0x170
[ 21.228176][ T292] ? valid_bridge_getlink_req.constprop.0+0x640/0x640
[ 21.228406][ T292] rtnetlink_rcv_msg+0x709/0xc00
[ 21.228670][ T292] ? rtnl_port_fill+0x850/0x850
[ 21.228835][ T292] ? __lock_acquire+0x449/0x7e0
[ 21.229016][ T292] netlink_rcv_skb+0x121/0x340
[ 21.229229][ T292] ? rtnl_port_fill+0x850/0x850
[ 21.229541][ T292] ? netlink_ack+0xdd0/0xdd0
[ 21.229728][ T292] ? netlink_deliver_tap+0x13e/0x340
[ 21.229909][ T292] ? netlink_deliver_tap+0xc3/0x340
[ 21.230091][ T292] netlink_unicast+0x4aa/0x780
[ 21.230334][ T292] ? netlink_attachskb+0x810/0x810
[ 21.230651][ T292] ? __lock_acquire+0x449/0x7e0
[ 21.230932][ T292] netlink_sendmsg+0x714/0xbd0
[ 21.231222][ T292] ? netlink_unicast+0x780/0x780
[ 21.231690][ T292] ? __import_iovec+0x230/0x3b0
[ 21.231978][ T292] ? netlink_unicast+0x780/0x780
[ 21.232275][ T292] ____sys_sendmsg+0x3dd/0x890
[ 21.232557][ T292] ? get_timestamp.constprop.0+0x380/0x380
[ 21.233070][ T292] ? __copy_msghdr+0x3c0/0x3c0
[ 21.233360][ T292] ___sys_sendmsg+0xed/0x170
[ 21.233604][ T292] ? kasan_record_aux_stack+0x8c/0xa0
[ 21.233816][ T292] ? __call_rcu_common.constprop.0+0xa8/0x630
[ 21.234126][ T292] ? copy_msghdr_from_user+0x110/0x110
[ 21.234328][ T292] ? find_held_lock+0x2b/0x80
[ 21.234527][ T292] ? __lock_acquire+0x449/0x7e0
[ 21.234723][ T292] ? find_held_lock+0x2b/0x80
[ 21.234916][ T292] ? __virt_addr_valid+0x22a/0x450
[ 21.235096][ T292] ? __lock_release+0x5d/0x170
[ 21.235291][ T292] __sys_sendmsg+0x10b/0x1a0
[ 21.235508][ T292] ? __call_rcu_common.constprop.0+0x318/0x630
[ 21.235900][ T292] ? __sys_sendmsg_sock+0x20/0x20
[ 21.236123][ T292] ? rcu_is_watching+0x12/0xb0
[ 21.236379][ T292] do_syscall_64+0xc1/0xfd0
[ 21.236691][ T292] entry_SYSCALL_64_after_hwframe+0x4b/0x53
[ 21.236954][ T292] RIP: 0033:0x7f277487f1d7
[ 21.237177][ T292] Code: 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b9 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10
[ 21.238007][ T292] RSP: 002b:00007ffff5d13f68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
[ 21.238444][ T292] RAX: ffffffffffffffda RBX: 00007ffff5d14690 RCX: 00007f277487f1d7
[ 21.238720][ T292] RDX: 0000000000000000 RSI: 00007ffff5d13fd0 RDI: 0000000000000005
[ 21.239009][ T292] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078
[ 21.239389][ T292] R10: 00007f277477bf60 R11: 0000000000000246 R12: 0000000000000002
[ 21.239658][ T292] R13: 00000000690deb0c R14: 0000000000499600 R15: 0000000000000000
[ 21.240028][ T292]
[ 21.240272][ T292] irq event stamp: 40677
[ 21.240412][ T292] hardirqs last enabled at (40677): [] kasan_quarantine_put+0xf9/0x210
[ 21.240759][ T292] hardirqs last disabled at (40676): [] kasan_quarantine_put+0xac/0x210
[ 21.241089][ T292] softirqs last enabled at (40108): [] handle_softirqs+0x352/0x610
[ 21.241475][ T292] softirqs last disabled at (39957): [] irq_exit_rcu+0xab/0x100
[ 21.241933][ T292] ---[ end trace 0000000000000000 ]---
[ 23.348258][ T316] br0: port 1(veth1) entered blocking state
[ 23.348642][ T316] br0: port 1(veth1) entered disabled state
[ 23.349017][ T316] veth1: entered allmulticast mode
[ 23.351296][ T316] veth1: entered promiscuous mode
[ 23.445859][ T318] br0: port 2(veth3) entered blocking state
[ 23.446159][ T318] br0: port 2(veth3) entered disabled state
[ 23.446446][ T318] veth3: entered allmulticast mode
[ 23.448587][ T318] veth3: entered promiscuous mode
[ 23.852249][ T114] br0: port 1(veth1) entered blocking state
[ 23.852773][ T114] br0: port 1(veth1) entered forwarding state
[ 23.937639][ T114] br0: port 2(veth3) entered blocking state
[ 23.937976][ T114] br0: port 2(veth3) entered forwarding state
[ 39.268758][ T559] br0: port 3(veth5) entered blocking state
[ 39.269246][ T559] br0: port 3(veth5) entered disabled state
[ 39.269726][ T559] veth5: entered allmulticast mode
[ 39.273066][ T559] veth5: entered promiscuous mode
[ 39.527967][ T564] veth5: left allmulticast mode
[ 39.528359][ T564] veth5: left promiscuous mode
[ 39.528889][ T564] br0: port 3(veth5) entered disabled state
[ 40.474589][ T579] br0: port 3(veth5) entered blocking state
[ 40.474919][ T579] br0: port 3(veth5) entered disabled state
[ 40.475296][ T579] veth5: entered allmulticast mode
[ 40.477267][ T579] veth5: entered promiscuous mode
[ 40.477670][ T579] br0: adding interface veth5 with same address as a received packet (addr:de:ad:be:ef:42:00, vlan:0)
[ 40.677835][ T584] veth5: left allmulticast mode
[ 40.678137][ T584] veth5: left promiscuous mode
[ 40.678996][ T584] br0: port 3(veth5) entered disabled state
[ 86.884659][ T1324] br0: port 3(veth5) entered blocking state
[ 86.885049][ T1324] br0: port 3(veth5) entered disabled state
[ 86.885589][ T1324] veth5: entered allmulticast mode
[ 86.887682][ T1324] veth5: entered promiscuous mode
[ 87.104852][ T1336] br0: port 3(veth5) entered disabled state
[ 87.184875][ T1337] br0: port 2(veth3) entered disabled state
[ 87.253761][ T1338] br0: port 1(veth1) entered disabled state
[ 87.331036][ T1339] veth5: left allmulticast mode
[ 87.331656][ T1339] veth5: left promiscuous mode
[ 87.331989][ T1339] br0: port 3(veth5) entered disabled state
[ 87.333214][ T1339] veth3: left allmulticast mode
[ 87.333429][ T1339] veth3: left promiscuous mode
[ 87.333741][ T1339] br0: port 2(veth3) entered disabled state
[ 87.334712][ T1339] veth1: left allmulticast mode
[ 87.334903][ T1339] veth1: left promiscuous mode
[ 87.335231][ T1339] br0: port 1(veth1) entered disabled state