[ 9.909500][ T256] sctp: Hash tables configured (bind 32/56) [ 45.816484][ T11] [ 45.816598][ T11] ============================================ [ 45.816775][ T11] WARNING: possible recursive locking detected [ 45.816943][ T11] 6.13.0-rc5-virtme #1 Not tainted [ 45.817079][ T11] -------------------------------------------- [ 45.817252][ T11] kworker/u16:0/11 is trying to acquire lock: [ 45.817422][ T11] ffffffff8d3f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 45.817706][ T11] [ 45.817706][ T11] but task is already holding lock: [ 45.817904][ T11] ffffffff8d3f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 45.818185][ T11] [ 45.818185][ T11] other info that might help us debug this: [ 45.818389][ T11] Possible unsafe locking scenario: [ 45.818389][ T11] [ 45.818589][ T11] CPU0 [ 45.818694][ T11] ---- [ 45.818797][ T11] lock((netdev_chain).rwsem); [ 45.818935][ T11] lock((netdev_chain).rwsem); [ 45.819072][ T11] [ 45.819072][ T11] *** DEADLOCK *** [ 45.819072][ T11] [ 45.819277][ T11] May be due to missing lock nesting notation [ 45.819277][ T11] [ 45.819478][ T11] 5 locks held by kworker/u16:0/11: [ 45.819613][ T11] #0: ffff8880010b5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7ec/0x16d0 [ 45.819894][ T11] #1: ffffc900000b7da0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xe0b/0x16d0 [ 45.820138][ T11] #2: ffffffff8d3ec4d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbc/0xba0 [ 45.820391][ T11] #3: ffffffff8d407e88 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x81/0x2e0 [ 45.820673][ T11] #4: ffffffff8d3f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 45.820954][ T11] [ 45.820954][ T11] stack backtrace: [ 45.821124][ T11] CPU: 0 UID: 0 PID: 11 Comm: kworker/u16:0 Not tainted 6.13.0-rc5-virtme #1 [ 45.821378][ T11] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 45.821561][ T11] Workqueue: netns cleanup_net [ 45.821703][ T11] Call Trace: [ 45.821808][ T11] [ 45.821880][ T11] dump_stack_lvl+0x82/0xd0 [ 45.822026][ T11] print_deadlock_bug+0x40a/0x650 [ 45.822171][ T11] validate_chain+0x5bf/0xae0 [ 45.822310][ T11] ? __pfx_validate_chain+0x10/0x10 [ 45.822449][ T11] ? hlock_class+0x4e/0x130 [ 45.822589][ T11] ? mark_lock+0x38/0x3e0 [ 45.822695][ T11] __lock_acquire+0xb9a/0x1680 [ 45.822835][ T11] lock_acquire.part.0+0xeb/0x330 [ 45.822971][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 45.823142][ T11] ? __lock_acquire+0xb9a/0x1680 [ 45.823282][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 45.823418][ T11] ? trace_lock_acquire+0x14c/0x1f0 [ 45.823554][ T11] ? lock_acquire+0x32/0xc0 [ 45.823690][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 45.823859][ T11] down_read+0x9f/0x340 [ 45.823963][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 45.824130][ T11] ? __pfx_down_read+0x10/0x10 [ 45.824272][ T11] ? __lock_release+0x103/0x460 [ 45.824410][ T11] blocking_notifier_call_chain+0x50/0x90 [ 45.824553][ T11] __netdev_upper_dev_unlink+0xd9/0x220 [ 45.824690][ T11] ? mark_held_locks+0x9e/0xe0 [ 45.824829][ T11] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 45.825000][ T11] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 45.825176][ T11] ? __try_to_del_timer_sync+0xe7/0x140 [ 45.825316][ T11] ? __pfx___try_to_del_timer_sync+0x10/0x10 [ 45.825486][ T11] ? mark_held_locks+0x9e/0xe0 [ 45.825625][ T11] netdev_upper_dev_unlink+0x71/0xa0 [ 45.825762][ T11] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 45.825932][ T11] ? mutex_is_locked+0x1c/0x60 [ 45.826068][ T11] ? rtnl_is_locked+0x15/0x20 [ 45.826215][ T11] ? netdev_master_upper_dev_get+0x13/0x120 [ 45.826383][ T11] vrf_device_event+0x78/0xe0 [ 45.826523][ T11] notifier_call_chain+0xcd/0x150 [ 45.826662][ T11] blocking_notifier_call_chain+0x66/0x90 [ 45.826807][ T11] unregister_netdevice_many_notify+0xa83/0x1580 [ 45.826982][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 45.827152][ T11] ? default_device_exit_batch+0x81/0x2e0 [ 45.827296][ T11] ? rtnl_is_locked+0x15/0x20 [ 45.827432][ T11] ? unregister_netdevice_queue+0x70/0x410 [ 45.827603][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 45.827771][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 45.827943][ T11] default_device_exit_batch+0x241/0x2e0 [ 45.828082][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 45.828256][ T11] ? ops_exit_list+0xb4/0x170 [ 45.828400][ T11] cleanup_net+0x4ef/0xba0 [ 45.828536][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 45.828680][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 45.828815][ T11] ? trace_lock_acquire+0x14c/0x1f0 [ 45.828953][ T11] ? lock_acquire+0x32/0xc0 [ 45.829090][ T11] ? process_one_work+0xe0b/0x16d0 [ 45.829235][ T11] process_one_work+0xe55/0x16d0 [ 45.829374][ T11] ? __pfx___lock_release+0x10/0x10 [ 45.829511][ T11] ? __pfx_process_one_work+0x10/0x10 [ 45.829655][ T11] ? assign_work+0x16c/0x240 [ 45.829795][ T11] worker_thread+0x58c/0xce0 [ 45.829935][ T11] ? __pfx_worker_thread+0x10/0x10 [ 45.830073][ T11] kthread+0x28a/0x350 [ 45.830182][ T11] ? __pfx_kthread+0x10/0x10 [ 45.830322][ T11] ret_from_fork+0x31/0x70 [ 45.830463][ T11] ? __pfx_kthread+0x10/0x10 [ 45.830600][ T11] ret_from_fork_asm+0x1a/0x30 [ 45.830742][ T11]