[ 79.577012][ T1304] eth3: renamed from tmp [ 80.565374][ T1311] eth2: renamed from tmp [ 81.956490][ T1321] eth0: renamed from tmp [ 82.353214][ T1324] br0: port 1(eth0) entered blocking state [ 82.353658][ T1324] br0: port 1(eth0) entered disabled state [ 82.353898][ T1324] eth0: entered allmulticast mode [ 82.356147][ T1324] eth0: entered promiscuous mode [ 82.357677][ T1324] br0: port 1(eth0) entered blocking state [ 82.357971][ T1324] br0: port 1(eth0) entered forwarding state [ 82.942148][ T1328] eth1: renamed from tmp [ 83.346724][ T1331] br0: port 2(eth1) entered blocking state [ 83.347035][ T1331] br0: port 2(eth1) entered disabled state [ 83.347303][ T1331] eth1: entered allmulticast mode [ 83.348463][ T1331] eth1: entered promiscuous mode [ 83.349415][ T1331] br0: port 2(eth1) entered blocking state [ 83.349631][ T1331] br0: port 2(eth1) entered forwarding state [ 87.948861][ T67] br0: port 1(eth0) entered disabled state [ 88.020809][ T67] eth0 (unregistering): left allmulticast mode [ 88.021147][ T67] eth0 (unregistering): left promiscuous mode [ 88.021433][ T67] br0: port 1(eth0) entered disabled state [ 88.022333][ T67] [ 88.022423][ T67] ============================================ [ 88.022599][ T67] WARNING: possible recursive locking detected [ 88.022774][ T67] 6.13.0-rc5-virtme #1 Not tainted [ 88.022914][ T67] -------------------------------------------- [ 88.023090][ T67] kworker/u16:1/67 is trying to acquire lock: [ 88.023263][ T67] ffffffff90bf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 88.023558][ T67] [ 88.023558][ T67] but task is already holding lock: [ 88.023761][ T67] ffffffff90bf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 88.024035][ T67] [ 88.024035][ T67] other info that might help us debug this: [ 88.024239][ T67] Possible unsafe locking scenario: [ 88.024239][ T67] [ 88.024438][ T67] CPU0 [ 88.024540][ T67] ---- [ 88.024644][ T67] lock((netdev_chain).rwsem); [ 88.024783][ T67] lock((netdev_chain).rwsem); [ 88.024922][ T67] [ 88.024922][ T67] *** DEADLOCK *** [ 88.024922][ T67] [ 88.025132][ T67] May be due to missing lock nesting notation [ 88.025132][ T67] [ 88.025341][ T67] 5 locks held by kworker/u16:1/67: [ 88.025493][ T67] #0: ffff8880010b5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7ec/0x16d0 [ 88.025782][ T67] #1: ffffc90000487da0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xe0b/0x16d0 [ 88.026031][ T67] #2: ffffffff90bec4d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbc/0xba0 [ 88.026284][ T67] #3: ffffffff90c07e88 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x81/0x2e0 [ 88.026564][ T67] #4: ffffffff90bf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 88.026852][ T67] [ 88.026852][ T67] stack backtrace: [ 88.027028][ T67] CPU: 3 UID: 0 PID: 67 Comm: kworker/u16:1 Not tainted 6.13.0-rc5-virtme #1 [ 88.027272][ T67] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 88.027447][ T67] Workqueue: netns cleanup_net [ 88.027590][ T67] Call Trace: [ 88.027697][ T67] [ 88.027771][ T67] dump_stack_lvl+0x82/0xd0 [ 88.027919][ T67] print_deadlock_bug+0x40a/0x650 [ 88.028063][ T67] validate_chain+0x5bf/0xae0 [ 88.028205][ T67] ? __pfx_validate_chain+0x10/0x10 [ 88.028347][ T67] ? hlock_class+0x4e/0x130 [ 88.028489][ T67] ? mark_lock+0x38/0x3e0 [ 88.028601][ T67] __lock_acquire+0xb9a/0x1680 [ 88.028746][ T67] lock_acquire.part.0+0xeb/0x330 [ 88.028882][ T67] ? blocking_notifier_call_chain+0x50/0x90 [ 88.029062][ T67] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 88.029204][ T67] ? trace_lock_acquire+0x14c/0x1f0 [ 88.029345][ T67] ? lock_acquire+0x32/0xc0 [ 88.029483][ T67] ? blocking_notifier_call_chain+0x50/0x90 [ 88.029657][ T67] down_read+0x9f/0x340 [ 88.029768][ T67] ? blocking_notifier_call_chain+0x50/0x90 [ 88.029942][ T67] ? __pfx_down_read+0x10/0x10 [ 88.030085][ T67] ? __pfx___lock_release+0x10/0x10 [ 88.030236][ T67] blocking_notifier_call_chain+0x50/0x90 [ 88.030378][ T67] __netdev_upper_dev_unlink+0xd9/0x220 [ 88.030520][ T67] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 88.030693][ T67] ? find_held_lock+0x2c/0x110 [ 88.030834][ T67] ? del_nbp+0x377/0xbe0 [ 88.030942][ T67] ? hlock_class+0x4e/0x130 [ 88.031081][ T67] netdev_upper_dev_unlink+0x71/0xa0 [ 88.031221][ T67] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 88.031395][ T67] ? mutex_is_locked+0x12/0x60 [ 88.031533][ T67] ? rtnl_is_locked+0x15/0x20 [ 88.031674][ T67] del_nbp+0x602/0xbe0 [ 88.031779][ T67] br_del_if+0xa3/0x1f0 [ 88.031893][ T67] br_device_event+0x53d/0x800 [ 88.032035][ T67] ? __pfx_br_device_event+0x10/0x10 [ 88.032180][ T67] ? packet_notifier+0x3b0/0x810 [ 88.032319][ T67] notifier_call_chain+0xcd/0x150 [ 88.032459][ T67] blocking_notifier_call_chain+0x66/0x90 [ 88.032601][ T67] unregister_netdevice_many_notify+0xa83/0x1580 [ 88.032773][ T67] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 88.032943][ T67] ? default_device_exit_batch+0x81/0x2e0 [ 88.033088][ T67] ? rtnl_is_locked+0x15/0x20 [ 88.033226][ T67] ? unregister_netdevice_queue+0x70/0x410 [ 88.033394][ T67] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 88.033565][ T67] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 88.033739][ T67] default_device_exit_batch+0x241/0x2e0 [ 88.033877][ T67] ? __pfx_default_device_exit_batch+0x10/0x10 [ 88.034049][ T67] ? ops_exit_list+0xb4/0x170 [ 88.034194][ T67] cleanup_net+0x4ef/0xba0 [ 88.034332][ T67] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 88.034470][ T67] ? __pfx_cleanup_net+0x10/0x10 [ 88.034610][ T67] ? trace_lock_acquire+0x14c/0x1f0 [ 88.034748][ T67] ? lock_acquire+0x32/0xc0 [ 88.034886][ T67] ? process_one_work+0xe0b/0x16d0 [ 88.035026][ T67] process_one_work+0xe55/0x16d0 [ 88.035166][ T67] ? __pfx___lock_release+0x10/0x10 [ 88.035306][ T67] ? __pfx_process_one_work+0x10/0x10 [ 88.035450][ T67] ? assign_work+0x16c/0x240 [ 88.035589][ T67] worker_thread+0x58c/0xce0 [ 88.035725][ T67] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 88.035899][ T67] ? __pfx_worker_thread+0x10/0x10 [ 88.036037][ T67] ? __pfx_worker_thread+0x10/0x10 [ 88.036173][ T67] kthread+0x28a/0x350 [ 88.036279][ T67] ? __pfx_kthread+0x10/0x10 [ 88.036425][ T67] ret_from_fork+0x31/0x70 [ 88.036567][ T67] ? __pfx_kthread+0x10/0x10 [ 88.036704][ T67] ret_from_fork_asm+0x1a/0x30 [ 88.036849][ T67] [ 88.352693][ T67] eth1: left allmulticast mode [ 88.352854][ T67] eth1: left promiscuous mode [ 88.353258][ T67] br0: port 2(eth1) entered disabled state [ 91.774575][ T1407] eth1: renamed from tmp [ 92.650823][ T1416] eth2: renamed from tmp