[ 14.899204][ T299] eth3: renamed from tmp [ 15.651219][ T304] ip (304) used greatest stack depth: 23120 bytes left [ 15.949672][ T306] eth2: renamed from tmp [ 17.464954][ T316] eth0: renamed from tmp [ 17.915780][ T319] br0: port 1(eth0) entered blocking state [ 17.916206][ T319] br0: port 1(eth0) entered disabled state [ 17.916453][ T319] eth0: entered allmulticast mode [ 17.917679][ T319] eth0: entered promiscuous mode [ 17.919389][ T319] br0: port 1(eth0) entered blocking state [ 17.919689][ T319] br0: port 1(eth0) entered forwarding state [ 18.539974][ T323] eth1: renamed from tmp [ 19.005020][ T326] br0: port 2(eth1) entered blocking state [ 19.005311][ T326] br0: port 2(eth1) entered disabled state [ 19.005604][ T326] eth1: entered allmulticast mode [ 19.006851][ T326] eth1: entered promiscuous mode [ 19.007820][ T326] br0: port 2(eth1) entered blocking state [ 19.008054][ T326] br0: port 2(eth1) entered forwarding state [ 23.641210][ T66] br0: port 1(eth0) entered disabled state [ 23.738888][ T66] eth0 (unregistering): left allmulticast mode [ 23.739254][ T66] eth0 (unregistering): left promiscuous mode [ 23.739480][ T66] br0: port 1(eth0) entered disabled state [ 23.740354][ T66] [ 23.740452][ T66] ============================================ [ 23.740649][ T66] WARNING: possible recursive locking detected [ 23.740838][ T66] 6.13.0-rc5-virtme #1 Not tainted [ 23.741000][ T66] -------------------------------------------- [ 23.741194][ T66] kworker/u16:1/66 is trying to acquire lock: [ 23.741387][ T66] ffffffff899f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 23.741711][ T66] [ 23.741711][ T66] but task is already holding lock: [ 23.741925][ T66] ffffffff899f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 23.742218][ T66] [ 23.742218][ T66] other info that might help us debug this: [ 23.742446][ T66] Possible unsafe locking scenario: [ 23.742446][ T66] [ 23.742671][ T66] CPU0 [ 23.742787][ T66] ---- [ 23.742907][ T66] lock((netdev_chain).rwsem); [ 23.743062][ T66] lock((netdev_chain).rwsem); [ 23.743225][ T66] [ 23.743225][ T66] *** DEADLOCK *** [ 23.743225][ T66] [ 23.743444][ T66] May be due to missing lock nesting notation [ 23.743444][ T66] [ 23.743669][ T66] 5 locks held by kworker/u16:1/66: [ 23.743821][ T66] #0: ffff8880010b5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7ec/0x16d0 [ 23.744143][ T66] #1: ffffc90000477da0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xe0b/0x16d0 [ 23.744422][ T66] #2: ffffffff899ec4d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbc/0xba0 [ 23.744707][ T66] #3: ffffffff89a07e88 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x81/0x2e0 [ 23.745029][ T66] #4: ffffffff899f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 23.745357][ T66] [ 23.745357][ T66] stack backtrace: [ 23.745547][ T66] CPU: 3 UID: 0 PID: 66 Comm: kworker/u16:1 Not tainted 6.13.0-rc5-virtme #1 [ 23.745811][ T66] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 23.746002][ T66] Workqueue: netns cleanup_net [ 23.746172][ T66] Call Trace: [ 23.746285][ T66] [ 23.746363][ T66] dump_stack_lvl+0x82/0xd0 [ 23.746522][ T66] print_deadlock_bug+0x40a/0x650 [ 23.746693][ T66] validate_chain+0x5bf/0xae0 [ 23.746841][ T66] ? __pfx_validate_chain+0x10/0x10 [ 23.746998][ T66] ? hlock_class+0x4e/0x130 [ 23.747149][ T66] ? mark_lock+0x38/0x3e0 [ 23.747267][ T66] __lock_acquire+0xb9a/0x1680 [ 23.747419][ T66] lock_acquire.part.0+0xeb/0x330 [ 23.747575][ T66] ? blocking_notifier_call_chain+0x50/0x90 [ 23.747768][ T66] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 23.747924][ T66] ? trace_lock_acquire+0x14c/0x1f0 [ 23.748078][ T66] ? lock_acquire+0x32/0xc0 [ 23.748227][ T66] ? blocking_notifier_call_chain+0x50/0x90 [ 23.748419][ T66] down_read+0x9f/0x340 [ 23.748539][ T66] ? blocking_notifier_call_chain+0x50/0x90 [ 23.748727][ T66] ? __pfx_down_read+0x10/0x10 [ 23.748878][ T66] ? __pfx___lock_release+0x10/0x10 [ 23.749026][ T66] blocking_notifier_call_chain+0x50/0x90 [ 23.749180][ T66] __netdev_upper_dev_unlink+0xd9/0x220 [ 23.749332][ T66] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 23.749519][ T66] ? find_held_lock+0x2c/0x110 [ 23.749668][ T66] ? del_nbp+0x377/0xbe0 [ 23.749788][ T66] ? hlock_class+0x4e/0x130 [ 23.749941][ T66] netdev_upper_dev_unlink+0x71/0xa0 [ 23.750092][ T66] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 23.750285][ T66] ? mutex_is_locked+0x12/0x60 [ 23.750436][ T66] ? rtnl_is_locked+0x15/0x20 [ 23.750590][ T66] del_nbp+0x602/0xbe0 [ 23.750707][ T66] br_del_if+0xa3/0x1f0 [ 23.750828][ T66] br_device_event+0x53d/0x800 [ 23.750985][ T66] ? __pfx_br_device_event+0x10/0x10 [ 23.751137][ T66] ? packet_notifier+0x3b0/0x810 [ 23.751285][ T66] notifier_call_chain+0xcd/0x150 [ 23.751438][ T66] blocking_notifier_call_chain+0x66/0x90 [ 23.751596][ T66] unregister_netdevice_many_notify+0xa83/0x1580 [ 23.751779][ T66] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 23.751967][ T66] ? default_device_exit_batch+0x81/0x2e0 [ 23.752121][ T66] ? rtnl_is_locked+0x15/0x20 [ 23.752272][ T66] ? unregister_netdevice_queue+0x70/0x410 [ 23.752454][ T66] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 23.752639][ T66] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 23.752826][ T66] default_device_exit_batch+0x241/0x2e0 [ 23.752974][ T66] ? __pfx_default_device_exit_batch+0x10/0x10 [ 23.753160][ T66] ? ops_exit_list+0xb4/0x170 [ 23.753311][ T66] cleanup_net+0x4ef/0xba0 [ 23.753462][ T66] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 23.753613][ T66] ? __pfx_cleanup_net+0x10/0x10 [ 23.753761][ T66] ? trace_lock_acquire+0x14c/0x1f0 [ 23.753906][ T66] ? lock_acquire+0x32/0xc0 [ 23.754052][ T66] ? process_one_work+0xe0b/0x16d0 [ 23.754209][ T66] process_one_work+0xe55/0x16d0 [ 23.754357][ T66] ? __pfx___lock_release+0x10/0x10 [ 23.754509][ T66] ? __pfx_process_one_work+0x10/0x10 [ 23.754657][ T66] ? assign_work+0x16c/0x240 [ 23.754810][ T66] worker_thread+0x58c/0xce0 [ 23.754956][ T66] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 23.755141][ T66] ? __pfx_worker_thread+0x10/0x10 [ 23.755294][ T66] ? __pfx_worker_thread+0x10/0x10 [ 23.755435][ T66] kthread+0x28a/0x350 [ 23.755552][ T66] ? __pfx_kthread+0x10/0x10 [ 23.755697][ T66] ret_from_fork+0x31/0x70 [ 23.755851][ T66] ? __pfx_kthread+0x10/0x10 [ 23.755999][ T66] ret_from_fork_asm+0x1a/0x30 [ 23.756145][ T66] [ 24.083573][ T66] eth1: left allmulticast mode [ 24.083798][ T66] eth1: left promiscuous mode [ 24.084094][ T66] br0: port 2(eth1) entered disabled state [ 27.855099][ T402] eth1: renamed from tmp [ 28.807869][ T411] eth2: renamed from tmp