[ 9.737497][ T259] ip (259) used greatest stack depth: 23760 bytes left [ 13.864585][ T297] ip (297) used greatest stack depth: 23136 bytes left [ 14.151290][ T299] eth3: renamed from tmp [ 15.173001][ T306] eth2: renamed from tmp [ 16.605609][ T317] eth0: renamed from tmp [ 17.023543][ T320] br0: port 1(eth0) entered blocking state [ 17.024011][ T320] br0: port 1(eth0) entered disabled state [ 17.024285][ T320] eth0: entered allmulticast mode [ 17.025532][ T320] eth0: entered promiscuous mode [ 17.027958][ T320] br0: port 1(eth0) entered blocking state [ 17.028284][ T320] br0: port 1(eth0) entered forwarding state [ 17.614383][ T325] eth1: renamed from tmp [ 18.031137][ T328] br0: port 2(eth1) entered blocking state [ 18.031444][ T328] br0: port 2(eth1) entered disabled state [ 18.031709][ T328] eth1: entered allmulticast mode [ 18.040060][ T328] eth1: entered promiscuous mode [ 18.041469][ T328] br0: port 2(eth1) entered blocking state [ 18.041801][ T328] br0: port 2(eth1) entered forwarding state [ 22.578952][ T66] br0: port 1(eth0) entered disabled state [ 22.695887][ T66] eth0 (unregistering): left allmulticast mode [ 22.696270][ T66] eth0 (unregistering): left promiscuous mode [ 22.696518][ T66] br0: port 1(eth0) entered disabled state [ 22.698486][ T66] [ 22.698585][ T66] ============================================ [ 22.698768][ T66] WARNING: possible recursive locking detected [ 22.698953][ T66] 6.13.0-rc5-virtme #1 Not tainted [ 22.699106][ T66] -------------------------------------------- [ 22.699294][ T66] kworker/u16:1/66 is trying to acquire lock: [ 22.699484][ T66] ffffffffb33f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 22.699814][ T66] [ 22.699814][ T66] but task is already holding lock: [ 22.700062][ T66] ffffffffb33f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 22.700375][ T66] [ 22.700375][ T66] other info that might help us debug this: [ 22.700603][ T66] Possible unsafe locking scenario: [ 22.700603][ T66] [ 22.700825][ T66] CPU0 [ 22.700938][ T66] ---- [ 22.701055][ T66] lock((netdev_chain).rwsem); [ 22.701210][ T66] lock((netdev_chain).rwsem); [ 22.701363][ T66] [ 22.701363][ T66] *** DEADLOCK *** [ 22.701363][ T66] [ 22.701598][ T66] May be due to missing lock nesting notation [ 22.701598][ T66] [ 22.701827][ T66] 5 locks held by kworker/u16:1/66: [ 22.701996][ T66] #0: ffff8880010b5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7ec/0x16d0 [ 22.702313][ T66] #1: ffffc90000477da0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xe0b/0x16d0 [ 22.702589][ T66] #2: ffffffffb33ec4d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbc/0xba0 [ 22.702862][ T66] #3: ffffffffb3407e88 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x81/0x2e0 [ 22.703176][ T66] #4: ffffffffb33f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 22.703487][ T66] [ 22.703487][ T66] stack backtrace: [ 22.703674][ T66] CPU: 2 UID: 0 PID: 66 Comm: kworker/u16:1 Not tainted 6.13.0-rc5-virtme #1 [ 22.703945][ T66] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 22.704134][ T66] Workqueue: netns cleanup_net [ 22.704302][ T66] Call Trace: [ 22.704421][ T66] [ 22.704501][ T66] dump_stack_lvl+0x82/0xd0 [ 22.704661][ T66] print_deadlock_bug+0x40a/0x650 [ 22.704816][ T66] validate_chain+0x5bf/0xae0 [ 22.704972][ T66] ? __pfx_validate_chain+0x10/0x10 [ 22.705126][ T66] ? hlock_class+0x4e/0x130 [ 22.705279][ T66] ? mark_lock+0x38/0x3e0 [ 22.705397][ T66] __lock_acquire+0xb9a/0x1680 [ 22.705556][ T66] lock_acquire.part.0+0xeb/0x330 [ 22.705713][ T66] ? blocking_notifier_call_chain+0x50/0x90 [ 22.705903][ T66] ? find_held_lock+0x2c/0x110 [ 22.706055][ T66] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 22.706210][ T66] ? trace_lock_acquire+0x14c/0x1f0 [ 22.706378][ T66] ? lock_acquire+0x32/0xc0 [ 22.706531][ T66] ? blocking_notifier_call_chain+0x50/0x90 [ 22.706729][ T66] down_read+0x9f/0x340 [ 22.706847][ T66] ? blocking_notifier_call_chain+0x50/0x90 [ 22.707040][ T66] ? __pfx_down_read+0x10/0x10 [ 22.707196][ T66] ? lockdep_hardirqs_on_prepare+0x12b/0x410 [ 22.707395][ T66] blocking_notifier_call_chain+0x50/0x90 [ 22.707550][ T66] __netdev_upper_dev_unlink+0xd9/0x220 [ 22.707706][ T66] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 22.707893][ T66] ? find_held_lock+0x2c/0x110 [ 22.708049][ T66] ? del_nbp+0x377/0xbe0 [ 22.708165][ T66] ? hlock_class+0x4e/0x130 [ 22.708320][ T66] netdev_upper_dev_unlink+0x71/0xa0 [ 22.708473][ T66] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 22.708657][ T66] ? mutex_is_locked+0x12/0x60 [ 22.708812][ T66] ? rtnl_is_locked+0x15/0x20 [ 22.708967][ T66] del_nbp+0x602/0xbe0 [ 22.709083][ T66] br_del_if+0xa3/0x1f0 [ 22.709202][ T66] br_device_event+0x53d/0x800 [ 22.709359][ T66] ? __pfx_br_device_event+0x10/0x10 [ 22.709512][ T66] ? packet_notifier+0x3b0/0x810 [ 22.709670][ T66] notifier_call_chain+0xcd/0x150 [ 22.709826][ T66] blocking_notifier_call_chain+0x66/0x90 [ 22.709986][ T66] unregister_netdevice_many_notify+0xa83/0x1580 [ 22.710177][ T66] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 22.710370][ T66] ? default_device_exit_batch+0x81/0x2e0 [ 22.710528][ T66] ? rtnl_is_locked+0x15/0x20 [ 22.710682][ T66] ? unregister_netdevice_queue+0x70/0x410 [ 22.710869][ T66] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 22.711060][ T66] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 22.711251][ T66] default_device_exit_batch+0x241/0x2e0 [ 22.711402][ T66] ? __pfx_default_device_exit_batch+0x10/0x10 [ 22.711593][ T66] ? ops_exit_list+0xb4/0x170 [ 22.711752][ T66] cleanup_net+0x4ef/0xba0 [ 22.711903][ T66] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 22.712058][ T66] ? __pfx_cleanup_net+0x10/0x10 [ 22.712207][ T66] ? trace_lock_acquire+0x14c/0x1f0 [ 22.712360][ T66] ? lock_acquire+0x32/0xc0 [ 22.712513][ T66] ? process_one_work+0xe0b/0x16d0 [ 22.712667][ T66] process_one_work+0xe55/0x16d0 [ 22.712820][ T66] ? __pfx___lock_release+0x10/0x10 [ 22.712976][ T66] ? __pfx_process_one_work+0x10/0x10 [ 22.713127][ T66] ? assign_work+0x16c/0x240 [ 22.713279][ T66] worker_thread+0x58c/0xce0 [ 22.713427][ T66] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 22.713701][ T66] ? __pfx_worker_thread+0x10/0x10 [ 22.713853][ T66] ? __pfx_worker_thread+0x10/0x10 [ 22.714008][ T66] kthread+0x28a/0x350 [ 22.714125][ T66] ? __pfx_kthread+0x10/0x10 [ 22.714280][ T66] ret_from_fork+0x31/0x70 [ 22.714434][ T66] ? __pfx_kthread+0x10/0x10 [ 22.714586][ T66] ret_from_fork_asm+0x1a/0x30 [ 22.714743][ T66] [ 23.020118][ T66] eth1: left allmulticast mode [ 23.020430][ T66] eth1: left promiscuous mode [ 23.020750][ T66] br0: port 2(eth1) entered disabled state [ 26.518569][ T405] eth1: renamed from tmp [ 27.394243][ T414] eth2: renamed from tmp