[ 14.350958][ T265] test-bond1: (slave test-bond0): Enslaving as an active interface with an up link [ 14.457122][ T267] test-bond0: (slave test-noneth0): The slave device specified does not support setting the MAC address [ 14.458084][ T267] test-bond0: (slave test-noneth0): Error -95 calling set_mac_address [ 14.708888][ T269] test-bond0: (slave test-bond2): Enslaving as an active interface with an up link [ 15.060004][ T274] test-bond1: (slave test-bond0): Releasing backup interface [ 15.072360][ T274] test-bond0 (unregistering): (slave test-bond2): Releasing backup interface [ 15.082364][ T274] test-bond0 (unregistering): Released all slaves [ 15.114665][ T274] ================================================================== [ 15.114948][ T274] BUG: KASAN: slab-use-after-free in kobject_put+0xbb/0xd0 [ 15.115214][ T274] Read of size 1 at addr ffff888008e2a69c by task ip/274 [ 15.115444][ T274] [ 15.115542][ T274] CPU: 2 UID: 0 PID: 274 Comm: ip Not tainted 6.18.0-rc4-virtme #1 PREEMPT(full) [ 15.115550][ T274] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.115554][ T274] Call Trace: [ 15.115557][ T274] [ 15.115558][ T274] dump_stack_lvl+0x82/0xc0 [ 15.115565][ T274] print_address_description.constprop.0+0x2c/0x3a0 [ 15.115581][ T274] ? kobject_put+0xbb/0xd0 [ 15.115584][ T274] print_report+0xb4/0x270 [ 15.115587][ T274] ? kobject_put+0xbb/0xd0 [ 15.115589][ T274] ? kasan_addr_to_slab+0x21/0x70 [ 15.115592][ T274] ? kobject_put+0xbb/0xd0 [ 15.115594][ T274] kasan_report+0xca/0x100 [ 15.115598][ T274] ? kobject_put+0xbb/0xd0 [ 15.115604][ T274] kobject_put+0xbb/0xd0 [ 15.115608][ T274] netdev_run_todo+0x5f0/0xc60 [ 15.115620][ T274] ? dev_ingress_queue_create+0x190/0x190 [ 15.115623][ T274] ? generic_xdp_install+0x410/0x410 [ 15.115626][ T274] ? unregister_netdevice_many+0x20/0x20 [ 15.115629][ T274] ? __lock_acquire+0x449/0x7e0 [ 15.115641][ T274] rtnl_dellink+0x350/0xa30 [ 15.115650][ T274] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 15.115669][ T274] ? find_held_lock+0x2b/0x80 [ 15.115674][ T274] ? __lock_acquire+0x449/0x7e0 [ 15.115679][ T274] ? find_held_lock+0x2b/0x80 [ 15.115683][ T274] ? rtnetlink_rcv_msg+0x6e6/0xc00 [ 15.115685][ T274] ? __lock_release+0x5d/0x170 [ 15.115690][ T274] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 15.115693][ T274] rtnetlink_rcv_msg+0x709/0xc00 [ 15.115697][ T274] ? rtnl_port_fill+0x850/0x850 [ 15.115700][ T274] ? __lock_acquire+0x449/0x7e0 [ 15.115707][ T274] netlink_rcv_skb+0x121/0x340 [ 15.115713][ T274] ? rtnl_port_fill+0x850/0x850 [ 15.115716][ T274] ? netlink_ack+0xdd0/0xdd0 [ 15.115722][ T274] ? netlink_deliver_tap+0x13e/0x340 [ 15.115729][ T274] ? netlink_deliver_tap+0xc3/0x340 [ 15.115734][ T274] netlink_unicast+0x4aa/0x780 [ 15.115739][ T274] ? netlink_attachskb+0x810/0x810 [ 15.115742][ T274] ? __lock_acquire+0x449/0x7e0 [ 15.115748][ T274] netlink_sendmsg+0x714/0xbd0 [ 15.115752][ T274] ? netlink_unicast+0x780/0x780 [ 15.115755][ T274] ? __import_iovec+0x230/0x3b0 [ 15.115769][ T274] ? netlink_unicast+0x780/0x780 [ 15.115772][ T274] ____sys_sendmsg+0x3dd/0x890 [ 15.115780][ T274] ? get_timestamp.constprop.0+0x380/0x380 [ 15.115784][ T274] ? __copy_msghdr+0x3c0/0x3c0 [ 15.115790][ T274] ___sys_sendmsg+0xed/0x170 [ 15.115792][ T274] ? kasan_record_aux_stack+0x8c/0xa0 [ 15.115795][ T274] ? __call_rcu_common.constprop.0+0xa8/0x630 [ 15.115804][ T274] ? copy_msghdr_from_user+0x110/0x110 [ 15.115808][ T274] ? find_held_lock+0x2b/0x80 [ 15.115812][ T274] ? __lock_acquire+0x449/0x7e0 [ 15.115817][ T274] ? find_held_lock+0x2b/0x80 [ 15.115821][ T274] ? __virt_addr_valid+0x22a/0x450 [ 15.115831][ T274] ? __lock_release+0x5d/0x170 [ 15.115837][ T274] __sys_sendmsg+0x10b/0x1a0 [ 15.115840][ T274] ? __call_rcu_common.constprop.0+0x318/0x630 [ 15.115844][ T274] ? __sys_sendmsg_sock+0x20/0x20 [ 15.115850][ T274] ? rcu_is_watching+0x12/0xb0 [ 15.115854][ T274] do_syscall_64+0xc1/0xfd0 [ 15.115861][ T274] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.115869][ T274] RIP: 0033:0x7f91a54231d7 [ 15.115878][ T274] 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 [ 15.115880][ T274] RSP: 002b:00007ffc8b719e68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 15.115887][ T274] RAX: ffffffffffffffda RBX: 00007ffc8b71a590 RCX: 00007f91a54231d7 [ 15.115889][ T274] RDX: 0000000000000000 RSI: 00007ffc8b719ed0 RDI: 0000000000000005 [ 15.115891][ T274] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 15.115893][ T274] R10: 00007f91a531ff60 R11: 0000000000000246 R12: 0000000000000002 [ 15.115894][ T274] R13: 00000000690dff25 R14: 0000000000499600 R15: 0000000000000000 [ 15.115901][ T274] [ 15.115902][ T274] [ 15.127782][ T274] Allocated by task 246: [ 15.127915][ T274] kasan_save_stack+0x24/0x40 [ 15.128080][ T274] kasan_save_track+0x14/0x30 [ 15.128242][ T274] __kasan_kmalloc+0x7b/0x90 [ 15.128413][ T274] __kvmalloc_node_noprof+0x2e5/0x8e0 [ 15.128583][ T274] alloc_netdev_mqs+0x7d/0x1310 [ 15.128750][ T274] rtnl_create_link+0xa9e/0xe20 [ 15.128912][ T274] rtnl_newlink_create+0x203/0x8f0 [ 15.129076][ T274] __rtnl_newlink+0x231/0xa30 [ 15.129239][ T274] rtnl_newlink+0x693/0xa60 [ 15.129402][ T274] rtnetlink_rcv_msg+0x709/0xc00 [ 15.129566][ T274] netlink_rcv_skb+0x121/0x340 [ 15.129730][ T274] netlink_unicast+0x4aa/0x780 [ 15.129892][ T274] netlink_sendmsg+0x714/0xbd0 [ 15.130055][ T274] ____sys_sendmsg+0x3dd/0x890 [ 15.130218][ T274] ___sys_sendmsg+0xed/0x170 [ 15.130384][ T274] __sys_sendmsg+0x10b/0x1a0 [ 15.130546][ T274] do_syscall_64+0xc1/0xfd0 [ 15.130708][ T274] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.130911][ T274] [ 15.130996][ T274] Freed by task 274: [ 15.131119][ T274] kasan_save_stack+0x24/0x40 [ 15.131284][ T274] kasan_save_track+0x14/0x30 [ 15.131447][ T274] __kasan_save_free_info+0x3b/0x60 [ 15.131619][ T274] __kasan_slab_free+0x3f/0x60 [ 15.131808][ T274] kfree+0x21d/0x540 [ 15.131932][ T274] device_release+0x9c/0x210 [ 15.132109][ T274] kobject_cleanup+0xfe/0x360 [ 15.132272][ T274] netdev_run_todo+0x81f/0xc60 [ 15.132434][ T274] rtnl_dellink+0x350/0xa30 [ 15.132595][ T274] rtnetlink_rcv_msg+0x709/0xc00 [ 15.132757][ T274] netlink_rcv_skb+0x121/0x340 [ 15.132920][ T274] netlink_unicast+0x4aa/0x780 [ 15.133082][ T274] netlink_sendmsg+0x714/0xbd0 [ 15.133242][ T274] ____sys_sendmsg+0x3dd/0x890 [ 15.133403][ T274] ___sys_sendmsg+0xed/0x170 [ 15.133563][ T274] __sys_sendmsg+0x10b/0x1a0 [ 15.133725][ T274] do_syscall_64+0xc1/0xfd0 [ 15.133887][ T274] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.134092][ T274] [ 15.134178][ T274] The buggy address belongs to the object at ffff888008e2a000 [ 15.134178][ T274] which belongs to the cache kmalloc-8k of size 8192 [ 15.134570][ T274] The buggy address is located 1692 bytes inside of [ 15.134570][ T274] freed 8192-byte region [ffff888008e2a000, ffff888008e2c000) [ 15.134959][ T274] [ 15.135052][ T274] The buggy address belongs to the physical page: [ 15.135258][ T274] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8e28 [ 15.135552][ T274] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.135802][ T274] flags: 0x80000000000040(head|node=0|zone=1) [ 15.136017][ T274] page_type: f5(slab) [ 15.136150][ T274] raw: 0080000000000040 ffff8880010438c0 ffffea0000231610 ffffea0000315410 [ 15.136449][ T274] raw: 0000000000000000 0000000000010001 00000000f5000000 0000000000000000 [ 15.136737][ T274] head: 0080000000000040 ffff8880010438c0 ffffea0000231610 ffffea0000315410 [ 15.137032][ T274] head: 0000000000000000 0000000000010001 00000000f5000000 0000000000000000 [ 15.137319][ T274] head: 0080000000000003 ffffea0000238a01 00000000ffffffff 00000000ffffffff [ 15.137606][ T274] head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 15.137891][ T274] page dumped because: kasan: bad access detected [ 15.138096][ T274] [ 15.138176][ T274] Memory state around the buggy address: [ 15.138333][ T274] ffff888008e2a580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.138579][ T274] ffff888008e2a600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.138815][ T274] >ffff888008e2a680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.139053][ T274] ^ [ 15.139206][ T274] ffff888008e2a700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.139437][ T274] ffff888008e2a780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.139668][ T274] ================================================================== [ 15.140044][ T274] Disabling lock debugging due to kernel taint [ 15.140283][ T274] ------------[ cut here ]------------ [ 15.140438][ T274] refcount_t: underflow; use-after-free. [ 15.140660][ T274] WARNING: CPU: 0 PID: 274 at lib/refcount.c:28 refcount_warn_saturate+0x16f/0x1b0 [ 15.141010][ T274] Modules linked in: [ 15.141149][ T274] CPU: 0 UID: 0 PID: 274 Comm: ip Tainted: G B 6.18.0-rc4-virtme #1 PREEMPT(full) [ 15.141466][ T274] Tainted: [B]=BAD_PAGE [ 15.141592][ T274] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.141790][ T274] RIP: 0010:refcount_warn_saturate+0x16f/0x1b0 [ 15.142069][ T274] 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 85 99 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 [ 15.142630][ T274] RSP: 0018:ffffc90000d171f0 EFLAGS: 00010286 [ 15.142833][ T274] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 15.143077][ T274] RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000001 [ 15.143317][ T274] RBP: 0000000000000003 R08: 0000000000000000 R09: fffffbfff343e134 [ 15.143557][ T274] R10: 0000000000000003 R11: ffffc90000d16d80 R12: 0000000000000001 [ 15.143795][ T274] R13: dffffc0000000000 R14: dead000000000122 R15: dead000000000100 [ 15.144039][ T274] FS: 00007f91a5255800(0000) GS:ffff88809ab81000(0000) knlGS:0000000000000000 [ 15.144320][ T274] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 15.144524][ T274] CR2: 00007faa575705f0 CR3: 000000000be15004 CR4: 0000000000772ef0 [ 15.144761][ T274] PKRU: 55555554 [ 15.144889][ T274] Call Trace: [ 15.145011][ T274] [ 15.145098][ T274] netdev_run_todo+0x5f0/0xc60 [ 15.145258][ T274] ? dev_ingress_queue_create+0x190/0x190 [ 15.145420][ T274] ? generic_xdp_install+0x410/0x410 [ 15.145577][ T274] ? unregister_netdevice_many+0x20/0x20 [ 15.145732][ T274] ? __lock_acquire+0x449/0x7e0 [ 15.145908][ T274] rtnl_dellink+0x350/0xa30 [ 15.146069][ T274] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 15.146278][ T274] ? find_held_lock+0x2b/0x80 [ 15.146437][ T274] ? __lock_acquire+0x449/0x7e0 [ 15.146597][ T274] ? find_held_lock+0x2b/0x80 [ 15.146755][ T274] ? rtnetlink_rcv_msg+0x6e6/0xc00 [ 15.146920][ T274] ? __lock_release+0x5d/0x170 [ 15.147081][ T274] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 15.147274][ T274] rtnetlink_rcv_msg+0x709/0xc00 [ 15.147430][ T274] ? rtnl_port_fill+0x850/0x850 [ 15.147589][ T274] ? __lock_acquire+0x449/0x7e0 [ 15.147747][ T274] netlink_rcv_skb+0x121/0x340 [ 15.147914][ T274] ? rtnl_port_fill+0x850/0x850 [ 15.148074][ T274] ? netlink_ack+0xdd0/0xdd0 [ 15.148233][ T274] ? netlink_deliver_tap+0x13e/0x340 [ 15.148405][ T274] ? netlink_deliver_tap+0xc3/0x340 [ 15.148587][ T274] netlink_unicast+0x4aa/0x780 [ 15.148745][ T274] ? netlink_attachskb+0x810/0x810 [ 15.148907][ T274] ? __lock_acquire+0x449/0x7e0 [ 15.149070][ T274] netlink_sendmsg+0x714/0xbd0 [ 15.149228][ T274] ? netlink_unicast+0x780/0x780 [ 15.149384][ T274] ? __import_iovec+0x230/0x3b0 [ 15.149542][ T274] ? netlink_unicast+0x780/0x780 [ 15.149697][ T274] ____sys_sendmsg+0x3dd/0x890 [ 15.149860][ T274] ? get_timestamp.constprop.0+0x380/0x380 [ 15.150065][ T274] ? __copy_msghdr+0x3c0/0x3c0 [ 15.150224][ T274] ___sys_sendmsg+0xed/0x170 [ 15.150384][ T274] ? kasan_record_aux_stack+0x8c/0xa0 [ 15.150541][ T274] ? __call_rcu_common.constprop.0+0xa8/0x630 [ 15.150738][ T274] ? copy_msghdr_from_user+0x110/0x110 [ 15.150902][ T274] ? find_held_lock+0x2b/0x80 [ 15.151064][ T274] ? __lock_acquire+0x449/0x7e0 [ 15.151223][ T274] ? find_held_lock+0x2b/0x80 [ 15.151377][ T274] ? __virt_addr_valid+0x22a/0x450 [ 15.151537][ T274] ? __lock_release+0x5d/0x170 [ 15.151694][ T274] __sys_sendmsg+0x10b/0x1a0 [ 15.151850][ T274] ? __call_rcu_common.constprop.0+0x318/0x630 [ 15.152052][ T274] ? __sys_sendmsg_sock+0x20/0x20 [ 15.152213][ T274] ? rcu_is_watching+0x12/0xb0 [ 15.152368][ T274] do_syscall_64+0xc1/0xfd0 [ 15.152525][ T274] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.152718][ T274] RIP: 0033:0x7f91a54231d7 [ 15.152888][ T274] 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 [ 15.153446][ T274] RSP: 002b:00007ffc8b719e68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 15.153688][ T274] RAX: ffffffffffffffda RBX: 00007ffc8b71a590 RCX: 00007f91a54231d7 [ 15.153937][ T274] RDX: 0000000000000000 RSI: 00007ffc8b719ed0 RDI: 0000000000000005 [ 15.154175][ T274] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 15.154414][ T274] R10: 00007f91a531ff60 R11: 0000000000000246 R12: 0000000000000002 [ 15.154651][ T274] R13: 00000000690dff25 R14: 0000000000499600 R15: 0000000000000000 [ 15.154901][ T274] [ 15.155019][ T274] irq event stamp: 52887 [ 15.155142][ T274] hardirqs last enabled at (52887): [] finish_task_switch.isra.0+0x245/0x960 [ 15.155457][ T274] hardirqs last disabled at (52886): [] __schedule+0x94a/0x1b10 [ 15.155737][ T274] softirqs last enabled at (52696): [] handle_softirqs+0x352/0x610 [ 15.156025][ T274] softirqs last disabled at (52689): [] irq_exit_rcu+0xab/0x100 [ 15.156303][ T274] ---[ end trace 0000000000000000 ]--- [ 15.219542][ T275] test-bond1 (unregistering): Released all slaves [ 15.299763][ T276] test-bond2 (unregistering): Released all slaves [ 15.958136][ T298] test-bond1: (slave test-bond0): Enslaving as an active interface with an up link [ 16.020449][ T300] test-bond0: (slave test-noneth0): The slave device specified does not support setting the MAC address [ 16.020779][ T300] test-bond0: (slave test-noneth0): Setting fail_over_mac to active for active-backup mode [ 16.023378][ T300] test-bond0: (slave test-noneth0): making interface the new active one [ 16.024162][ T300] test-bond0: (slave test-noneth0): Enslaving as an active interface with an up link [ 16.114637][ T301] test-bond0: (slave test-noneth0): Releasing backup interface [ 16.186462][ T302] test-bond0: (slave test-bond2): making interface the new active one [ 16.187241][ T302] test-bond0: (slave test-bond2): Enslaving as an active interface with an up link [ 16.371089][ T307] test-bond1: (slave test-bond0): Releasing backup interface [ 16.380389][ T307] test-bond0 (unregistering): (slave test-bond2): Releasing backup interface [ 16.387322][ T307] test-bond0 (unregistering): Released all slaves [ 16.472997][ T308] test-bond1 (unregistering): Released all slaves [ 16.569031][ T309] test-bond2 (unregistering): Released all slaves