[ 14.627078][ T298] eth3: renamed from tmp [ 15.352260][ T303] ip (303) used greatest stack depth: 23632 bytes left [ 15.641998][ T307] eth2: renamed from tmp [ 16.521433][ T313] ip (313) used greatest stack depth: 23112 bytes left [ 17.102945][ T317] eth0: renamed from tmp [ 17.541842][ T320] br0: port 1(eth0) entered blocking state [ 17.542230][ T320] br0: port 1(eth0) entered disabled state [ 17.542603][ T320] eth0: entered allmulticast mode [ 17.543827][ T320] eth0: entered promiscuous mode [ 17.545510][ T320] br0: port 1(eth0) entered blocking state [ 17.545808][ T320] br0: port 1(eth0) entered forwarding state [ 18.144438][ T324] eth1: renamed from tmp [ 18.564541][ T327] br0: port 2(eth1) entered blocking state [ 18.564861][ T327] br0: port 2(eth1) entered disabled state [ 18.565090][ T327] eth1: entered allmulticast mode [ 18.566247][ T327] eth1: entered promiscuous mode [ 18.567314][ T327] br0: port 2(eth1) entered blocking state [ 18.567526][ T327] br0: port 2(eth1) entered forwarding state [ 23.179560][ T66] br0: port 1(eth0) entered disabled state [ 23.278764][ T66] eth0 (unregistering): left allmulticast mode [ 23.279144][ T66] eth0 (unregistering): left promiscuous mode [ 23.279360][ T66] br0: port 1(eth0) entered disabled state [ 23.280329][ T66] [ 23.280430][ T66] ============================================ [ 23.280627][ T66] WARNING: possible recursive locking detected [ 23.280823][ T66] 6.13.0-rc5-virtme #1 Not tainted [ 23.280985][ T66] -------------------------------------------- [ 23.281182][ T66] kworker/u16:1/66 is trying to acquire lock: [ 23.281376][ T66] ffffffff8cff6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 23.281708][ T66] [ 23.281708][ T66] but task is already holding lock: [ 23.281948][ T66] ffffffff8cff6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 23.282266][ T66] [ 23.282266][ T66] other info that might help us debug this: [ 23.282496][ T66] Possible unsafe locking scenario: [ 23.282496][ T66] [ 23.282728][ T66] CPU0 [ 23.282848][ T66] ---- [ 23.282966][ T66] lock((netdev_chain).rwsem); [ 23.283128][ T66] lock((netdev_chain).rwsem); [ 23.283288][ T66] [ 23.283288][ T66] *** DEADLOCK *** [ 23.283288][ T66] [ 23.283521][ T66] May be due to missing lock nesting notation [ 23.283521][ T66] [ 23.283751][ T66] 5 locks held by kworker/u16:1/66: [ 23.283909][ T66] #0: ffff8880010b5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7ec/0x16d0 [ 23.284236][ T66] #1: ffffc90000477da0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xe0b/0x16d0 [ 23.284514][ T66] #2: ffffffff8cfec4d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbc/0xba0 [ 23.284801][ T66] #3: ffffffff8d007e88 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x81/0x2e0 [ 23.285121][ T66] #4: ffffffff8cff6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 23.285446][ T66] [ 23.285446][ T66] stack backtrace: [ 23.285643][ T66] CPU: 1 UID: 0 PID: 66 Comm: kworker/u16:1 Not tainted 6.13.0-rc5-virtme #1 [ 23.285923][ T66] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 23.286133][ T66] Workqueue: netns cleanup_net [ 23.286301][ T66] Call Trace: [ 23.286423][ T66] [ 23.286509][ T66] dump_stack_lvl+0x82/0xd0 [ 23.286674][ T66] print_deadlock_bug+0x40a/0x650 [ 23.286837][ T66] validate_chain+0x5bf/0xae0 [ 23.287001][ T66] ? __pfx_validate_chain+0x10/0x10 [ 23.287164][ T66] ? hlock_class+0x4e/0x130 [ 23.287322][ T66] ? mark_lock+0x38/0x3e0 [ 23.287441][ T66] __lock_acquire+0xb9a/0x1680 [ 23.287601][ T66] lock_acquire.part.0+0xeb/0x330 [ 23.287759][ T66] ? blocking_notifier_call_chain+0x50/0x90 [ 23.287956][ T66] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 23.288115][ T66] ? trace_lock_acquire+0x14c/0x1f0 [ 23.288272][ T66] ? lock_acquire+0x32/0xc0 [ 23.288432][ T66] ? blocking_notifier_call_chain+0x50/0x90 [ 23.288633][ T66] down_read+0x9f/0x340 [ 23.288755][ T66] ? blocking_notifier_call_chain+0x50/0x90 [ 23.288948][ T66] ? __pfx_down_read+0x10/0x10 [ 23.289109][ T66] ? __pfx___lock_release+0x10/0x10 [ 23.289276][ T66] blocking_notifier_call_chain+0x50/0x90 [ 23.289439][ T66] __netdev_upper_dev_unlink+0xd9/0x220 [ 23.289598][ T66] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 23.289797][ T66] ? find_held_lock+0x2c/0x110 [ 23.289954][ T66] ? del_nbp+0x377/0xbe0 [ 23.290077][ T66] ? hlock_class+0x4e/0x130 [ 23.290236][ T66] netdev_upper_dev_unlink+0x71/0xa0 [ 23.290401][ T66] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 23.290603][ T66] ? mutex_is_locked+0x12/0x60 [ 23.290764][ T66] ? rtnl_is_locked+0x15/0x20 [ 23.290924][ T66] del_nbp+0x602/0xbe0 [ 23.291046][ T66] br_del_if+0xa3/0x1f0 [ 23.291168][ T66] br_device_event+0x53d/0x800 [ 23.291326][ T66] ? __pfx_br_device_event+0x10/0x10 [ 23.291484][ T66] ? packet_notifier+0x3b0/0x810 [ 23.291649][ T66] notifier_call_chain+0xcd/0x150 [ 23.291811][ T66] blocking_notifier_call_chain+0x66/0x90 [ 23.291973][ T66] unregister_netdevice_many_notify+0xa83/0x1580 [ 23.292175][ T66] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 23.292374][ T66] ? default_device_exit_batch+0x81/0x2e0 [ 23.292532][ T66] ? rtnl_is_locked+0x15/0x20 [ 23.292690][ T66] ? unregister_netdevice_queue+0x70/0x410 [ 23.292892][ T66] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 23.293087][ T66] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 23.293288][ T66] default_device_exit_batch+0x241/0x2e0 [ 23.293445][ T66] ? __pfx_default_device_exit_batch+0x10/0x10 [ 23.293646][ T66] ? ops_exit_list+0xb4/0x170 [ 23.293805][ T66] cleanup_net+0x4ef/0xba0 [ 23.293970][ T66] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 23.294128][ T66] ? __pfx_cleanup_net+0x10/0x10 [ 23.294285][ T66] ? trace_lock_acquire+0x14c/0x1f0 [ 23.294444][ T66] ? lock_acquire+0x32/0xc0 [ 23.294602][ T66] ? process_one_work+0xe0b/0x16d0 [ 23.294762][ T66] process_one_work+0xe55/0x16d0 [ 23.294924][ T66] ? __pfx___lock_release+0x10/0x10 [ 23.295088][ T66] ? __pfx_process_one_work+0x10/0x10 [ 23.295249][ T66] ? assign_work+0x16c/0x240 [ 23.295413][ T66] worker_thread+0x58c/0xce0 [ 23.295572][ T66] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 23.295772][ T66] ? __pfx_worker_thread+0x10/0x10 [ 23.295930][ T66] ? __pfx_worker_thread+0x10/0x10 [ 23.296097][ T66] kthread+0x28a/0x350 [ 23.296224][ T66] ? __pfx_kthread+0x10/0x10 [ 23.296380][ T66] ret_from_fork+0x31/0x70 [ 23.296541][ T66] ? __pfx_kthread+0x10/0x10 [ 23.296700][ T66] ret_from_fork_asm+0x1a/0x30 [ 23.296881][ T66] [ 23.668312][ T66] eth1: left allmulticast mode [ 23.668512][ T66] eth1: left promiscuous mode [ 23.668826][ T66] br0: port 2(eth1) entered disabled state [ 27.298390][ T404] eth1: renamed from tmp [ 28.177246][ T413] eth2: renamed from tmp