[ 9.727627][ T255] sctp: Hash tables configured (bind 32/56) [ 45.029267][ T11] [ 45.029417][ T11] ============================================ [ 45.029673][ T11] WARNING: possible recursive locking detected [ 45.029926][ T11] 6.13.0-rc5-virtme #1 Not tainted [ 45.030129][ T11] -------------------------------------------- [ 45.030375][ T11] kworker/u16:0/11 is trying to acquire lock: [ 45.030627][ T11] ffffffffa2bf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 45.031042][ T11] [ 45.031042][ T11] but task is already holding lock: [ 45.031333][ T11] ffffffffa2bf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 45.031731][ T11] [ 45.031731][ T11] other info that might help us debug this: [ 45.032022][ T11] Possible unsafe locking scenario: [ 45.032022][ T11] [ 45.032311][ T11] CPU0 [ 45.032460][ T11] ---- [ 45.032610][ T11] lock((netdev_chain).rwsem); [ 45.032809][ T11] lock((netdev_chain).rwsem); [ 45.033008][ T11] [ 45.033008][ T11] *** DEADLOCK *** [ 45.033008][ T11] [ 45.033298][ T11] May be due to missing lock nesting notation [ 45.033298][ T11] [ 45.033592][ T11] 5 locks held by kworker/u16:0/11: [ 45.033792][ T11] #0: ffff8880010b5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7ec/0x16d0 [ 45.034203][ T11] #1: ffffc900000b7da0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xe0b/0x16d0 [ 45.034572][ T11] #2: ffffffffa2bec4d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbc/0xba0 [ 45.034941][ T11] #3: ffffffffa2c07e88 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x81/0x2e0 [ 45.035353][ T11] #4: ffffffffa2bf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 45.035765][ T11] [ 45.035765][ T11] stack backtrace: [ 45.036017][ T11] CPU: 0 UID: 0 PID: 11 Comm: kworker/u16:0 Not tainted 6.13.0-rc5-virtme #1 [ 45.036373][ T11] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 45.036625][ T11] Workqueue: netns cleanup_net [ 45.036835][ T11] Call Trace: [ 45.036990][ T11] [ 45.037102][ T11] dump_stack_lvl+0x82/0xd0 [ 45.037310][ T11] print_deadlock_bug+0x40a/0x650 [ 45.037516][ T11] validate_chain+0x5bf/0xae0 [ 45.037722][ T11] ? __pfx_validate_chain+0x10/0x10 [ 45.037931][ T11] ? hlock_class+0x4e/0x130 [ 45.038130][ T11] ? mark_lock+0x38/0x3e0 [ 45.038285][ T11] __lock_acquire+0xb9a/0x1680 [ 45.038493][ T11] lock_acquire.part.0+0xeb/0x330 [ 45.038703][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 45.038964][ T11] ? __lock_acquire+0xb9a/0x1680 [ 45.039165][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 45.039368][ T11] ? trace_lock_acquire+0x14c/0x1f0 [ 45.039571][ T11] ? lock_acquire+0x32/0xc0 [ 45.039774][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 45.040032][ T11] down_read+0x9f/0x340 [ 45.040186][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 45.040448][ T11] ? __pfx_down_read+0x10/0x10 [ 45.040656][ T11] ? __lock_release+0x103/0x460 [ 45.040865][ T11] blocking_notifier_call_chain+0x50/0x90 [ 45.041072][ T11] __netdev_upper_dev_unlink+0xd9/0x220 [ 45.041275][ T11] ? mark_held_locks+0x9e/0xe0 [ 45.041477][ T11] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 45.041728][ T11] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 45.041995][ T11] ? __try_to_del_timer_sync+0xe7/0x140 [ 45.042203][ T11] ? __pfx___try_to_del_timer_sync+0x10/0x10 [ 45.042464][ T11] ? mark_held_locks+0x9e/0xe0 [ 45.042671][ T11] netdev_upper_dev_unlink+0x71/0xa0 [ 45.042886][ T11] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 45.043146][ T11] ? mutex_is_locked+0x1c/0x60 [ 45.043354][ T11] ? rtnl_is_locked+0x15/0x20 [ 45.043567][ T11] ? netdev_master_upper_dev_get+0x13/0x120 [ 45.043824][ T11] vrf_device_event+0x78/0xe0 [ 45.044033][ T11] notifier_call_chain+0xcd/0x150 [ 45.044244][ T11] blocking_notifier_call_chain+0x66/0x90 [ 45.044462][ T11] unregister_netdevice_many_notify+0xa83/0x1580 [ 45.044725][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 45.044985][ T11] ? default_device_exit_batch+0x81/0x2e0 [ 45.045202][ T11] ? rtnl_is_locked+0x15/0x20 [ 45.045409][ T11] ? unregister_netdevice_queue+0x70/0x410 [ 45.045663][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 45.045917][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 45.046182][ T11] default_device_exit_batch+0x241/0x2e0 [ 45.046396][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 45.046661][ T11] ? ops_exit_list+0xb4/0x170 [ 45.046872][ T11] cleanup_net+0x4ef/0xba0 [ 45.047085][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 45.047296][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 45.047502][ T11] ? trace_lock_acquire+0x14c/0x1f0 [ 45.047706][ T11] ? lock_acquire+0x32/0xc0 [ 45.047917][ T11] ? process_one_work+0xe0b/0x16d0 [ 45.048126][ T11] process_one_work+0xe55/0x16d0 [ 45.048347][ T11] ? __pfx___lock_release+0x10/0x10 [ 45.048556][ T11] ? __pfx_process_one_work+0x10/0x10 [ 45.048770][ T11] ? assign_work+0x16c/0x240 [ 45.048981][ T11] worker_thread+0x58c/0xce0 [ 45.049192][ T11] ? __pfx_worker_thread+0x10/0x10 [ 45.049393][ T11] kthread+0x28a/0x350 [ 45.049550][ T11] ? __pfx_kthread+0x10/0x10 [ 45.049763][ T11] ret_from_fork+0x31/0x70 [ 45.049973][ T11] ? __pfx_kthread+0x10/0x10 [ 45.050183][ T11] ret_from_fork_asm+0x1a/0x30 [ 45.050399][ T11]