[ 10.662737][ T264] ip (264) used greatest stack depth: 23752 bytes left [ 13.578944][ T306] br0: port 1(gw_l) entered blocking state [ 13.579560][ T306] br0: port 1(gw_l) entered disabled state [ 13.579819][ T306] gw_l: entered allmulticast mode [ 13.581036][ T306] gw_l: entered promiscuous mode [ 13.582691][ T306] br0: port 1(gw_l) entered blocking state [ 13.583007][ T306] br0: port 1(gw_l) entered forwarding state [ 13.961393][ T308] br0: port 2(amtg) entered blocking state [ 13.961855][ T308] br0: port 2(amtg) entered disabled state [ 13.962129][ T308] amtg: entered allmulticast mode [ 13.963445][ T308] amtg: entered promiscuous mode [ 15.370418][ T319] br0: port 2(amtg) entered blocking state [ 15.370991][ T319] br0: port 2(amtg) entered forwarding state [ 16.192744][ T329] amtr: entered allmulticast mode [ 16.193129][ T329] relay_gw: entered allmulticast mode [ 16.193620][ T329] relay_src: entered allmulticast mode [ 1176.046028][ T11] br0: port 1(gw_l) entered disabled state [ 1176.151191][ T11] gw_l (unregistering): left allmulticast mode [ 1176.151547][ T11] gw_l (unregistering): left promiscuous mode [ 1176.151762][ T11] br0: port 1(gw_l) entered disabled state [ 1176.152674][ T11] [ 1176.152772][ T11] ============================================ [ 1176.152961][ T11] WARNING: possible recursive locking detected [ 1176.153156][ T11] 6.13.0-rc5-virtme #1 Not tainted [ 1176.153314][ T11] -------------------------------------------- [ 1176.153506][ T11] kworker/u16:0/11 is trying to acquire lock: [ 1176.153695][ T11] ffffffff8abf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 1176.154018][ T11] [ 1176.154018][ T11] but task is already holding lock: [ 1176.154248][ T11] ffffffff8abf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 1176.154559][ T11] [ 1176.154559][ T11] other info that might help us debug this: [ 1176.154784][ T11] Possible unsafe locking scenario: [ 1176.154784][ T11] [ 1176.155014][ T11] CPU0 [ 1176.155130][ T11] ---- [ 1176.155243][ T11] lock((netdev_chain).rwsem); [ 1176.155398][ T11] lock((netdev_chain).rwsem); [ 1176.155555][ T11] [ 1176.155555][ T11] *** DEADLOCK *** [ 1176.155555][ T11] [ 1176.155787][ T11] May be due to missing lock nesting notation [ 1176.155787][ T11] [ 1176.156012][ T11] 5 locks held by kworker/u16:0/11: [ 1176.156171][ T11] #0: ffff8880010b5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7ec/0x16d0 [ 1176.156488][ T11] #1: ffffc900000b7da0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xe0b/0x16d0 [ 1176.156760][ T11] #2: ffffffff8abec4d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbc/0xba0 [ 1176.157037][ T11] #3: ffffffff8ac07e88 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x81/0x2e0 [ 1176.157348][ T11] #4: ffffffff8abf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 1176.157657][ T11] [ 1176.157657][ T11] stack backtrace: [ 1176.157844][ T11] CPU: 3 UID: 0 PID: 11 Comm: kworker/u16:0 Not tainted 6.13.0-rc5-virtme #1 [ 1176.158115][ T11] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 1176.158305][ T11] Workqueue: netns cleanup_net [ 1176.158466][ T11] Call Trace: [ 1176.158585][ T11] [ 1176.158667][ T11] dump_stack_lvl+0x82/0xd0 [ 1176.158827][ T11] print_deadlock_bug+0x40a/0x650 [ 1176.158982][ T11] validate_chain+0x5bf/0xae0 [ 1176.159139][ T11] ? __pfx_validate_chain+0x10/0x10 [ 1176.159299][ T11] ? hlock_class+0x4e/0x130 [ 1176.159451][ T11] ? mark_lock+0x38/0x3e0 [ 1176.159568][ T11] __lock_acquire+0xb9a/0x1680 [ 1176.159723][ T11] lock_acquire.part.0+0xeb/0x330 [ 1176.159877][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 1176.160068][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1176.160219][ T11] ? trace_lock_acquire+0x14c/0x1f0 [ 1176.160377][ T11] ? lock_acquire+0x32/0xc0 [ 1176.160529][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 1176.160723][ T11] down_read+0x9f/0x340 [ 1176.160843][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 1176.161038][ T11] ? __pfx_down_read+0x10/0x10 [ 1176.161194][ T11] ? __pfx___lock_release+0x10/0x10 [ 1176.161347][ T11] blocking_notifier_call_chain+0x50/0x90 [ 1176.161506][ T11] __netdev_upper_dev_unlink+0xd9/0x220 [ 1176.161660][ T11] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 1176.161851][ T11] ? find_held_lock+0x2c/0x110 [ 1176.162006][ T11] ? del_nbp+0x377/0xbe0 [ 1176.162123][ T11] ? hlock_class+0x4e/0x130 [ 1176.162275][ T11] netdev_upper_dev_unlink+0x71/0xa0 [ 1176.162432][ T11] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 1176.162622][ T11] ? mutex_is_locked+0x12/0x60 [ 1176.162775][ T11] ? rtnl_is_locked+0x15/0x20 [ 1176.162930][ T11] del_nbp+0x602/0xbe0 [ 1176.163051][ T11] br_del_if+0xa3/0x1f0 [ 1176.163171][ T11] br_device_event+0x53d/0x800 [ 1176.163327][ T11] ? __pfx_br_device_event+0x10/0x10 [ 1176.163484][ T11] ? packet_notifier+0x3b0/0x810 [ 1176.163647][ T11] notifier_call_chain+0xcd/0x150 [ 1176.163805][ T11] blocking_notifier_call_chain+0x66/0x90 [ 1176.163959][ T11] unregister_netdevice_many_notify+0xa83/0x1580 [ 1176.164153][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 1176.164344][ T11] ? default_device_exit_batch+0x81/0x2e0 [ 1176.164497][ T11] ? rtnl_is_locked+0x15/0x20 [ 1176.164654][ T11] ? unregister_netdevice_queue+0x70/0x410 [ 1176.164845][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 1176.165037][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 1176.165225][ T11] default_device_exit_batch+0x241/0x2e0 [ 1176.165376][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 1176.165569][ T11] ? ops_exit_list+0xb4/0x170 [ 1176.165730][ T11] cleanup_net+0x4ef/0xba0 [ 1176.165882][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1176.166036][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 1176.166187][ T11] ? trace_lock_acquire+0x14c/0x1f0 [ 1176.166339][ T11] ? lock_acquire+0x32/0xc0 [ 1176.166490][ T11] ? process_one_work+0xe0b/0x16d0 [ 1176.166647][ T11] process_one_work+0xe55/0x16d0 [ 1176.166800][ T11] ? __pfx___lock_release+0x10/0x10 [ 1176.166962][ T11] ? __pfx_process_one_work+0x10/0x10 [ 1176.167116][ T11] ? assign_work+0x16c/0x240 [ 1176.167287][ T11] worker_thread+0x58c/0xce0 [ 1176.167443][ T11] ? __pfx_worker_thread+0x10/0x10 [ 1176.167594][ T11] kthread+0x28a/0x350 [ 1176.167712][ T11] ? __pfx_kthread+0x10/0x10 [ 1176.167867][ T11] ret_from_fork+0x31/0x70 [ 1176.168027][ T11] ? __pfx_kthread+0x10/0x10 [ 1176.168191][ T11] ret_from_fork_asm+0x1a/0x30 [ 1176.168350][ T11] [ 1176.206922][ T11] amtg: left allmulticast mode [ 1176.207096][ T11] amtg: left promiscuous mode [ 1176.207356][ T11] br0: port 2(amtg) entered disabled state [ 1176.234322][ T329] amtr: left allmulticast mode [ 1176.234604][ T329] relay_gw: left allmulticast mode [ 1176.234807][ T329] relay_src: left allmulticast mode