[ 1638.937570][T19390] br0: port 1(gw_l) entered blocking state [ 1638.938337][T19390] br0: port 1(gw_l) entered disabled state [ 1638.938625][T19390] gw_l: entered allmulticast mode [ 1638.939959][T19390] gw_l: entered promiscuous mode [ 1638.941852][T19390] br0: port 1(gw_l) entered blocking state [ 1638.942198][T19390] br0: port 1(gw_l) entered forwarding state [ 1639.450796][T19392] br0: port 2(amtg) entered blocking state [ 1639.451187][T19392] br0: port 2(amtg) entered disabled state [ 1639.451684][T19392] amtg: entered allmulticast mode [ 1639.453016][T19392] amtg: entered promiscuous mode [ 1641.031474][T19403] br0: port 2(amtg) entered blocking state [ 1641.032245][T19403] br0: port 2(amtg) entered forwarding state [ 1641.042714][T19403] ip (19403) used greatest stack depth: 23720 bytes left [ 1641.798720][T19409] amtr: entered allmulticast mode [ 1641.799706][T19409] relay_gw: entered allmulticast mode [ 1641.800072][T19409] relay_src: entered allmulticast mode [ 2885.834740][ T67] br0: port 1(gw_l) entered disabled state [ 2885.932750][ T67] gw_l (unregistering): left allmulticast mode [ 2885.933112][ T67] gw_l (unregistering): left promiscuous mode [ 2885.933333][ T67] br0: port 1(gw_l) entered disabled state [ 2885.934858][ T67] [ 2885.934953][ T67] ============================================ [ 2885.935144][ T67] WARNING: possible recursive locking detected [ 2885.935332][ T67] 6.13.0-rc5-virtme #1 Not tainted [ 2885.935484][ T67] -------------------------------------------- [ 2885.935688][ T67] kworker/u16:1/67 is trying to acquire lock: [ 2885.935878][ T67] ffffffff983f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 2885.936228][ T67] [ 2885.936228][ T67] but task is already holding lock: [ 2885.936492][ T67] ffffffff983f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 2885.936819][ T67] [ 2885.936819][ T67] other info that might help us debug this: [ 2885.937050][ T67] Possible unsafe locking scenario: [ 2885.937050][ T67] [ 2885.937280][ T67] CPU0 [ 2885.937407][ T67] ---- [ 2885.937549][ T67] lock((netdev_chain).rwsem); [ 2885.937747][ T67] lock((netdev_chain).rwsem); [ 2885.937909][ T67] [ 2885.937909][ T67] *** DEADLOCK *** [ 2885.937909][ T67] [ 2885.938143][ T67] May be due to missing lock nesting notation [ 2885.938143][ T67] [ 2885.938435][ T67] 5 locks held by kworker/u16:1/67: [ 2885.938646][ T67] #0: ffff8880010b5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7ec/0x16d0 [ 2885.939024][ T67] #1: ffffc90000487da0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xe0b/0x16d0 [ 2885.939313][ T67] #2: ffffffff983ec4d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbc/0xba0 [ 2885.939668][ T67] #3: ffffffff98407e88 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x81/0x2e0 [ 2885.939995][ T67] #4: ffffffff983f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 2885.940352][ T67] [ 2885.940352][ T67] stack backtrace: [ 2885.940596][ T67] CPU: 0 UID: 0 PID: 67 Comm: kworker/u16:1 Not tainted 6.13.0-rc5-virtme #1 [ 2885.940894][ T67] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 2885.941149][ T67] Workqueue: netns cleanup_net [ 2885.941354][ T67] Call Trace: [ 2885.941476][ T67] [ 2885.941574][ T67] dump_stack_lvl+0x82/0xd0 [ 2885.941772][ T67] print_deadlock_bug+0x40a/0x650 [ 2885.941938][ T67] validate_chain+0x5bf/0xae0 [ 2885.942141][ T67] ? __pfx_validate_chain+0x10/0x10 [ 2885.942305][ T67] ? hlock_class+0x4e/0x130 [ 2885.942465][ T67] ? mark_lock+0x38/0x3e0 [ 2885.942592][ T67] __lock_acquire+0xb9a/0x1680 [ 2885.942765][ T67] lock_acquire.part.0+0xeb/0x330 [ 2885.942925][ T67] ? blocking_notifier_call_chain+0x50/0x90 [ 2885.943156][ T67] ? find_held_lock+0x2c/0x110 [ 2885.943348][ T67] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2885.943512][ T67] ? trace_lock_acquire+0x14c/0x1f0 [ 2885.943716][ T67] ? lock_acquire+0x32/0xc0 [ 2885.943872][ T67] ? blocking_notifier_call_chain+0x50/0x90 [ 2885.944072][ T67] down_read+0x9f/0x340 [ 2885.944217][ T67] ? blocking_notifier_call_chain+0x50/0x90 [ 2885.944499][ T67] ? __pfx_down_read+0x10/0x10 [ 2885.944668][ T67] ? lockdep_hardirqs_on_prepare+0x12b/0x410 [ 2885.944868][ T67] blocking_notifier_call_chain+0x50/0x90 [ 2885.945064][ T67] __netdev_upper_dev_unlink+0xd9/0x220 [ 2885.945228][ T67] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 2885.945470][ T67] ? find_held_lock+0x2c/0x110 [ 2885.945639][ T67] ? del_nbp+0x377/0xbe0 [ 2885.945771][ T67] ? hlock_class+0x4e/0x130 [ 2885.945960][ T67] netdev_upper_dev_unlink+0x71/0xa0 [ 2885.946120][ T67] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 2885.946327][ T67] ? mutex_is_locked+0x12/0x60 [ 2885.946508][ T67] ? rtnl_is_locked+0x15/0x20 [ 2885.946710][ T67] del_nbp+0x602/0xbe0 [ 2885.946841][ T67] br_del_if+0xa3/0x1f0 [ 2885.946965][ T67] br_device_event+0x53d/0x800 [ 2885.947123][ T67] ? __pfx_br_device_event+0x10/0x10 [ 2885.947289][ T67] ? packet_notifier+0x3b0/0x810 [ 2885.947499][ T67] notifier_call_chain+0xcd/0x150 [ 2885.947674][ T67] blocking_notifier_call_chain+0x66/0x90 [ 2885.947837][ T67] unregister_netdevice_many_notify+0xa83/0x1580 [ 2885.948032][ T67] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 2885.948231][ T67] ? default_device_exit_batch+0x81/0x2e0 [ 2885.948428][ T67] ? rtnl_is_locked+0x15/0x20 [ 2885.948590][ T67] ? unregister_netdevice_queue+0x70/0x410 [ 2885.948840][ T67] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 2885.949039][ T67] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 2885.949269][ T67] default_device_exit_batch+0x241/0x2e0 [ 2885.949433][ T67] ? __pfx_default_device_exit_batch+0x10/0x10 [ 2885.949685][ T67] ? ops_exit_list+0xb4/0x170 [ 2885.949855][ T67] cleanup_net+0x4ef/0xba0 [ 2885.950033][ T67] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2885.950215][ T67] ? __pfx_cleanup_net+0x10/0x10 [ 2885.950376][ T67] ? trace_lock_acquire+0x14c/0x1f0 [ 2885.950551][ T67] ? lock_acquire+0x32/0xc0 [ 2885.950738][ T67] ? process_one_work+0xe0b/0x16d0 [ 2885.950899][ T67] process_one_work+0xe55/0x16d0 [ 2885.951095][ T67] ? __pfx___lock_release+0x10/0x10 [ 2885.951262][ T67] ? __pfx_process_one_work+0x10/0x10 [ 2885.951450][ T67] ? assign_work+0x16c/0x240 [ 2885.951623][ T67] worker_thread+0x58c/0xce0 [ 2885.951787][ T67] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 2885.951983][ T67] ? __pfx_worker_thread+0x10/0x10 [ 2885.952146][ T67] ? __pfx_worker_thread+0x10/0x10 [ 2885.952307][ T67] kthread+0x28a/0x350 [ 2885.952440][ T67] ? __pfx_kthread+0x10/0x10 [ 2885.952639][ T67] ret_from_fork+0x31/0x70 [ 2885.952802][ T67] ? __pfx_kthread+0x10/0x10 [ 2885.952990][ T67] ret_from_fork_asm+0x1a/0x30 [ 2885.953154][ T67] [ 2885.998920][ T67] amtg: left allmulticast mode [ 2885.999100][ T67] amtg: left promiscuous mode [ 2885.999360][ T67] br0: port 2(amtg) entered disabled state [ 2886.033385][T19409] amtr: left allmulticast mode [ 2886.033661][T19409] relay_gw: left allmulticast mode [ 2886.033851][T19409] relay_src: left allmulticast mode