[ 12.141989][ T287] bond0: (slave veth0): Enslaving as a backup interface with a down link [ 12.218022][ T288] bond0: (slave veth1): Enslaving as a backup interface with a down link [ 12.303080][ T289] br0: port 1(veth0) entered blocking state [ 12.303538][ T289] br0: port 1(veth0) entered disabled state [ 12.303818][ T289] veth0: entered allmulticast mode [ 12.305443][ T289] veth0: entered promiscuous mode [ 12.392616][ T290] br0: port 2(veth1) entered blocking state [ 12.392954][ T290] br0: port 2(veth1) entered disabled state [ 12.393187][ T290] veth1: entered allmulticast mode [ 12.394818][ T290] veth1: entered promiscuous mode [ 13.118117][ T70] br0: port 1(veth0) entered blocking state [ 13.118994][ T70] br0: port 1(veth0) entered forwarding state [ 13.120609][ T70] br0: port 2(veth1) entered blocking state [ 13.120968][ T70] br0: port 2(veth1) entered forwarding state [ 15.165129][ T68] bond0: (slave veth0): link status definitely up [ 15.165769][ T68] bond0: (slave veth1): link status definitely up [ 15.165960][ T68] bond0: (slave veth0): making interface the new active one [ 15.167033][ T68] bond0: active interface up! [ 15.405820][ T68] veth1: left allmulticast mode [ 15.406204][ T68] veth1: left promiscuous mode [ 15.406622][ T68] br0: port 2(veth1) entered disabled state [ 15.408601][ T68] veth0: left allmulticast mode [ 15.408814][ T68] veth0: left promiscuous mode [ 15.409118][ T68] br0: port 1(veth0) entered disabled state [ 15.554003][ T68] bond0: (slave veth1): Releasing backup interface [ 15.735919][ T68] bond0: (slave veth0): Releasing backup interface [ 15.909377][ T68] bond0 (unregistering): Released all slaves [ 15.964522][ T68] ================================================================== [ 15.964995][ T68] BUG: KASAN: slab-use-after-free in cleanup_net+0x932/0xa40 [ 15.965373][ T68] Read of size 8 at addr ffff88800a0e00f8 by task kworker/u16:1/68 [ 15.965736][ T68] [ 15.965855][ T68] CPU: 1 UID: 0 PID: 68 Comm: kworker/u16:1 Not tainted 6.12.0-virtme #1 [ 15.966203][ T68] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.966506][ T68] Workqueue: netns cleanup_net [ 15.966739][ T68] Call Trace: [ 15.966913][ T68] [ 15.967031][ T68] dump_stack_lvl+0x82/0xd0 [ 15.967264][ T68] print_address_description.constprop.0+0x2c/0x3b0 [ 15.967568][ T68] ? cleanup_net+0x932/0xa40 [ 15.967802][ T68] print_report+0xb4/0x270 [ 15.968034][ T68] ? kasan_addr_to_slab+0x25/0x80 [ 15.968268][ T68] kasan_report+0xbd/0xf0 [ 15.968452][ T68] ? cleanup_net+0x932/0xa40 [ 15.968686][ T68] cleanup_net+0x932/0xa40 [ 15.968917][ T68] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 15.969149][ T68] ? __pfx_cleanup_net+0x10/0x10 [ 15.969380][ T68] ? trace_lock_acquire+0x148/0x1f0 [ 15.969622][ T68] ? lock_acquire+0x32/0xc0 [ 15.969854][ T68] ? process_one_work+0xe0b/0x16d0 [ 15.970089][ T68] process_one_work+0xe55/0x16d0 [ 15.970322][ T68] ? __pfx___lock_release+0x10/0x10 [ 15.970561][ T68] ? __pfx_process_one_work+0x10/0x10 [ 15.970797][ T68] ? assign_work+0x16c/0x240 [ 15.971030][ T68] worker_thread+0x58c/0xce0 [ 15.971261][ T68] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 15.971564][ T68] ? __pfx_worker_thread+0x10/0x10 [ 15.971797][ T68] ? __pfx_worker_thread+0x10/0x10 [ 15.972029][ T68] kthread+0x28a/0x350 [ 15.972203][ T68] ? __pfx_kthread+0x10/0x10 [ 15.972448][ T68] ret_from_fork+0x31/0x70 [ 15.972681][ T68] ? __pfx_kthread+0x10/0x10 [ 15.972913][ T68] ret_from_fork_asm+0x1a/0x30 [ 15.973149][ T68] [ 15.973319][ T68] [ 15.973445][ T68] Allocated by task 244: [ 15.973620][ T68] kasan_save_stack+0x24/0x50 [ 15.973851][ T68] kasan_save_track+0x14/0x30 [ 15.974092][ T68] __kasan_slab_alloc+0x59/0x70 [ 15.974325][ T68] kmem_cache_alloc_noprof+0x10b/0x350 [ 15.974568][ T68] copy_net_ns+0xc6/0x340 [ 15.974743][ T68] create_new_namespaces+0x35f/0x920 [ 15.974989][ T68] unshare_nsproxy_namespaces+0x8d/0x130 [ 15.975224][ T68] ksys_unshare+0x2a9/0x660 [ 15.975469][ T68] __x64_sys_unshare+0x31/0x40 [ 15.975703][ T68] do_syscall_64+0xc1/0x1d0 [ 15.975937][ T68] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 15.976230][ T68] [ 15.976346][ T68] Freed by task 68: [ 15.976530][ T68] kasan_save_stack+0x24/0x50 [ 15.976766][ T68] kasan_save_track+0x14/0x30 [ 15.977000][ T68] kasan_save_free_info+0x3b/0x60 [ 15.977236][ T68] __kasan_slab_free+0x38/0x50 [ 15.977477][ T68] kmem_cache_free+0xf8/0x330 [ 15.977711][ T68] cleanup_net+0x5a8/0xa40 [ 15.977944][ T68] process_one_work+0xe55/0x16d0 [ 15.978178][ T68] worker_thread+0x58c/0xce0 [ 15.978415][ T68] kthread+0x28a/0x350 [ 15.978598][ T68] ret_from_fork+0x31/0x70 [ 15.978832][ T68] ret_from_fork_asm+0x1a/0x30 [ 15.979067][ T68] [ 15.979183][ T68] The buggy address belongs to the object at ffff88800a0e0040 [ 15.979183][ T68] which belongs to the cache net_namespace of size 5696 [ 15.979839][ T68] The buggy address is located 184 bytes inside of [ 15.979839][ T68] freed 5696-byte region [ffff88800a0e0040, ffff88800a0e1680) [ 15.980434][ T68] [ 15.980550][ T68] The buggy address belongs to the physical page: [ 15.980842][ T68] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88800a0e2fc0 pfn:0xa0e0 [ 15.981310][ T68] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.981672][ T68] flags: 0x80000000000240(workingset|head|node=0|zone=1) [ 15.981965][ T68] page_type: f5(slab) [ 15.982141][ T68] raw: 0080000000000240 ffff888001965240 ffff88800196a088 ffff88800196a088 [ 15.982561][ T68] raw: ffff88800a0e2fc0 0000000000050002 00000001f5000000 0000000000000000 [ 15.982971][ T68] head: 0080000000000240 ffff888001965240 ffff88800196a088 ffff88800196a088 [ 15.983378][ T68] head: ffff88800a0e2fc0 0000000000050002 00000001f5000000 0000000000000000 [ 15.983799][ T68] head: 0080000000000003 ffffea0000283801 ffffffffffffffff 0000000000000000 [ 15.984216][ T68] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 15.984636][ T68] page dumped because: kasan: bad access detected [ 15.984928][ T68] [ 15.985045][ T68] Memory state around the buggy address: [ 15.985280][ T68] ffff88800a0dff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.985641][ T68] ffff88800a0e0000: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb [ 15.985993][ T68] >ffff88800a0e0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.986373][ T68] ^ [ 15.986735][ T68] ffff88800a0e0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.987085][ T68] ffff88800a0e0180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.987445][ T68] ================================================================== [ 15.987815][ T68] Disabling lock debugging due to kernel taint