[ 172.490110][ T2109] sctp: Hash tables configured (bind 32/56) [ 209.039801][ T11] [ 209.039923][ T11] ============================================ [ 209.040105][ T11] WARNING: possible recursive locking detected [ 209.040280][ T11] 6.13.0-rc5-virtme #1 Not tainted [ 209.040419][ T11] -------------------------------------------- [ 209.040580][ T11] kworker/u16:0/11 is trying to acquire lock: [ 209.040752][ T11] ffffffffa35f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 209.041045][ T11] [ 209.041045][ T11] but task is already holding lock: [ 209.041255][ T11] ffffffffa35f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 209.041539][ T11] [ 209.041539][ T11] other info that might help us debug this: [ 209.041748][ T11] Possible unsafe locking scenario: [ 209.041748][ T11] [ 209.041963][ T11] CPU0 [ 209.042067][ T11] ---- [ 209.042173][ T11] lock((netdev_chain).rwsem); [ 209.042314][ T11] lock((netdev_chain).rwsem); [ 209.042450][ T11] [ 209.042450][ T11] *** DEADLOCK *** [ 209.042450][ T11] [ 209.042655][ T11] May be due to missing lock nesting notation [ 209.042655][ T11] [ 209.042863][ T11] 5 locks held by kworker/u16:0/11: [ 209.043008][ T11] #0: ffff8880010b5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7ec/0x16d0 [ 209.043288][ T11] #1: ffffc900000b7da0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xe0b/0x16d0 [ 209.043533][ T11] #2: ffffffffa35ec4d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbc/0xba0 [ 209.043779][ T11] #3: ffffffffa3607e88 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x81/0x2e0 [ 209.044065][ T11] #4: ffffffffa35f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 209.044339][ T11] [ 209.044339][ T11] stack backtrace: [ 209.044511][ T11] CPU: 0 UID: 0 PID: 11 Comm: kworker/u16:0 Not tainted 6.13.0-rc5-virtme #1 [ 209.044750][ T11] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 209.044935][ T11] Workqueue: netns cleanup_net [ 209.045079][ T11] Call Trace: [ 209.045188][ T11] [ 209.045262][ T11] dump_stack_lvl+0x82/0xd0 [ 209.045405][ T11] print_deadlock_bug+0x40a/0x650 [ 209.045546][ T11] validate_chain+0x5bf/0xae0 [ 209.045684][ T11] ? __pfx_validate_chain+0x10/0x10 [ 209.045821][ T11] ? hlock_class+0x4e/0x130 [ 209.045961][ T11] ? mark_lock+0x38/0x3e0 [ 209.046070][ T11] __lock_acquire+0xb9a/0x1680 [ 209.046223][ T11] lock_acquire.part.0+0xeb/0x330 [ 209.046370][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 209.046555][ T11] ? __lock_acquire+0xb9a/0x1680 [ 209.046703][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 209.046855][ T11] ? trace_lock_acquire+0x14c/0x1f0 [ 209.047012][ T11] ? lock_acquire+0x32/0xc0 [ 209.047170][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 209.047359][ T11] down_read+0x9f/0x340 [ 209.047474][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 209.047661][ T11] ? __pfx_down_read+0x10/0x10 [ 209.047811][ T11] ? __lock_release+0x103/0x460 [ 209.047969][ T11] blocking_notifier_call_chain+0x50/0x90 [ 209.048126][ T11] __netdev_upper_dev_unlink+0xd9/0x220 [ 209.048285][ T11] ? mark_held_locks+0x9e/0xe0 [ 209.048440][ T11] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 209.048629][ T11] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 209.048856][ T11] ? __try_to_del_timer_sync+0xe7/0x140 [ 209.049014][ T11] ? __pfx___try_to_del_timer_sync+0x10/0x10 [ 209.049214][ T11] ? mark_held_locks+0x9e/0xe0 [ 209.049374][ T11] netdev_upper_dev_unlink+0x71/0xa0 [ 209.049528][ T11] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 209.049716][ T11] ? mutex_is_locked+0x1c/0x60 [ 209.049869][ T11] ? rtnl_is_locked+0x15/0x20 [ 209.050022][ T11] ? netdev_master_upper_dev_get+0x13/0x120 [ 209.050215][ T11] vrf_device_event+0x78/0xe0 [ 209.050369][ T11] notifier_call_chain+0xcd/0x150 [ 209.050524][ T11] blocking_notifier_call_chain+0x66/0x90 [ 209.050681][ T11] unregister_netdevice_many_notify+0xa83/0x1580 [ 209.050875][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 209.051064][ T11] ? default_device_exit_batch+0x81/0x2e0 [ 209.051214][ T11] ? rtnl_is_locked+0x15/0x20 [ 209.051366][ T11] ? unregister_netdevice_queue+0x70/0x410 [ 209.051553][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 209.051752][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 209.051939][ T11] default_device_exit_batch+0x241/0x2e0 [ 209.052092][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 209.052271][ T11] ? ops_exit_list+0xb4/0x170 [ 209.052416][ T11] cleanup_net+0x4ef/0xba0 [ 209.052550][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 209.052688][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 209.052830][ T11] ? trace_lock_acquire+0x14c/0x1f0 [ 209.052967][ T11] ? lock_acquire+0x32/0xc0 [ 209.053104][ T11] ? process_one_work+0xe0b/0x16d0 [ 209.053244][ T11] process_one_work+0xe55/0x16d0 [ 209.053386][ T11] ? __pfx___lock_release+0x10/0x10 [ 209.053526][ T11] ? __pfx_process_one_work+0x10/0x10 [ 209.053665][ T11] ? assign_work+0x16c/0x240 [ 209.053809][ T11] worker_thread+0x58c/0xce0 [ 209.053954][ T11] ? __pfx_worker_thread+0x10/0x10 [ 209.054093][ T11] kthread+0x28a/0x350 [ 209.054202][ T11] ? __pfx_kthread+0x10/0x10 [ 209.054342][ T11] ret_from_fork+0x31/0x70 [ 209.054486][ T11] ? __pfx_kthread+0x10/0x10 [ 209.054625][ T11] ret_from_fork_asm+0x1a/0x30 [ 209.054770][ T11]