[ 14.158653][ C2] [ 14.158790][ C2] ================================ [ 14.158967][ C2] WARNING: inconsistent lock state [ 14.159140][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 14.159308][ C2] -------------------------------- [ 14.159474][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.159679][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.159897][ C2] ffffffffafbbf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.160194][ C2] {SOFTIRQ-ON-W} state was registered at: [ 14.160356][ C2] __lock_acquire+0x3eb/0x9d0 [ 14.160527][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.160690][ C2] _raw_spin_lock+0x33/0x40 [ 14.160855][ C2] simple_pin_fs+0x24/0x150 [ 14.161019][ C2] start_creating.part.0+0x3f/0x2f0 [ 14.161189][ C2] debugfs_create_dir+0x6a/0x540 [ 14.161354][ C2] component_debug_init+0x17/0x30 [ 14.161523][ C2] do_one_initcall+0x8c/0x1e0 [ 14.161689][ C2] do_initcalls+0x176/0x280 [ 14.161858][ C2] kernel_init_freeable+0x22d/0x300 [ 14.162018][ C2] kernel_init+0x20/0x200 [ 14.162183][ C2] ret_from_fork+0x31/0x70 [ 14.162349][ C2] ret_from_fork_asm+0x1a/0x30 [ 14.162520][ C2] irq event stamp: 199050 [ 14.162643][ C2] hardirqs last enabled at (199050): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.162962][ C2] hardirqs last disabled at (199049): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.163286][ C2] softirqs last enabled at (198216): [] handle_softirqs+0x358/0x620 [ 14.163579][ C2] softirqs last disabled at (198221): [] run_ksoftirqd+0x3f/0x70 [ 14.163860][ C2] [ 14.163860][ C2] other info that might help us debug this: [ 14.164096][ C2] Possible unsafe locking scenario: [ 14.164096][ C2] [ 14.164329][ C2] CPU0 [ 14.164452][ C2] ---- [ 14.164575][ C2] lock(pin_fs_lock); [ 14.164700][ C2] [ 14.164820][ C2] lock(pin_fs_lock); [ 14.164946][ C2] [ 14.164946][ C2] *** DEADLOCK *** [ 14.164946][ C2] [ 14.165183][ C2] 1 lock held by ksoftirqd/2/27: [ 14.165346][ C2] #0: ffffffffaf974480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.165633][ C2] [ 14.165633][ C2] stack backtrace: [ 14.165834][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.165839][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.165842][ C2] Call Trace: [ 14.165844][ C2] [ 14.165847][ C2] dump_stack_lvl+0x82/0xd0 [ 14.165853][ C2] print_usage_bug.part.0+0x25f/0x360 [ 14.165858][ C2] mark_lock_irq+0x343/0x400 [ 14.165863][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.165870][ C2] ? save_trace+0x52/0x170 [ 14.165874][ C2] mark_lock+0x174/0x2f0 [ 14.165878][ C2] mark_usage+0x46/0x150 [ 14.165882][ C2] __lock_acquire+0x3eb/0x9d0 [ 14.165887][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.165891][ C2] ? simple_pin_fs+0x24/0x150 [ 14.165895][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.165902][ C2] ? lock_acquire+0x10c/0x170 [ 14.165905][ C2] ? simple_pin_fs+0x24/0x150 [ 14.165910][ C2] _raw_spin_lock+0x33/0x40 [ 14.165913][ C2] ? simple_pin_fs+0x24/0x150 [ 14.165916][ C2] simple_pin_fs+0x24/0x150 [ 14.165920][ C2] debugfs_remove+0x35/0x70 [ 14.165923][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.165929][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.165932][ C2] ? __sk_destruct+0x383/0x780 [ 14.165939][ C2] ? rcu_do_batch+0x34c/0xf20 [ 14.165942][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.165944][ C2] ? smpboot_thread_fn+0x307/0x960 [ 14.165949][ C2] ? kthread+0x37b/0x600 [ 14.165954][ C2] ? ret_from_fork+0x31/0x70 [ 14.165958][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 14.165960][ C2] ? migrate_enable+0x1f2/0x270 [ 14.165965][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 14.165971][ C2] __put_net+0x19/0x60 [ 14.165975][ C2] __sk_destruct+0x58a/0x780 [ 14.165979][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.165981][ C2] rcu_do_batch+0x34c/0xf20 [ 14.165986][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.165990][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.165994][ C2] ? note_gp_changes+0x182/0x1e0 [ 14.165998][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.166005][ C2] rcu_core+0x2bb/0x500 [ 14.166008][ C2] handle_softirqs+0x218/0x620 [ 14.166012][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.166015][ C2] run_ksoftirqd+0x3f/0x70 [ 14.166017][ C2] smpboot_thread_fn+0x307/0x960 [ 14.166021][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.166024][ C2] kthread+0x37b/0x600 [ 14.166027][ C2] ? __pfx_kthread+0x10/0x10 [ 14.166030][ C2] ? ret_from_fork+0x1b/0x70 [ 14.166033][ C2] ? __lock_release+0x5d/0x170 [ 14.166037][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.166040][ C2] ? __pfx_kthread+0x10/0x10 [ 14.166044][ C2] ret_from_fork+0x31/0x70 [ 14.166047][ C2] ? __pfx_kthread+0x10/0x10 [ 14.166050][ C2] ret_from_fork_asm+0x1a/0x30 [ 14.166056][ C2] [ 14.175508][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.175802][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 14.176111][ C2] preempt_count: 100, expected: 0 [ 14.176295][ C2] RCU nest depth: 0, expected: 0 [ 14.176467][ C2] INFO: lockdep is turned off. [ 14.176636][ C2] Preemption disabled at: [ 14.176638][ C2] [] handle_softirqs+0xe5/0x620 [ 14.176987][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.176991][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.176993][ C2] Call Trace: [ 14.176995][ C2] [ 14.176997][ C2] dump_stack_lvl+0xb0/0xd0 [ 14.177004][ C2] __might_resched+0x360/0x5a0 [ 14.177010][ C2] down_write+0x72/0x210 [ 14.177014][ C2] ? __pfx_down_write+0x10/0x10 [ 14.177017][ C2] ? simple_recursive_removal+0x3a/0x860 [ 14.177022][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.177028][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.177033][ C2] simple_recursive_removal+0x166/0x860 [ 14.177035][ C2] ? __pfx_remove_one+0x10/0x10 [ 14.177039][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.177044][ C2] debugfs_remove+0x44/0x70 [ 14.177047][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.177052][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.177055][ C2] ? __sk_destruct+0x383/0x780 [ 14.177061][ C2] ? rcu_do_batch+0x34c/0xf20 [ 14.177072][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.177074][ C2] ? smpboot_thread_fn+0x307/0x960 [ 14.177078][ C2] ? kthread+0x37b/0x600 [ 14.177083][ C2] ? ret_from_fork+0x31/0x70 [ 14.177088][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 14.177093][ C2] ? migrate_enable+0x1f2/0x270 [ 14.177098][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 14.177104][ C2] __put_net+0x19/0x60 [ 14.177108][ C2] __sk_destruct+0x58a/0x780 [ 14.177112][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.177115][ C2] rcu_do_batch+0x34c/0xf20 [ 14.177119][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.177123][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.177127][ C2] ? note_gp_changes+0x182/0x1e0 [ 14.177131][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.177138][ C2] rcu_core+0x2bb/0x500 [ 14.177141][ C2] handle_softirqs+0x218/0x620 [ 14.177145][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.177148][ C2] run_ksoftirqd+0x3f/0x70 [ 14.177150][ C2] smpboot_thread_fn+0x307/0x960 [ 14.177154][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.177158][ C2] kthread+0x37b/0x600 [ 14.177161][ C2] ? __pfx_kthread+0x10/0x10 [ 14.177164][ C2] ? ret_from_fork+0x1b/0x70 [ 14.177167][ C2] ? __lock_release+0x5d/0x170 [ 14.177172][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.177176][ C2] ? __pfx_kthread+0x10/0x10 [ 14.177179][ C2] ret_from_fork+0x31/0x70 [ 14.177183][ C2] ? __pfx_kthread+0x10/0x10 [ 14.177185][ C2] ret_from_fork_asm+0x1a/0x30 [ 14.177192][ C2] [ 15.687673][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.687989][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 15.688248][ C3] preempt_count: 100, expected: 0 [ 15.688398][ C3] RCU nest depth: 0, expected: 0 [ 15.688546][ C3] INFO: lockdep is turned off. [ 15.688694][ C3] Preemption disabled at: [ 15.688696][ C3] [] handle_softirqs+0xe5/0x620 [ 15.689008][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 15.689013][ C3] Tainted: [W]=WARN [ 15.689015][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.689017][ C3] Call Trace: [ 15.689019][ C3] [ 15.689021][ C3] dump_stack_lvl+0xb0/0xd0 [ 15.689030][ C3] __might_resched+0x360/0x5a0 [ 15.689037][ C3] down_write+0x72/0x210 [ 15.689042][ C3] ? __pfx_down_write+0x10/0x10 [ 15.689045][ C3] ? simple_recursive_removal+0x3a/0x860 [ 15.689051][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.689060][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.689066][ C3] simple_recursive_removal+0x166/0x860 [ 15.689068][ C3] ? __pfx_remove_one+0x10/0x10 [ 15.689074][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.689078][ C3] debugfs_remove+0x44/0x70 [ 15.689081][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.689088][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.689091][ C3] ? __sk_destruct+0x383/0x780 [ 15.689099][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.689104][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.689107][ C3] ? smpboot_thread_fn+0x307/0x960 [ 15.689112][ C3] ? kthread+0x37b/0x600 [ 15.689118][ C3] ? ret_from_fork+0x31/0x70 [ 15.689125][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 15.689132][ C3] ? migrate_enable+0x1f2/0x270 [ 15.689138][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 15.689141][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 15.689146][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.689150][ C3] __put_net+0x19/0x60 [ 15.689155][ C3] __sk_destruct+0x58a/0x780 [ 15.689158][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.689161][ C3] rcu_do_batch+0x34c/0xf20 [ 15.689166][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.689170][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.689174][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 15.689179][ C3] rcu_core+0x2bb/0x500 [ 15.689183][ C3] handle_softirqs+0x218/0x620 [ 15.689186][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.689189][ C3] run_ksoftirqd+0x3f/0x70 [ 15.689191][ C3] smpboot_thread_fn+0x307/0x960 [ 15.689195][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.689198][ C3] kthread+0x37b/0x600 [ 15.689201][ C3] ? __pfx_kthread+0x10/0x10 [ 15.689204][ C3] ? ret_from_fork+0x1b/0x70 [ 15.689207][ C3] ? __lock_release+0x5d/0x170 [ 15.689213][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.689217][ C3] ? __pfx_kthread+0x10/0x10 [ 15.689220][ C3] ret_from_fork+0x31/0x70 [ 15.689223][ C3] ? __pfx_kthread+0x10/0x10 [ 15.689226][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.689233][ C3]