[ 254.549995][ T4049] sctp: Hash tables configured (bind 32/56) [ 290.895570][ T11] [ 290.895683][ T11] ============================================ [ 290.895854][ T11] WARNING: possible recursive locking detected [ 290.896023][ T11] 6.13.0-rc5-virtme #1 Not tainted [ 290.896160][ T11] -------------------------------------------- [ 290.896327][ T11] kworker/u16:0/11 is trying to acquire lock: [ 290.896492][ T11] ffffffff89df6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 290.896774][ T11] [ 290.896774][ T11] but task is already holding lock: [ 290.896977][ T11] ffffffff89df6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 290.897253][ T11] [ 290.897253][ T11] other info that might help us debug this: [ 290.897459][ T11] Possible unsafe locking scenario: [ 290.897459][ T11] [ 290.897662][ T11] CPU0 [ 290.897767][ T11] ---- [ 290.897870][ T11] lock((netdev_chain).rwsem); [ 290.898006][ T11] lock((netdev_chain).rwsem); [ 290.898146][ T11] [ 290.898146][ T11] *** DEADLOCK *** [ 290.898146][ T11] [ 290.898343][ T11] May be due to missing lock nesting notation [ 290.898343][ T11] [ 290.898543][ T11] 5 locks held by kworker/u16:0/11: [ 290.898679][ T11] #0: ffff8880010b5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7ec/0x16d0 [ 290.898955][ T11] #1: ffffc900000b7da0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xe0b/0x16d0 [ 290.899210][ T11] #2: ffffffff89dec4d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbc/0xba0 [ 290.899454][ T11] #3: ffffffff89e07e88 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x81/0x2e0 [ 290.899735][ T11] #4: ffffffff89df6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 290.900011][ T11] [ 290.900011][ T11] stack backtrace: [ 290.900180][ T11] CPU: 2 UID: 0 PID: 11 Comm: kworker/u16:0 Not tainted 6.13.0-rc5-virtme #1 [ 290.900419][ T11] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 290.900593][ T11] Workqueue: netns cleanup_net [ 290.900743][ T11] Call Trace: [ 290.900848][ T11] [ 290.900920][ T11] dump_stack_lvl+0x82/0xd0 [ 290.901070][ T11] print_deadlock_bug+0x40a/0x650 [ 290.901211][ T11] validate_chain+0x5bf/0xae0 [ 290.901348][ T11] ? __pfx_validate_chain+0x10/0x10 [ 290.901486][ T11] ? hlock_class+0x4e/0x130 [ 290.901621][ T11] ? mark_lock+0x38/0x3e0 [ 290.901728][ T11] __lock_acquire+0xb9a/0x1680 [ 290.901873][ T11] lock_acquire.part.0+0xeb/0x330 [ 290.902011][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 290.902177][ T11] ? __lock_acquire+0xb9a/0x1680 [ 290.902313][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 290.902449][ T11] ? trace_lock_acquire+0x14c/0x1f0 [ 290.902586][ T11] ? lock_acquire+0x32/0xc0 [ 290.902721][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 290.902894][ T11] down_read+0x9f/0x340 [ 290.903000][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 290.903167][ T11] ? __pfx_down_read+0x10/0x10 [ 290.903302][ T11] ? __lock_release+0x103/0x460 [ 290.903440][ T11] blocking_notifier_call_chain+0x50/0x90 [ 290.903579][ T11] __netdev_upper_dev_unlink+0xd9/0x220 [ 290.903712][ T11] ? mark_held_locks+0x9e/0xe0 [ 290.903853][ T11] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 290.904024][ T11] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 290.904192][ T11] ? __try_to_del_timer_sync+0xe7/0x140 [ 290.904334][ T11] ? __pfx___try_to_del_timer_sync+0x10/0x10 [ 290.904500][ T11] ? mark_held_locks+0x9e/0xe0 [ 290.904635][ T11] netdev_upper_dev_unlink+0x71/0xa0 [ 290.904768][ T11] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 290.904937][ T11] ? mutex_is_locked+0x1c/0x60 [ 290.905073][ T11] ? rtnl_is_locked+0x15/0x20 [ 290.905209][ T11] ? netdev_master_upper_dev_get+0x13/0x120 [ 290.905372][ T11] vrf_device_event+0x78/0xe0 [ 290.905508][ T11] notifier_call_chain+0xcd/0x150 [ 290.905646][ T11] blocking_notifier_call_chain+0x66/0x90 [ 290.905781][ T11] unregister_netdevice_many_notify+0xa83/0x1580 [ 290.905953][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 290.906120][ T11] ? default_device_exit_batch+0x81/0x2e0 [ 290.906257][ T11] ? rtnl_is_locked+0x15/0x20 [ 290.906396][ T11] ? unregister_netdevice_queue+0x70/0x410 [ 290.906561][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 290.906727][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 290.906900][ T11] default_device_exit_batch+0x241/0x2e0 [ 290.907035][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 290.907203][ T11] ? ops_exit_list+0xb4/0x170 [ 290.907341][ T11] cleanup_net+0x4ef/0xba0 [ 290.907475][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 290.907608][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 290.907738][ T11] ? trace_lock_acquire+0x14c/0x1f0 [ 290.907877][ T11] ? lock_acquire+0x32/0xc0 [ 290.908011][ T11] ? process_one_work+0xe0b/0x16d0 [ 290.908145][ T11] process_one_work+0xe55/0x16d0 [ 290.908279][ T11] ? __pfx___lock_release+0x10/0x10 [ 290.908413][ T11] ? __pfx_process_one_work+0x10/0x10 [ 290.908549][ T11] ? assign_work+0x16c/0x240 [ 290.908683][ T11] worker_thread+0x58c/0xce0 [ 290.908819][ T11] ? __pfx_worker_thread+0x10/0x10 [ 290.908958][ T11] kthread+0x28a/0x350 [ 290.909061][ T11] ? __pfx_kthread+0x10/0x10 [ 290.909195][ T11] ret_from_fork+0x31/0x70 [ 290.909331][ T11] ? __pfx_kthread+0x10/0x10 [ 290.909468][ T11] ret_from_fork_asm+0x1a/0x30 [ 290.909604][ T11]