[ 258.252675][ T2337] sctp: Hash tables configured (bind 32/56) [ 294.631744][ T67] [ 294.631877][ T67] ============================================ [ 294.632067][ T67] WARNING: possible recursive locking detected [ 294.632249][ T67] 6.13.0-rc5-virtme #1 Not tainted [ 294.632395][ T67] -------------------------------------------- [ 294.632563][ T67] kworker/u16:1/67 is trying to acquire lock: [ 294.632746][ T67] ffffffff8fbf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 294.633031][ T67] [ 294.633031][ T67] but task is already holding lock: [ 294.633247][ T67] ffffffff8fbf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 294.633530][ T67] [ 294.633530][ T67] other info that might help us debug this: [ 294.633735][ T67] Possible unsafe locking scenario: [ 294.633735][ T67] [ 294.633950][ T67] CPU0 [ 294.634059][ T67] ---- [ 294.634166][ T67] lock((netdev_chain).rwsem); [ 294.634329][ T67] lock((netdev_chain).rwsem); [ 294.634477][ T67] [ 294.634477][ T67] *** DEADLOCK *** [ 294.634477][ T67] [ 294.634686][ T67] May be due to missing lock nesting notation [ 294.634686][ T67] [ 294.634898][ T67] 5 locks held by kworker/u16:1/67: [ 294.635057][ T67] #0: ffff8880010b5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7ec/0x16d0 [ 294.635351][ T67] #1: ffffc90000487da0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xe0b/0x16d0 [ 294.635618][ T67] #2: ffffffff8fbec4d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbc/0xba0 [ 294.635897][ T67] #3: ffffffff8fc07e88 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x81/0x2e0 [ 294.636195][ T67] #4: ffffffff8fbf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 294.636494][ T67] [ 294.636494][ T67] stack backtrace: [ 294.636680][ T67] CPU: 2 UID: 0 PID: 67 Comm: kworker/u16:1 Not tainted 6.13.0-rc5-virtme #1 [ 294.636940][ T67] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 294.637139][ T67] Workqueue: netns cleanup_net [ 294.637284][ T67] Call Trace: [ 294.637399][ T67] <TASK> [ 294.637471][ T67] dump_stack_lvl+0x82/0xd0 [ 294.637622][ T67] print_deadlock_bug+0x40a/0x650 [ 294.637768][ T67] validate_chain+0x5bf/0xae0 [ 294.637909][ T67] ? __pfx_validate_chain+0x10/0x10 [ 294.638048][ T67] ? hlock_class+0x4e/0x130 [ 294.638197][ T67] ? mark_lock+0x38/0x3e0 [ 294.638302][ T67] __lock_acquire+0xb9a/0x1680 [ 294.638470][ T67] lock_acquire.part.0+0xeb/0x330 [ 294.638614][ T67] ? blocking_notifier_call_chain+0x50/0x90 [ 294.638796][ T67] ? __lock_acquire+0xb9a/0x1680 [ 294.638936][ T67] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 294.639075][ T67] ? trace_lock_acquire+0x14c/0x1f0 [ 294.639221][ T67] ? lock_acquire+0x32/0xc0 [ 294.639365][ T67] ? blocking_notifier_call_chain+0x50/0x90 [ 294.639542][ T67] down_read+0x9f/0x340 [ 294.639657][ T67] ? blocking_notifier_call_chain+0x50/0x90 [ 294.639837][ T67] ? __pfx_down_read+0x10/0x10 [ 294.639986][ T67] ? __lock_release+0x103/0x460 [ 294.640137][ T67] blocking_notifier_call_chain+0x50/0x90 [ 294.640286][ T67] __netdev_upper_dev_unlink+0xd9/0x220 [ 294.640434][ T67] ? mark_held_locks+0x9e/0xe0 [ 294.640573][ T67] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 294.640759][ T67] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 294.640948][ T67] ? __try_to_del_timer_sync+0xe7/0x140 [ 294.641102][ T67] ? __pfx___try_to_del_timer_sync+0x10/0x10 [ 294.641280][ T67] ? mark_held_locks+0x9e/0xe0 [ 294.641434][ T67] netdev_upper_dev_unlink+0x71/0xa0 [ 294.641578][ T67] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 294.641849][ T67] ? mutex_is_locked+0x1c/0x60 [ 294.641988][ T67] ? rtnl_is_locked+0x15/0x20 [ 294.642129][ T67] ? netdev_master_upper_dev_get+0x13/0x120 [ 294.642305][ T67] vrf_device_event+0x78/0xe0 [ 294.642453][ T67] notifier_call_chain+0xcd/0x150 [ 294.642601][ T67] blocking_notifier_call_chain+0x66/0x90 [ 294.642746][ T67] unregister_netdevice_many_notify+0xa83/0x1580 [ 294.642929][ T67] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 294.643104][ T67] ? default_device_exit_batch+0x81/0x2e0 [ 294.643244][ T67] ? rtnl_is_locked+0x15/0x20 [ 294.643383][ T67] ? unregister_netdevice_queue+0x70/0x410 [ 294.643566][ T67] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 294.643742][ T67] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 294.643924][ T67] default_device_exit_batch+0x241/0x2e0 [ 294.644070][ T67] ? __pfx_default_device_exit_batch+0x10/0x10 [ 294.644343][ T67] ? ops_exit_list+0xb4/0x170 [ 294.644482][ T67] cleanup_net+0x4ef/0xba0 [ 294.644635][ T67] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 294.644774][ T67] ? __pfx_cleanup_net+0x10/0x10 [ 294.644909][ T67] ? trace_lock_acquire+0x14c/0x1f0 [ 294.645049][ T67] ? lock_acquire+0x32/0xc0 [ 294.645190][ T67] ? process_one_work+0xe0b/0x16d0 [ 294.645345][ T67] process_one_work+0xe55/0x16d0 [ 294.645491][ T67] ? __pfx___lock_release+0x10/0x10 [ 294.645711][ T67] ? __pfx_process_one_work+0x10/0x10 [ 294.645865][ T67] ? assign_work+0x16c/0x240 [ 294.646009][ T67] worker_thread+0x58c/0xce0 [ 294.646151][ T67] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 294.646330][ T67] ? __pfx_worker_thread+0x10/0x10 [ 294.646466][ T67] ? __pfx_worker_thread+0x10/0x10 [ 294.646611][ T67] kthread+0x28a/0x350 [ 294.646719][ T67] ? __pfx_kthread+0x10/0x10 [ 294.646868][ T67] ret_from_fork+0x31/0x70 [ 294.647008][ T67] ? __pfx_kthread+0x10/0x10 [ 294.647149][ T67] ret_from_fork_asm+0x1a/0x30 [ 294.647313][ T67] </TASK>