[ 16.370236][ T262] ip (262) used greatest stack depth: 24688 bytes left [ 16.624404][ T263] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 17.519234][ T267] bond0: (slave bond_slave_1): Releasing backup interface [ 17.800125][ T268] ================================================================== [ 17.800514][ T268] BUG: KASAN: slab-use-after-free in kobject_put+0xbb/0xd0 [ 17.800801][ T268] Read of size 1 at addr ffff88800a5a96c4 by task ip/268 [ 17.801051][ T268] [ 17.801156][ T268] CPU: 2 UID: 0 PID: 268 Comm: ip Not tainted 6.18.0-rc4-virtme #1 PREEMPT(full) [ 17.801161][ T268] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.801165][ T268] Call Trace: [ 17.801167][ T268] [ 17.801169][ T268] dump_stack_lvl+0x82/0xc0 [ 17.801176][ T268] print_address_description.constprop.0+0x2c/0x3a0 [ 17.801184][ T268] ? kobject_put+0xbb/0xd0 [ 17.801188][ T268] print_report+0xb4/0x270 [ 17.801192][ T268] ? kobject_put+0xbb/0xd0 [ 17.801195][ T268] ? kasan_addr_to_slab+0x21/0x70 [ 17.801198][ T268] ? kobject_put+0xbb/0xd0 [ 17.801201][ T268] kasan_report+0xca/0x100 [ 17.801205][ T268] ? kobject_put+0xbb/0xd0 [ 17.801210][ T268] kobject_put+0xbb/0xd0 [ 17.801214][ T268] netdev_run_todo+0x5f0/0xc60 [ 17.801221][ T268] ? dev_ingress_queue_create+0x190/0x190 [ 17.801225][ T268] ? generic_xdp_install+0x410/0x410 [ 17.801229][ T268] ? unregister_netdevice_many+0x20/0x20 [ 17.801236][ T268] rtnl_dellink+0x350/0xa30 [ 17.801241][ T268] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 17.801260][ T268] ? find_held_lock+0x2b/0x80 [ 17.801269][ T268] ? __lock_acquire+0x449/0x7e0 [ 17.801275][ T268] ? find_held_lock+0x2b/0x80 [ 17.801279][ T268] ? rtnetlink_rcv_msg+0x6e6/0xc00 [ 17.801282][ T268] ? __lock_release+0x5d/0x170 [ 17.801285][ T268] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 17.801289][ T268] rtnetlink_rcv_msg+0x709/0xc00 [ 17.801294][ T268] ? rtnl_port_fill+0x890/0x890 [ 17.801297][ T268] ? __lock_acquire+0x449/0x7e0 [ 17.801303][ T268] netlink_rcv_skb+0x121/0x340 [ 17.801308][ T268] ? rtnl_port_fill+0x890/0x890 [ 17.801312][ T268] ? netlink_ack+0xdf0/0xdf0 [ 17.801318][ T268] ? netlink_deliver_tap+0x13e/0x340 [ 17.801321][ T268] ? netlink_deliver_tap+0xc3/0x340 [ 17.801325][ T268] netlink_unicast+0x4aa/0x780 [ 17.801329][ T268] ? netlink_attachskb+0x810/0x810 [ 17.801333][ T268] ? __lock_acquire+0x449/0x7e0 [ 17.801337][ T268] netlink_sendmsg+0x714/0xbd0 [ 17.801341][ T268] ? netlink_unicast+0x780/0x780 [ 17.801344][ T268] ? __import_iovec+0x230/0x3b0 [ 17.801350][ T268] ? netlink_unicast+0x780/0x780 [ 17.801353][ T268] ____sys_sendmsg+0x3dd/0x890 [ 17.801358][ T268] ? get_timestamp.constprop.0+0x370/0x370 [ 17.801360][ T268] ? __copy_msghdr+0x3c0/0x3c0 [ 17.801368][ T268] ___sys_sendmsg+0xed/0x170 [ 17.801371][ T268] ? kasan_record_aux_stack+0x8c/0xa0 [ 17.801375][ T268] ? __call_rcu_common.constprop.0+0xa8/0x630 [ 17.801380][ T268] ? copy_msghdr_from_user+0x110/0x110 [ 17.801385][ T268] ? find_held_lock+0x2b/0x80 [ 17.801390][ T268] ? __lock_acquire+0x449/0x7e0 [ 17.801394][ T268] ? find_held_lock+0x2b/0x80 [ 17.801398][ T268] ? __virt_addr_valid+0x22a/0x450 [ 17.801403][ T268] ? __lock_release+0x5d/0x170 [ 17.801408][ T268] __sys_sendmsg+0x10b/0x1a0 [ 17.801411][ T268] ? __call_rcu_common.constprop.0+0x318/0x630 [ 17.801413][ T268] ? __sys_sendmsg_sock+0x20/0x20 [ 17.801421][ T268] ? rcu_is_watching+0x12/0xb0 [ 17.801426][ T268] do_syscall_64+0xc1/0xfd0 [ 17.801431][ T268] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.801435][ T268] RIP: 0033:0x7ff9f034d1d7 [ 17.801441][ T268] 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 [ 17.801444][ T268] RSP: 002b:00007ffc660bbce8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 17.801448][ T268] RAX: ffffffffffffffda RBX: 00007ffc660bc410 RCX: 00007ff9f034d1d7 [ 17.801450][ T268] RDX: 0000000000000000 RSI: 00007ffc660bbd50 RDI: 0000000000000005 [ 17.801452][ T268] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 17.801454][ T268] R10: 00007ff9f0249f60 R11: 0000000000000246 R12: 0000000000000001 [ 17.801455][ T268] R13: 00000000690df702 R14: 0000000000499600 R15: 0000000000000000 [ 17.801462][ T268] [ 17.801463][ T268] [ 17.815851][ T268] Allocated by task 265: [ 17.815995][ T268] kasan_save_stack+0x24/0x40 [ 17.816210][ T268] kasan_save_track+0x14/0x30 [ 17.816488][ T268] __kasan_kmalloc+0x7b/0x90 [ 17.816673][ T268] __kvmalloc_node_noprof+0x2e5/0x8e0 [ 17.816860][ T268] alloc_netdev_mqs+0x7d/0x1370 [ 17.817059][ T268] rtnl_create_link+0xa9e/0xe20 [ 17.817336][ T268] rtnl_newlink_create+0x203/0x8f0 [ 17.817518][ T268] __rtnl_newlink+0x231/0xa30 [ 17.817698][ T268] rtnl_newlink+0x693/0xa60 [ 17.817885][ T268] rtnetlink_rcv_msg+0x709/0xc00 [ 17.818180][ T268] netlink_rcv_skb+0x121/0x340 [ 17.818369][ T268] netlink_unicast+0x4aa/0x780 [ 17.818545][ T268] netlink_sendmsg+0x714/0xbd0 [ 17.818722][ T268] ____sys_sendmsg+0x3dd/0x890 [ 17.819010][ T268] ___sys_sendmsg+0xed/0x170 [ 17.819192][ T268] __sys_sendmsg+0x10b/0x1a0 [ 17.819370][ T268] do_syscall_64+0xc1/0xfd0 [ 17.819546][ T268] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.819869][ T268] [ 17.819966][ T268] Freed by task 268: [ 17.820115][ T268] kasan_save_stack+0x24/0x40 [ 17.820314][ T268] kasan_save_track+0x14/0x30 [ 17.820596][ T268] __kasan_save_free_info+0x3b/0x60 [ 17.820778][ T268] __kasan_slab_free+0x3f/0x60 [ 17.820959][ T268] kfree+0x21d/0x540 [ 17.821104][ T268] device_release+0x9c/0x210 [ 17.821381][ T268] kobject_cleanup+0xfe/0x360 [ 17.821573][ T268] netdev_run_todo+0x81f/0xc60 [ 17.821753][ T268] rtnl_dellink+0x350/0xa30 [ 17.821938][ T268] rtnetlink_rcv_msg+0x709/0xc00 [ 17.822219][ T268] netlink_rcv_skb+0x121/0x340 [ 17.822397][ T268] netlink_unicast+0x4aa/0x780 [ 17.822572][ T268] netlink_sendmsg+0x714/0xbd0 [ 17.822747][ T268] ____sys_sendmsg+0x3dd/0x890 [ 17.823038][ T268] ___sys_sendmsg+0xed/0x170 [ 17.823223][ T268] __sys_sendmsg+0x10b/0x1a0 [ 17.823397][ T268] do_syscall_64+0xc1/0xfd0 [ 17.823574][ T268] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.823898][ T268] [ 17.823989][ T268] The buggy address belongs to the object at ffff88800a5a9000 [ 17.823989][ T268] which belongs to the cache kmalloc-4k of size 4096 [ 17.824432][ T268] The buggy address is located 1732 bytes inside of [ 17.824432][ T268] freed 4096-byte region [ffff88800a5a9000, ffff88800a5aa000) [ 17.824969][ T268] [ 17.825069][ T268] The buggy address belongs to the physical page: [ 17.825294][ T268] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xa5a8 [ 17.825713][ T268] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.826004][ T268] flags: 0x80000000000040(head|node=0|zone=1) [ 17.826339][ T268] page_type: f5(slab) [ 17.826477][ T268] raw: 0080000000000040 ffff888001043700 ffffea0000158410 ffffea0000313c10 [ 17.826801][ T268] raw: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 [ 17.827238][ T268] head: 0080000000000040 ffff888001043700 ffffea0000158410 ffffea0000313c10 [ 17.827562][ T268] head: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 [ 17.827880][ T268] head: 0080000000000003 ffffea0000296a01 00000000ffffffff 00000000ffffffff [ 17.828306][ T268] head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 17.828614][ T268] page dumped because: kasan: bad access detected [ 17.828944][ T268] [ 17.829046][ T268] Memory state around the buggy address: [ 17.829231][ T268] ffff88800a5a9580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.829493][ T268] ffff88800a5a9600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.829845][ T268] >ffff88800a5a9680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.830118][ T268] ^ [ 17.830350][ T268] ffff88800a5a9700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.830697][ T268] ffff88800a5a9780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.830958][ T268] ================================================================== [ 17.831448][ T268] Disabling lock debugging due to kernel taint [ 17.831730][ T268] ------------[ cut here ]------------ [ 17.831910][ T268] refcount_t: underflow; use-after-free. [ 17.832151][ T268] WARNING: CPU: 0 PID: 268 at lib/refcount.c:28 refcount_warn_saturate+0x16f/0x1b0 [ 17.832592][ T268] Modules linked in: bonding [ 17.832911][ T268] CPU: 0 UID: 0 PID: 268 Comm: ip Tainted: G B 6.18.0-rc4-virtme #1 PREEMPT(full) [ 17.833385][ T268] Tainted: [B]=BAD_PAGE [ 17.833528][ T268] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.833761][ T268] RIP: 0010:refcount_warn_saturate+0x16f/0x1b0 [ 17.833995][ T268] Code: cc 38 03 80 fb 01 0f 87 29 33 d7 fe 83 e3 01 0f 85 51 ff ff ff c6 05 17 cc 38 03 01 90 48 c7 c7 40 ba 65 99 e8 62 d6 16 ff 90 <0f> 0b 90 90 e9 33 ff ff ff 48 89 df e8 c0 9d a0 ff e9 ba fe ff ff [ 17.834652][ T268] RSP: 0018:ffffc900005071f0 EFLAGS: 00010286 [ 17.834886][ T268] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 17.835150][ T268] RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000001 [ 17.835439][ T268] RBP: 0000000000000003 R08: 0000000000000000 R09: fffffbfff34c0934 [ 17.835724][ T268] R10: 0000000000000003 R11: ffffc90000506d80 R12: 0000000000000001 [ 17.836002][ T268] R13: dffffc0000000000 R14: dead000000000122 R15: dead000000000100 [ 17.836266][ T268] FS: 00007ff9f017f800(0000) GS:ffff8880d1508000(0000) knlGS:0000000000000000 [ 17.836592][ T268] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 17.836827][ T268] CR2: 000055b98d6addec CR3: 000000000f2db003 CR4: 0000000000772ef0 [ 17.837100][ T268] PKRU: 55555554 [ 17.837341][ T268] Call Trace: [ 17.837478][ T268] [ 17.837570][ T268] netdev_run_todo+0x5f0/0xc60 [ 17.837761][ T268] ? dev_ingress_queue_create+0x190/0x190 [ 17.837944][ T268] ? generic_xdp_install+0x410/0x410 [ 17.838211][ T268] ? unregister_netdevice_many+0x20/0x20 [ 17.838402][ T268] rtnl_dellink+0x350/0xa30 [ 17.838583][ T268] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 17.838933][ T268] ? find_held_lock+0x2b/0x80 [ 17.839113][ T268] ? __lock_acquire+0x449/0x7e0 [ 17.839299][ T268] ? find_held_lock+0x2b/0x80 [ 17.839484][ T268] ? rtnetlink_rcv_msg+0x6e6/0xc00 [ 17.839762][ T268] ? __lock_release+0x5d/0x170 [ 17.839938][ T268] ? valid_bridge_getlink_req.constprop.0+0x640/0x640 [ 17.840161][ T268] rtnetlink_rcv_msg+0x709/0xc00 [ 17.840401][ T268] ? rtnl_port_fill+0x890/0x890 [ 17.840690][ T268] ? __lock_acquire+0x449/0x7e0 [ 17.840852][ T268] netlink_rcv_skb+0x121/0x340 [ 17.841017][ T268] ? rtnl_port_fill+0x890/0x890 [ 17.841175][ T268] ? netlink_ack+0xdf0/0xdf0 [ 17.841436][ T268] ? netlink_deliver_tap+0x13e/0x340 [ 17.841593][ T268] ? netlink_deliver_tap+0xc3/0x340 [ 17.841762][ T268] netlink_unicast+0x4aa/0x780 [ 17.841921][ T268] ? netlink_attachskb+0x810/0x810 [ 17.842170][ T268] ? __lock_acquire+0x449/0x7e0 [ 17.842336][ T268] netlink_sendmsg+0x714/0xbd0 [ 17.842494][ T268] ? netlink_unicast+0x780/0x780 [ 17.842660][ T268] ? __import_iovec+0x230/0x3b0 [ 17.842822][ T268] ? netlink_unicast+0x780/0x780 [ 17.842983][ T268] ____sys_sendmsg+0x3dd/0x890 [ 17.843151][ T268] ? get_timestamp.constprop.0+0x370/0x370 [ 17.843374][ T268] ? __copy_msghdr+0x3c0/0x3c0 [ 17.843539][ T268] ___sys_sendmsg+0xed/0x170 [ 17.843708][ T268] ? kasan_record_aux_stack+0x8c/0xa0 [ 17.843873][ T268] ? __call_rcu_common.constprop.0+0xa8/0x630 [ 17.844071][ T268] ? copy_msghdr_from_user+0x110/0x110 [ 17.844231][ T268] ? find_held_lock+0x2b/0x80 [ 17.844414][ T268] ? __lock_acquire+0x449/0x7e0 [ 17.844575][ T268] ? find_held_lock+0x2b/0x80 [ 17.844744][ T268] ? __virt_addr_valid+0x22a/0x450 [ 17.844905][ T268] ? __lock_release+0x5d/0x170 [ 17.845073][ T268] __sys_sendmsg+0x10b/0x1a0 [ 17.845231][ T268] ? __call_rcu_common.constprop.0+0x318/0x630 [ 17.845437][ T268] ? __sys_sendmsg_sock+0x20/0x20 [ 17.845600][ T268] ? rcu_is_watching+0x12/0xb0 [ 17.845783][ T268] do_syscall_64+0xc1/0xfd0 [ 17.845945][ T268] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.846144][ T268] RIP: 0033:0x7ff9f034d1d7 [ 17.846327][ T268] 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 [ 17.846951][ T268] RSP: 002b:00007ffc660bbce8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 17.847190][ T268] RAX: ffffffffffffffda RBX: 00007ffc660bc410 RCX: 00007ff9f034d1d7 [ 17.847451][ T268] RDX: 0000000000000000 RSI: 00007ffc660bbd50 RDI: 0000000000000005 [ 17.847718][ T268] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 17.848004][ T268] R10: 00007ff9f0249f60 R11: 0000000000000246 R12: 0000000000000001 [ 17.848249][ T268] R13: 00000000690df702 R14: 0000000000499600 R15: 0000000000000000 [ 17.848501][ T268] [ 17.848634][ T268] irq event stamp: 85607 [ 17.848756][ T268] hardirqs last enabled at (85607): [] finish_task_switch.isra.0+0x245/0x960 [ 17.849075][ T268] hardirqs last disabled at (85606): [] __schedule+0x94a/0x1b10 [ 17.849367][ T268] softirqs last enabled at (84828): [] handle_softirqs+0x352/0x610 [ 17.849654][ T268] softirqs last disabled at (84819): [] irq_exit_rcu+0xab/0x100 [ 17.849926][ T268] ---[ end trace 0000000000000000 ]--- [ 17.866580][ T268] ip (268) used greatest stack depth: 24232 bytes left [ 17.950188][ T12] bond0 (unregistering): Released all slaves [ 19.067592][ T278] 8021q: adding VLAN 0 to HW filter on device bond0 [ 19.315902][ T12] bond0 (unregistering): Released all slaves [ 20.384444][ T289] 8021q: adding VLAN 0 to HW filter on device bond0 [ 20.611050][ T12] bond0 (unregistering): Released all slaves [ 21.767638][ T12] bond0 (unregistering): Released all slaves [ 22.052742][ T303] 8021q: adding VLAN 0 to HW filter on device bond0 [ 22.291998][ T306] bond0 (unregistering): Released all slaves