[ 13.295774][ C0] [ 13.296003][ C0] ================================ [ 13.296179][ C0] WARNING: inconsistent lock state [ 13.296352][ C0] 6.15.0-virtme #1 Not tainted [ 13.296540][ C0] -------------------------------- [ 13.296714][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.296930][ C0] ksoftirqd/0/14 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.297145][ C0] ffffffffaf3c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.297458][ C0] {SOFTIRQ-ON-W} state was registered at: [ 13.297628][ C0] __lock_acquire+0x20b/0x7e0 [ 13.297805][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.297983][ C0] _raw_spin_lock+0x33/0x40 [ 13.298164][ C0] simple_pin_fs+0x24/0x150 [ 13.298350][ C0] start_creating.part.0+0x52/0x310 [ 13.298524][ C0] debugfs_create_dir+0x6a/0x540 [ 13.298702][ C0] component_debug_init+0x17/0x30 [ 13.298883][ C0] do_one_initcall+0x8f/0x1e0 [ 13.299070][ C0] do_initcalls+0x176/0x280 [ 13.299249][ C0] kernel_init_freeable+0x22d/0x300 [ 13.299423][ C0] kernel_init+0x20/0x200 [ 13.299607][ C0] ret_from_fork+0x240/0x320 [ 13.299783][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.299954][ C0] irq event stamp: 183930 [ 13.300088][ C0] hardirqs last enabled at (183930): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.300450][ C0] hardirqs last disabled at (183929): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.300791][ C0] softirqs last enabled at (183612): [] handle_softirqs+0x358/0x620 [ 13.301099][ C0] softirqs last disabled at (183617): [] run_ksoftirqd+0x3f/0x70 [ 13.301408][ C0] [ 13.301408][ C0] other info that might help us debug this: [ 13.301659][ C0] Possible unsafe locking scenario: [ 13.301659][ C0] [ 13.301911][ C0] CPU0 [ 13.302038][ C0] ---- [ 13.302164][ C0] lock(pin_fs_lock); [ 13.302302][ C0] [ 13.302431][ C0] lock(pin_fs_lock); [ 13.302578][ C0] [ 13.302578][ C0] *** DEADLOCK *** [ 13.302578][ C0] [ 13.302833][ C0] 1 lock held by ksoftirqd/0/14: [ 13.303024][ C0] #0: ffffffffaf1774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.303340][ C0] [ 13.303340][ C0] stack backtrace: [ 13.303557][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.303562][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.303564][ C0] Call Trace: [ 13.303566][ C0] [ 13.303568][ C0] dump_stack_lvl+0x82/0xd0 [ 13.303574][ C0] print_usage_bug.part.0+0x25f/0x360 [ 13.303579][ C0] mark_lock_irq+0x343/0x400 [ 13.303584][ C0] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.303589][ C0] ? save_trace+0x52/0x170 [ 13.303593][ C0] mark_lock+0x174/0x2f0 [ 13.303597][ C0] mark_usage+0x46/0x150 [ 13.303600][ C0] __lock_acquire+0x20b/0x7e0 [ 13.303604][ C0] ? __lock_acquire+0x44d/0x7e0 [ 13.303608][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.303612][ C0] ? simple_pin_fs+0x24/0x150 [ 13.303615][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.303621][ C0] ? lock_acquire+0x10c/0x170 [ 13.303623][ C0] ? simple_pin_fs+0x24/0x150 [ 13.303627][ C0] _raw_spin_lock+0x33/0x40 [ 13.303631][ C0] ? simple_pin_fs+0x24/0x150 [ 13.303633][ C0] simple_pin_fs+0x24/0x150 [ 13.303636][ C0] debugfs_remove+0x35/0x70 [ 13.303640][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.303644][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.303647][ C0] ? __sk_destruct+0x383/0x780 [ 13.303652][ C0] ? rcu_do_batch+0x34c/0xf20 [ 13.303655][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.303658][ C0] ? smpboot_thread_fn+0x30a/0x960 [ 13.303661][ C0] ? kthread+0x37e/0x600 [ 13.303664][ C0] ? ret_from_fork+0x240/0x320 [ 13.303668][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 13.303671][ C0] ? migrate_enable+0x1f2/0x270 [ 13.303675][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 13.303681][ C0] __put_net+0x19/0x60 [ 13.303685][ C0] __sk_destruct+0x58a/0x780 [ 13.303689][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.303692][ C0] rcu_do_batch+0x34c/0xf20 [ 13.303697][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.303701][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.303704][ C0] ? note_gp_changes+0x182/0x1e0 [ 13.303707][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.303713][ C0] rcu_core+0x2bb/0x500 [ 13.303717][ C0] handle_softirqs+0x218/0x620 [ 13.303722][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.303726][ C0] run_ksoftirqd+0x3f/0x70 [ 13.303729][ C0] smpboot_thread_fn+0x30a/0x960 [ 13.303732][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.303735][ C0] kthread+0x37e/0x600 [ 13.303738][ C0] ? __pfx_kthread+0x10/0x10 [ 13.303740][ C0] ? ret_from_fork+0x1b/0x320 [ 13.303743][ C0] ? __lock_release+0x5d/0x170 [ 13.303747][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.303750][ C0] ? __pfx_kthread+0x10/0x10 [ 13.303754][ C0] ret_from_fork+0x240/0x320 [ 13.303756][ C0] ? __pfx_kthread+0x10/0x10 [ 13.303759][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.303765][ C0] [ 13.313632][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.313915][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 14, name: ksoftirqd/0 [ 13.314190][ C0] preempt_count: 100, expected: 0 [ 13.314352][ C0] RCU nest depth: 0, expected: 0 [ 13.314605][ C0] INFO: lockdep is turned off. [ 13.314769][ C0] Preemption disabled at: [ 13.314770][ C0] [] handle_softirqs+0xe5/0x620 [ 13.315089][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.315093][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.315096][ C0] Call Trace: [ 13.315097][ C0] [ 13.315099][ C0] dump_stack_lvl+0xb0/0xd0 [ 13.315105][ C0] __might_resched+0x360/0x5a0 [ 13.315113][ C0] down_write+0x72/0x210 [ 13.315117][ C0] ? __pfx_down_write+0x10/0x10 [ 13.315120][ C0] ? simple_recursive_removal+0x33/0x610 [ 13.315124][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.315130][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.315134][ C0] simple_recursive_removal+0x6a/0x610 [ 13.315137][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.315139][ C0] ? __pfx_remove_one+0x10/0x10 [ 13.315145][ C0] debugfs_remove+0x44/0x70 [ 13.315148][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.315152][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.315155][ C0] ? __sk_destruct+0x383/0x780 [ 13.315160][ C0] ? rcu_do_batch+0x34c/0xf20 [ 13.315164][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.315166][ C0] ? smpboot_thread_fn+0x30a/0x960 [ 13.315169][ C0] ? kthread+0x37e/0x600 [ 13.315172][ C0] ? ret_from_fork+0x240/0x320 [ 13.315176][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 13.315179][ C0] ? migrate_enable+0x1f2/0x270 [ 13.315183][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 13.315189][ C0] __put_net+0x19/0x60 [ 13.315193][ C0] __sk_destruct+0x58a/0x780 [ 13.315197][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.315200][ C0] rcu_do_batch+0x34c/0xf20 [ 13.315205][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.315208][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.315212][ C0] ? note_gp_changes+0x182/0x1e0 [ 13.315215][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.315221][ C0] rcu_core+0x2bb/0x500 [ 13.315226][ C0] handle_softirqs+0x218/0x620 [ 13.315230][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.315234][ C0] run_ksoftirqd+0x3f/0x70 [ 13.315237][ C0] smpboot_thread_fn+0x30a/0x960 [ 13.315240][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.315244][ C0] kthread+0x37e/0x600 [ 13.315247][ C0] ? __pfx_kthread+0x10/0x10 [ 13.315249][ C0] ? ret_from_fork+0x1b/0x320 [ 13.315252][ C0] ? __lock_release+0x5d/0x170 [ 13.315257][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.315260][ C0] ? __pfx_kthread+0x10/0x10 [ 13.315264][ C0] ret_from_fork+0x240/0x320 [ 13.315267][ C0] ? __pfx_kthread+0x10/0x10 [ 13.315269][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.315276][ C0]