[ 18.602483][ T254] bond1: (slave dummy1): making interface the new active one [ 18.605949][ T254] bond1: (slave dummy1): Enslaving as an active interface with an up link [ 18.627253][ T254] ip (254) used greatest stack depth: 24592 bytes left [ 18.760428][ T258] bond1: (slave dummy2): Enslaving as a backup interface with an up link [ 18.917443][ T259] dummy1: entered promiscuous mode [ 19.769326][ T278] dummy1: left promiscuous mode [ 19.926546][ T279] bond1 (unregistering): (slave dummy1): Releasing backup interface [ 19.933433][ T279] bond1 (unregistering): (slave dummy2): Releasing backup interface [ 19.945065][ T279] bond1 (unregistering): Released all slaves [ 19.981918][ T279] ================================================================== [ 19.982337][ T279] BUG: KASAN: slab-use-after-free in kobject_put+0xbb/0xd0 [ 19.982656][ T279] Read of size 1 at addr ffff88800b89469c by task ip/279 [ 19.982911][ T279] [ 19.983032][ T279] CPU: 2 UID: 0 PID: 279 Comm: ip Not tainted 6.18.0-rc4-virtme #1 PREEMPT(full) [ 19.983038][ T279] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.983041][ T279] Call Trace: [ 19.983043][ T279] [ 19.983045][ T279] dump_stack_lvl+0x82/0xc0 [ 19.983055][ T279] print_address_description.constprop.0+0x2c/0x3a0 [ 19.983062][ T279] ? kobject_put+0xbb/0xd0 [ 19.983066][ T279] print_report+0xb4/0x270 [ 19.983069][ T279] ? kobject_put+0xbb/0xd0 [ 19.983071][ T279] ? kasan_addr_to_slab+0x21/0x70 [ 19.983075][ T279] ? kobject_put+0xbb/0xd0 [ 19.983077][ T279] kasan_report+0xca/0x100 [ 19.983080][ T279] ? kobject_put+0xbb/0xd0 [ 19.983085][ T279] kobject_put+0xbb/0xd0 [ 19.983088][ T279] netdev_run_todo+0x5f0/0xc60 [ 19.983096][ T279] ? dev_ingress_queue_create+0x190/0x190 [ 19.983100][ T279] ? generic_xdp_install+0x410/0x410 [ 19.983103][ T279] ? unregister_netdevice_many+0x20/0x20 [ 19.983107][ T279] ? __lock_acquire+0x449/0x7e0 [ 19.983115][ T279] rtnl_dellink+0x350/0xa30 [ 19.983121][ T279] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 19.983141][ T279] ? find_held_lock+0x2b/0x80 [ 19.983146][ T279] ? __lock_acquire+0x449/0x7e0 [ 19.983152][ T279] ? find_held_lock+0x2b/0x80 [ 19.983155][ T279] ? rtnetlink_rcv_msg+0x6e6/0xc00 [ 19.983158][ T279] ? __lock_release+0x5d/0x170 [ 19.983163][ T279] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 19.983166][ T279] rtnetlink_rcv_msg+0x709/0xc00 [ 19.983170][ T279] ? rtnl_port_fill+0x850/0x850 [ 19.983173][ T279] ? __lock_acquire+0x449/0x7e0 [ 19.983180][ T279] netlink_rcv_skb+0x121/0x340 [ 19.983186][ T279] ? rtnl_port_fill+0x850/0x850 [ 19.983189][ T279] ? netlink_ack+0xdd0/0xdd0 [ 19.983195][ T279] ? netlink_deliver_tap+0x13e/0x340 [ 19.983202][ T279] ? netlink_deliver_tap+0xc3/0x340 [ 19.983207][ T279] netlink_unicast+0x4aa/0x780 [ 19.983211][ T279] ? netlink_attachskb+0x810/0x810 [ 19.983214][ T279] ? __lock_acquire+0x449/0x7e0 [ 19.983220][ T279] netlink_sendmsg+0x714/0xbd0 [ 19.983224][ T279] ? netlink_unicast+0x780/0x780 [ 19.983227][ T279] ? __import_iovec+0x230/0x3b0 [ 19.983235][ T279] ? netlink_unicast+0x780/0x780 [ 19.983238][ T279] ____sys_sendmsg+0x3dd/0x890 [ 19.983245][ T279] ? get_timestamp.constprop.0+0x380/0x380 [ 19.983249][ T279] ? __copy_msghdr+0x3c0/0x3c0 [ 19.983255][ T279] ___sys_sendmsg+0xed/0x170 [ 19.983257][ T279] ? kasan_record_aux_stack+0x8c/0xa0 [ 19.983260][ T279] ? __call_rcu_common.constprop.0+0xa8/0x630 [ 19.983271][ T279] ? copy_msghdr_from_user+0x110/0x110 [ 19.983274][ T279] ? find_held_lock+0x2b/0x80 [ 19.983279][ T279] ? __lock_acquire+0x449/0x7e0 [ 19.983284][ T279] ? find_held_lock+0x2b/0x80 [ 19.983287][ T279] ? __virt_addr_valid+0x22a/0x450 [ 19.983293][ T279] ? __lock_release+0x5d/0x170 [ 19.983299][ T279] __sys_sendmsg+0x10b/0x1a0 [ 19.983302][ T279] ? __call_rcu_common.constprop.0+0x318/0x630 [ 19.983306][ T279] ? __sys_sendmsg_sock+0x20/0x20 [ 19.983312][ T279] ? rcu_is_watching+0x12/0xb0 [ 19.983316][ T279] do_syscall_64+0xc1/0xfd0 [ 19.983324][ T279] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 19.983328][ T279] RIP: 0033:0x7f67b27801d7 [ 19.983336][ T279] 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 [ 19.983339][ T279] RSP: 002b:00007ffe0c68fe38 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 19.983344][ T279] RAX: ffffffffffffffda RBX: 00007ffe0c690560 RCX: 00007f67b27801d7 [ 19.983346][ T279] RDX: 0000000000000000 RSI: 00007ffe0c68fea0 RDI: 0000000000000005 [ 19.983348][ T279] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 19.983350][ T279] R10: 00007f67b267cf60 R11: 0000000000000246 R12: 0000000000000001 [ 19.983351][ T279] R13: 00000000690dead3 R14: 0000000000499600 R15: 0000000000000000 [ 19.983358][ T279] [ 19.983359][ T279] [ 19.998918][ T279] Allocated by task 259: [ 19.999084][ T279] kasan_save_stack+0x24/0x40 [ 19.999300][ T279] kasan_save_track+0x14/0x30 [ 19.999503][ T279] __kasan_kmalloc+0x7b/0x90 [ 19.999708][ T279] __kvmalloc_node_noprof+0x2e5/0x8e0 [ 19.999915][ T279] alloc_netdev_mqs+0x7d/0x1310 [ 20.000122][ T279] rtnl_create_link+0xa9e/0xe20 [ 20.000327][ T279] rtnl_newlink_create+0x203/0x8f0 [ 20.000532][ T279] __rtnl_newlink+0x231/0xa30 [ 20.000736][ T279] rtnl_newlink+0x693/0xa60 [ 20.000942][ T279] rtnetlink_rcv_msg+0x709/0xc00 [ 20.001147][ T279] netlink_rcv_skb+0x121/0x340 [ 20.001359][ T279] netlink_unicast+0x4aa/0x780 [ 20.001561][ T279] netlink_sendmsg+0x714/0xbd0 [ 20.001772][ T279] ____sys_sendmsg+0x3dd/0x890 [ 20.001988][ T279] ___sys_sendmsg+0xed/0x170 [ 20.002225][ T279] __sys_sendmsg+0x10b/0x1a0 [ 20.002431][ T279] do_syscall_64+0xc1/0xfd0 [ 20.002638][ T279] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 20.002892][ T279] [ 20.002998][ T279] Freed by task 279: [ 20.003152][ T279] kasan_save_stack+0x24/0x40 [ 20.003357][ T279] kasan_save_track+0x14/0x30 [ 20.003555][ T279] __kasan_save_free_info+0x3b/0x60 [ 20.003766][ T279] __kasan_slab_free+0x3f/0x60 [ 20.003967][ T279] kfree+0x21d/0x540 [ 20.004124][ T279] device_release+0x9c/0x210 [ 20.004341][ T279] kobject_cleanup+0xfe/0x360 [ 20.004545][ T279] netdev_run_todo+0x81f/0xc60 [ 20.004745][ T279] rtnl_dellink+0x350/0xa30 [ 20.004950][ T279] rtnetlink_rcv_msg+0x709/0xc00 [ 20.005199][ T279] netlink_rcv_skb+0x121/0x340 [ 20.005434][ T279] netlink_unicast+0x4aa/0x780 [ 20.005647][ T279] netlink_sendmsg+0x714/0xbd0 [ 20.005850][ T279] ____sys_sendmsg+0x3dd/0x890 [ 20.006067][ T279] ___sys_sendmsg+0xed/0x170 [ 20.006271][ T279] __sys_sendmsg+0x10b/0x1a0 [ 20.006477][ T279] do_syscall_64+0xc1/0xfd0 [ 20.006685][ T279] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 20.007043][ T279] [ 20.007142][ T279] The buggy address belongs to the object at ffff88800b894000 [ 20.007142][ T279] which belongs to the cache kmalloc-4k of size 4096 [ 20.007583][ T279] The buggy address is located 1692 bytes inside of [ 20.007583][ T279] freed 4096-byte region [ffff88800b894000, ffff88800b895000) [ 20.008097][ T279] [ 20.008184][ T279] The buggy address belongs to the physical page: [ 20.008414][ T279] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb890 [ 20.008718][ T279] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 20.008985][ T279] flags: 0x80000000000040(head|node=0|zone=1) [ 20.009300][ T279] page_type: f5(slab) [ 20.009466][ T279] raw: 0080000000000040 ffff888001043700 ffffea00001e6210 ffffea0000273e10 [ 20.009832][ T279] raw: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 [ 20.010199][ T279] head: 0080000000000040 ffff888001043700 ffffea00001e6210 ffffea0000273e10 [ 20.010572][ T279] head: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 [ 20.010940][ T279] head: 0080000000000003 ffffea00002e2401 00000000ffffffff 00000000ffffffff [ 20.011310][ T279] head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 20.011682][ T279] page dumped because: kasan: bad access detected [ 20.011933][ T279] [ 20.012040][ T279] Memory state around the buggy address: [ 20.012251][ T279] ffff88800b894580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.012558][ T279] ffff88800b894600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.012856][ T279] >ffff88800b894680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.013156][ T279] ^ [ 20.013362][ T279] ffff88800b894700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.013656][ T279] ffff88800b894780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.013955][ T279] ================================================================== [ 20.014931][ T279] Disabling lock debugging due to kernel taint [ 20.015245][ T279] ------------[ cut here ]------------ [ 20.015440][ T279] refcount_t: underflow; use-after-free. [ 20.015678][ T279] WARNING: CPU: 3 PID: 279 at lib/refcount.c:28 refcount_warn_saturate+0x16f/0x1b0 [ 20.016069][ T279] Modules linked in: [ 20.016313][ T279] CPU: 3 UID: 0 PID: 279 Comm: ip Tainted: G B 6.18.0-rc4-virtme #1 PREEMPT(full) [ 20.016919][ T279] Tainted: [B]=BAD_PAGE [ 20.017141][ T279] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.017485][ T279] RIP: 0010:refcount_warn_saturate+0x16f/0x1b0 [ 20.017754][ T279] Code: a2 b5 02 80 fb 01 0f 87 db 6e d8 fe 83 e3 01 0f 85 51 ff ff ff c6 05 c2 a2 b5 02 01 90 48 c7 c7 60 a8 05 af e8 72 c3 17 ff 90 <0f> 0b 90 90 e9 33 ff ff ff 48 89 df e8 20 69 a0 ff e9 ba fe ff ff [ 20.018434][ T279] RSP: 0018:ffffc90000c371f0 EFLAGS: 00010286 [ 20.018670][ T279] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 20.018962][ T279] RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000001 [ 20.019272][ T279] RBP: 0000000000000003 R08: 0000000000000000 R09: fffffbfff5f3e134 [ 20.019555][ T279] R10: 0000000000000003 R11: ffffc90000c36d80 R12: 0000000000000001 [ 20.019859][ T279] R13: dffffc0000000000 R14: dead000000000122 R15: dead000000000100 [ 20.020173][ T279] FS: 00007f67b25b2800(0000) GS:ffff888085501000(0000) knlGS:0000000000000000 [ 20.020525][ T279] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 20.020770][ T279] CR2: 00007f9093a534c0 CR3: 0000000004c3c004 CR4: 0000000000772ef0 [ 20.021118][ T279] PKRU: 55555554 [ 20.021284][ T279] Call Trace: [ 20.021427][ T279] [ 20.021530][ T279] netdev_run_todo+0x5f0/0xc60 [ 20.021735][ T279] ? dev_ingress_queue_create+0x190/0x190 [ 20.021956][ T279] ? generic_xdp_install+0x410/0x410 [ 20.022185][ T279] ? unregister_netdevice_many+0x20/0x20 [ 20.022372][ T279] ? __lock_acquire+0x449/0x7e0 [ 20.022563][ T279] rtnl_dellink+0x350/0xa30 [ 20.022762][ T279] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 20.023049][ T279] ? find_held_lock+0x2b/0x80 [ 20.023247][ T279] ? __lock_acquire+0x449/0x7e0 [ 20.023438][ T279] ? find_held_lock+0x2b/0x80 [ 20.023631][ T279] ? rtnetlink_rcv_msg+0x6e6/0xc00 [ 20.023829][ T279] ? __lock_release+0x5d/0x170 [ 20.024056][ T279] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 20.024284][ T279] rtnetlink_rcv_msg+0x709/0xc00 [ 20.024468][ T279] ? rtnl_port_fill+0x850/0x850 [ 20.024651][ T279] ? __lock_acquire+0x449/0x7e0 [ 20.024853][ T279] netlink_rcv_skb+0x121/0x340 [ 20.025079][ T279] ? rtnl_port_fill+0x850/0x850 [ 20.025271][ T279] ? netlink_ack+0xdd0/0xdd0 [ 20.025456][ T279] ? netlink_deliver_tap+0x13e/0x340 [ 20.025639][ T279] ? netlink_deliver_tap+0xc3/0x340 [ 20.025826][ T279] netlink_unicast+0x4aa/0x780 [ 20.026082][ T279] ? netlink_attachskb+0x810/0x810 [ 20.026345][ T279] ? __lock_acquire+0x449/0x7e0 [ 20.026622][ T279] netlink_sendmsg+0x714/0xbd0 [ 20.026919][ T279] ? netlink_unicast+0x780/0x780 [ 20.027180][ T279] ? __import_iovec+0x230/0x3b0 [ 20.027391][ T279] ? netlink_unicast+0x780/0x780 [ 20.027604][ T279] ____sys_sendmsg+0x3dd/0x890 [ 20.027888][ T279] ? get_timestamp.constprop.0+0x380/0x380 [ 20.028221][ T279] ? __copy_msghdr+0x3c0/0x3c0 [ 20.028504][ T279] ___sys_sendmsg+0xed/0x170 [ 20.028780][ T279] ? kasan_record_aux_stack+0x8c/0xa0 [ 20.028988][ T279] ? __call_rcu_common.constprop.0+0xa8/0x630 [ 20.029229][ T279] ? copy_msghdr_from_user+0x110/0x110 [ 20.029409][ T279] ? find_held_lock+0x2b/0x80 [ 20.029586][ T279] ? __lock_acquire+0x449/0x7e0 [ 20.029769][ T279] ? find_held_lock+0x2b/0x80 [ 20.029976][ T279] ? __virt_addr_valid+0x22a/0x450 [ 20.030234][ T279] ? __lock_release+0x5d/0x170 [ 20.030479][ T279] __sys_sendmsg+0x10b/0x1a0 [ 20.030748][ T279] ? __call_rcu_common.constprop.0+0x318/0x630 [ 20.031089][ T279] ? __sys_sendmsg_sock+0x20/0x20 [ 20.031376][ T279] ? rcu_is_watching+0x12/0xb0 [ 20.031687][ T279] do_syscall_64+0xc1/0xfd0 [ 20.031979][ T279] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 20.032304][ T279] RIP: 0033:0x7f67b27801d7 [ 20.032621][ T279] 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 [ 20.033647][ T279] RSP: 002b:00007ffe0c68fe38 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 20.034085][ T279] RAX: ffffffffffffffda RBX: 00007ffe0c690560 RCX: 00007f67b27801d7 [ 20.034513][ T279] RDX: 0000000000000000 RSI: 00007ffe0c68fea0 RDI: 0000000000000005 [ 20.034949][ T279] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 20.035377][ T279] R10: 00007f67b267cf60 R11: 0000000000000246 R12: 0000000000000001 [ 20.035799][ T279] R13: 00000000690dead3 R14: 0000000000499600 R15: 0000000000000000 [ 20.036236][ T279] [ 20.036406][ T279] irq event stamp: 51769 [ 20.036600][ T279] hardirqs last enabled at (51769): [] finish_task_switch.isra.0+0x245/0x960 [ 20.037173][ T279] hardirqs last disabled at (51768): [] __schedule+0x94a/0x1b10 [ 20.037663][ T279] softirqs last enabled at (51612): [] handle_softirqs+0x352/0x610 [ 20.038111][ T279] softirqs last disabled at (51605): [] irq_exit_rcu+0xab/0x100 [ 20.038590][ T279] ---[ end trace 0000000000000000 ]--- [ 20.062736][ T279] ip (279) used greatest stack depth: 24464 bytes left [ 21.480578][ T309] bond1: (slave dummy1): Enslaving as a backup interface with an up link [ 21.571501][ T257] bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond [ 21.625671][ T311] bond1: (slave dummy2): Enslaving as a backup interface with an up link [ 21.675329][ T257] bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond [ 21.740399][ T312] dummy1: entered promiscuous mode [ 21.740859][ T312] dummy2: entered promiscuous mode [ 22.230243][ T325] dummy1: left promiscuous mode [ 22.230636][ T325] dummy2: left promiscuous mode [ 22.363756][ T326] bond1 (unregistering): (slave dummy1): Removing an active aggregator [ 22.364313][ T326] bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond [ 22.365278][ T326] bond1 (unregistering): (slave dummy1): Releasing backup interface [ 22.374312][ T326] bond1 (unregistering): (slave dummy2): Removing an active aggregator [ 22.375382][ T326] bond1 (unregistering): (slave dummy2): Releasing backup interface [ 22.394577][ T326] bond1 (unregistering): Released all slaves [ 23.816025][ T354] bond1: (slave dummy1): Enslaving as a backup interface with an up link [ 23.923399][ T257] bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond [ 24.027907][ T12] bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond [ 24.509049][ T368] bond1: (slave dummy1): Removing an active aggregator [ 24.509606][ T368] bond1: (slave dummy1): Releasing backup interface [ 24.885788][ T372] bond1 (unregistering): Released all slaves [ 25.588654][ T390] bond1: (slave dummy1): Enslaving as a backup interface with an up link [ 25.691040][ T12] bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond [ 25.795130][ T12] bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond [ 26.194235][ T402] bond1: (slave dummy1): Removing an active aggregator [ 26.194670][ T402] bond1: (slave dummy1): Releasing backup interface [ 26.539737][ T406] bond1 (unregistering): Released all slaves