[ 12.829036][ C1] [ 12.829159][ C1] ================================ [ 12.829334][ C1] WARNING: inconsistent lock state [ 12.829505][ C1] 6.15.0-virtme #1 Not tainted [ 12.829675][ C1] -------------------------------- [ 12.829845][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.830063][ C1] ksoftirqd/1/22 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.830277][ C1] ffffffffbbbc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.830584][ C1] {SOFTIRQ-ON-W} state was registered at: [ 12.830755][ C1] __lock_acquire+0x20b/0x7e0 [ 12.830929][ C1] lock_acquire.part.0+0xb6/0x240 [ 12.831103][ C1] _raw_spin_lock+0x33/0x40 [ 12.831277][ C1] simple_pin_fs+0x24/0x150 [ 12.831452][ C1] start_creating.part.0+0x52/0x310 [ 12.831625][ C1] debugfs_create_dir+0x6a/0x540 [ 12.831796][ C1] component_debug_init+0x17/0x30 [ 12.831972][ C1] do_one_initcall+0x8f/0x1e0 [ 12.832145][ C1] do_initcalls+0x176/0x280 [ 12.832322][ C1] kernel_init_freeable+0x22d/0x300 [ 12.832495][ C1] kernel_init+0x20/0x200 [ 12.832673][ C1] ret_from_fork+0x240/0x320 [ 12.832847][ C1] ret_from_fork_asm+0x1a/0x30 [ 12.833023][ C1] irq event stamp: 288914 [ 12.833152][ C1] hardirqs last enabled at (288914): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.833494][ C1] hardirqs last disabled at (288913): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.833834][ C1] softirqs last enabled at (288888): [] handle_softirqs+0x358/0x620 [ 12.834140][ C1] softirqs last disabled at (288893): [] run_ksoftirqd+0x3f/0x70 [ 12.834438][ C1] [ 12.834438][ C1] other info that might help us debug this: [ 12.834689][ C1] Possible unsafe locking scenario: [ 12.834689][ C1] [ 12.834944][ C1] CPU0 [ 12.835070][ C1] ---- [ 12.835200][ C1] lock(pin_fs_lock); [ 12.835330][ C1] [ 12.835457][ C1] lock(pin_fs_lock); [ 12.835592][ C1] [ 12.835592][ C1] *** DEADLOCK *** [ 12.835592][ C1] [ 12.835848][ C1] 1 lock held by ksoftirqd/1/22: [ 12.836022][ C1] #0: ffffffffbb9774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.836330][ C1] [ 12.836330][ C1] stack backtrace: [ 12.836542][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.836546][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.836548][ C1] Call Trace: [ 12.836550][ C1] [ 12.836552][ C1] dump_stack_lvl+0x82/0xd0 [ 12.836558][ C1] print_usage_bug.part.0+0x25f/0x360 [ 12.836563][ C1] mark_lock_irq+0x343/0x400 [ 12.836567][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 12.836572][ C1] ? save_trace+0x52/0x170 [ 12.836576][ C1] mark_lock+0x174/0x2f0 [ 12.836580][ C1] mark_usage+0x46/0x150 [ 12.836584][ C1] __lock_acquire+0x20b/0x7e0 [ 12.836587][ C1] ? __lock_acquire+0x44d/0x7e0 [ 12.836591][ C1] lock_acquire.part.0+0xb6/0x240 [ 12.836595][ C1] ? simple_pin_fs+0x24/0x150 [ 12.836598][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.836603][ C1] ? lock_acquire+0x10c/0x170 [ 12.836606][ C1] ? simple_pin_fs+0x24/0x150 [ 12.836609][ C1] _raw_spin_lock+0x33/0x40 [ 12.836613][ C1] ? simple_pin_fs+0x24/0x150 [ 12.836615][ C1] simple_pin_fs+0x24/0x150 [ 12.836618][ C1] debugfs_remove+0x35/0x70 [ 12.836621][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 12.836626][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.836629][ C1] ? __sk_destruct+0x383/0x780 [ 12.836634][ C1] ? rcu_do_batch+0x34c/0xf20 [ 12.836637][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.836640][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 12.836643][ C1] ? kthread+0x37e/0x600 [ 12.836646][ C1] ? ret_from_fork+0x240/0x320 [ 12.836650][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 12.836652][ C1] ? migrate_enable+0x1f2/0x270 [ 12.836656][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 12.836662][ C1] __put_net+0x19/0x60 [ 12.836665][ C1] __sk_destruct+0x58a/0x780 [ 12.836670][ C1] ? rcu_do_batch+0x34a/0xf20 [ 12.836672][ C1] rcu_do_batch+0x34c/0xf20 [ 12.836677][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.836681][ C1] ? __lock_release+0x5d/0x170 [ 12.836684][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.836687][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.836692][ C1] rcu_core+0x2bb/0x500 [ 12.836697][ C1] handle_softirqs+0x218/0x620 [ 12.836701][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 12.836705][ C1] run_ksoftirqd+0x3f/0x70 [ 12.836708][ C1] smpboot_thread_fn+0x30a/0x960 [ 12.836711][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 12.836714][ C1] kthread+0x37e/0x600 [ 12.836717][ C1] ? __pfx_kthread+0x10/0x10 [ 12.836720][ C1] ? ret_from_fork+0x1b/0x320 [ 12.836722][ C1] ? __lock_release+0x5d/0x170 [ 12.836726][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.836729][ C1] ? __pfx_kthread+0x10/0x10 [ 12.836733][ C1] ret_from_fork+0x240/0x320 [ 12.836736][ C1] ? __pfx_kthread+0x10/0x10 [ 12.836738][ C1] ret_from_fork_asm+0x1a/0x30 [ 12.836745][ C1] [ 12.847340][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.847722][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 12.848000][ C1] preempt_count: 100, expected: 0 [ 12.848157][ C1] RCU nest depth: 0, expected: 0 [ 12.848313][ C1] INFO: lockdep is turned off. [ 12.848476][ C1] Preemption disabled at: [ 12.848478][ C1] [] handle_softirqs+0xe5/0x620 [ 12.848800][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.848804][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.848806][ C1] Call Trace: [ 12.848807][ C1] [ 12.848809][ C1] dump_stack_lvl+0xb0/0xd0 [ 12.848815][ C1] __might_resched+0x360/0x5a0 [ 12.848822][ C1] down_write+0x72/0x210 [ 12.848826][ C1] ? __pfx_down_write+0x10/0x10 [ 12.848829][ C1] ? simple_recursive_removal+0x33/0x610 [ 12.848833][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.848838][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 12.848842][ C1] simple_recursive_removal+0x6a/0x610 [ 12.848845][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 12.848847][ C1] ? __pfx_remove_one+0x10/0x10 [ 12.848853][ C1] debugfs_remove+0x44/0x70 [ 12.848856][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 12.848860][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.848862][ C1] ? __sk_destruct+0x383/0x780 [ 12.848867][ C1] ? rcu_do_batch+0x34c/0xf20 [ 12.848870][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.848873][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 12.848875][ C1] ? kthread+0x37e/0x600 [ 12.848878][ C1] ? ret_from_fork+0x240/0x320 [ 12.848882][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 12.848885][ C1] ? migrate_enable+0x1f2/0x270 [ 12.848889][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 12.848894][ C1] __put_net+0x19/0x60 [ 12.848898][ C1] __sk_destruct+0x58a/0x780 [ 12.848902][ C1] ? rcu_do_batch+0x34a/0xf20 [ 12.848905][ C1] rcu_do_batch+0x34c/0xf20 [ 12.848910][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.848913][ C1] ? __lock_release+0x5d/0x170 [ 12.848918][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.848921][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.848926][ C1] rcu_core+0x2bb/0x500 [ 12.848930][ C1] handle_softirqs+0x218/0x620 [ 12.848935][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 12.848939][ C1] run_ksoftirqd+0x3f/0x70 [ 12.848942][ C1] smpboot_thread_fn+0x30a/0x960 [ 12.848945][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 12.848948][ C1] kthread+0x37e/0x600 [ 12.848951][ C1] ? __pfx_kthread+0x10/0x10 [ 12.848954][ C1] ? ret_from_fork+0x1b/0x320 [ 12.848957][ C1] ? __lock_release+0x5d/0x170 [ 12.848961][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.848964][ C1] ? __pfx_kthread+0x10/0x10 [ 12.848968][ C1] ret_from_fork+0x240/0x320 [ 12.848971][ C1] ? __pfx_kthread+0x10/0x10 [ 12.848973][ C1] ret_from_fork_asm+0x1a/0x30 [ 12.848980][ C1]