[ 13.817802][ C3] [ 13.817934][ C3] ================================ [ 13.818113][ C3] WARNING: inconsistent lock state [ 13.818304][ C3] 6.15.0-virtme #1 Not tainted [ 13.818596][ C3] -------------------------------- [ 13.818877][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.819167][ C3] ksoftirqd/3/32 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.819399][ C3] ffffffffb17c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.819710][ C3] {SOFTIRQ-ON-W} state was registered at: [ 13.819882][ C3] __lock_acquire+0x20b/0x7e0 [ 13.820064][ C3] lock_acquire.part.0+0xb6/0x240 [ 13.820238][ C3] _raw_spin_lock+0x33/0x40 [ 13.820417][ C3] simple_pin_fs+0x24/0x150 [ 13.820595][ C3] start_creating.part.0+0x52/0x310 [ 13.820779][ C3] debugfs_create_dir+0x6a/0x540 [ 13.820958][ C3] component_debug_init+0x17/0x30 [ 13.821140][ C3] do_one_initcall+0x8f/0x1e0 [ 13.821317][ C3] do_initcalls+0x176/0x280 [ 13.821503][ C3] kernel_init_freeable+0x22d/0x300 [ 13.821681][ C3] kernel_init+0x20/0x200 [ 13.821868][ C3] ret_from_fork+0x240/0x320 [ 13.822047][ C3] ret_from_fork_asm+0x1a/0x30 [ 13.822223][ C3] irq event stamp: 216264 [ 13.822370][ C3] hardirqs last enabled at (216264): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.822738][ C3] hardirqs last disabled at (216263): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.823109][ C3] softirqs last enabled at (215876): [] handle_softirqs+0x358/0x620 [ 13.823446][ C3] softirqs last disabled at (215881): [] run_ksoftirqd+0x3f/0x70 [ 13.823765][ C3] [ 13.823765][ C3] other info that might help us debug this: [ 13.824033][ C3] Possible unsafe locking scenario: [ 13.824033][ C3] [ 13.824300][ C3] CPU0 [ 13.824441][ C3] ---- [ 13.824575][ C3] lock(pin_fs_lock); [ 13.824716][ C3] [ 13.824848][ C3] lock(pin_fs_lock); [ 13.824989][ C3] [ 13.824989][ C3] *** DEADLOCK *** [ 13.824989][ C3] [ 13.825269][ C3] 1 lock held by ksoftirqd/3/32: [ 13.825462][ C3] #0: ffffffffb15774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.825798][ C3] [ 13.825798][ C3] stack backtrace: [ 13.826031][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.826036][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.826038][ C3] Call Trace: [ 13.826040][ C3] [ 13.826043][ C3] dump_stack_lvl+0x82/0xd0 [ 13.826050][ C3] print_usage_bug.part.0+0x25f/0x360 [ 13.826055][ C3] mark_lock_irq+0x343/0x400 [ 13.826060][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.826067][ C3] ? save_trace+0x52/0x170 [ 13.826071][ C3] mark_lock+0x174/0x2f0 [ 13.826075][ C3] mark_usage+0x46/0x150 [ 13.826078][ C3] __lock_acquire+0x20b/0x7e0 [ 13.826082][ C3] ? __lock_acquire+0x44d/0x7e0 [ 13.826086][ C3] lock_acquire.part.0+0xb6/0x240 [ 13.826090][ C3] ? simple_pin_fs+0x24/0x150 [ 13.826093][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.826100][ C3] ? lock_acquire+0x10c/0x170 [ 13.826103][ C3] ? simple_pin_fs+0x24/0x150 [ 13.826107][ C3] _raw_spin_lock+0x33/0x40 [ 13.826110][ C3] ? simple_pin_fs+0x24/0x150 [ 13.826113][ C3] simple_pin_fs+0x24/0x150 [ 13.826116][ C3] debugfs_remove+0x35/0x70 [ 13.826119][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 13.826126][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.826128][ C3] ? __sk_destruct+0x383/0x780 [ 13.826135][ C3] ? rcu_do_batch+0x34c/0xf20 [ 13.826138][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.826141][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 13.826146][ C3] ? kthread+0x37e/0x600 [ 13.826152][ C3] ? ret_from_fork+0x240/0x320 [ 13.826156][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 13.826159][ C3] ? migrate_enable+0x1f2/0x270 [ 13.826165][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 13.826171][ C3] __put_net+0x19/0x60 [ 13.826176][ C3] __sk_destruct+0x58a/0x780 [ 13.826180][ C3] ? rcu_do_batch+0x34a/0xf20 [ 13.826183][ C3] rcu_do_batch+0x34c/0xf20 [ 13.826188][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.826192][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.826195][ C3] ? note_gp_changes+0x182/0x1e0 [ 13.826198][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.826205][ C3] rcu_core+0x2bb/0x500 [ 13.826211][ C3] handle_softirqs+0x218/0x620 [ 13.826215][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.826219][ C3] run_ksoftirqd+0x3f/0x70 [ 13.826222][ C3] smpboot_thread_fn+0x30a/0x960 [ 13.826225][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.826229][ C3] kthread+0x37e/0x600 [ 13.826232][ C3] ? __pfx_kthread+0x10/0x10 [ 13.826234][ C3] ? ret_from_fork+0x1b/0x320 [ 13.826237][ C3] ? __lock_release+0x5d/0x170 [ 13.826241][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.826244][ C3] ? __pfx_kthread+0x10/0x10 [ 13.826247][ C3] ret_from_fork+0x240/0x320 [ 13.826250][ C3] ? __pfx_kthread+0x10/0x10 [ 13.826253][ C3] ret_from_fork_asm+0x1a/0x30 [ 13.826260][ C3] [ 13.836617][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.836911][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 13.837201][ C3] preempt_count: 100, expected: 0 [ 13.837367][ C3] RCU nest depth: 0, expected: 0 [ 13.837544][ C3] INFO: lockdep is turned off. [ 13.837719][ C3] Preemption disabled at: [ 13.837721][ C3] [] handle_softirqs+0xe5/0x620 [ 13.838057][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.838062][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.838064][ C3] Call Trace: [ 13.838066][ C3] [ 13.838068][ C3] dump_stack_lvl+0xb0/0xd0 [ 13.838075][ C3] __might_resched+0x360/0x5a0 [ 13.838084][ C3] down_write+0x72/0x210 [ 13.838088][ C3] ? __pfx_down_write+0x10/0x10 [ 13.838091][ C3] ? simple_recursive_removal+0x33/0x610 [ 13.838096][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.838102][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 13.838106][ C3] simple_recursive_removal+0x6a/0x610 [ 13.838109][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 13.838111][ C3] ? __pfx_remove_one+0x10/0x10 [ 13.838117][ C3] debugfs_remove+0x44/0x70 [ 13.838120][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 13.838125][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.838127][ C3] ? __sk_destruct+0x383/0x780 [ 13.838132][ C3] ? rcu_do_batch+0x34c/0xf20 [ 13.838136][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.838139][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 13.838141][ C3] ? kthread+0x37e/0x600 [ 13.838145][ C3] ? ret_from_fork+0x240/0x320 [ 13.838149][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 13.838153][ C3] ? migrate_enable+0x1f2/0x270 [ 13.838157][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 13.838163][ C3] __put_net+0x19/0x60 [ 13.838167][ C3] __sk_destruct+0x58a/0x780 [ 13.838171][ C3] ? rcu_do_batch+0x34a/0xf20 [ 13.838174][ C3] rcu_do_batch+0x34c/0xf20 [ 13.838179][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.838183][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.838186][ C3] ? note_gp_changes+0x182/0x1e0 [ 13.838189][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.838195][ C3] rcu_core+0x2bb/0x500 [ 13.838199][ C3] handle_softirqs+0x218/0x620 [ 13.838204][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.838208][ C3] run_ksoftirqd+0x3f/0x70 [ 13.838211][ C3] smpboot_thread_fn+0x30a/0x960 [ 13.838213][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.838217][ C3] kthread+0x37e/0x600 [ 13.838220][ C3] ? __pfx_kthread+0x10/0x10 [ 13.838222][ C3] ? ret_from_fork+0x1b/0x320 [ 13.838225][ C3] ? __lock_release+0x5d/0x170 [ 13.838230][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.838234][ C3] ? __pfx_kthread+0x10/0x10 [ 13.838237][ C3] ret_from_fork+0x240/0x320 [ 13.838240][ C3] ? __pfx_kthread+0x10/0x10 [ 13.838243][ C3] ret_from_fork_asm+0x1a/0x30 [ 13.838249][ C3]