[ 14.167998][ C3] [ 14.168138][ C3] ================================ [ 14.168328][ C3] WARNING: inconsistent lock state [ 14.168510][ C3] 6.15.0-virtme #1 Not tainted [ 14.168693][ C3] -------------------------------- [ 14.168874][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.169090][ C3] ksoftirqd/3/32 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.169304][ C3] ffffffffbc9c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.169621][ C3] {SOFTIRQ-ON-W} state was registered at: [ 14.169811][ C3] __lock_acquire+0x20b/0x7e0 [ 14.169990][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.170160][ C3] _raw_spin_lock+0x33/0x40 [ 14.170332][ C3] simple_pin_fs+0x24/0x150 [ 14.170513][ C3] start_creating.part.0+0x52/0x310 [ 14.170702][ C3] debugfs_create_dir+0x6a/0x540 [ 14.170878][ C3] component_debug_init+0x17/0x30 [ 14.171051][ C3] do_one_initcall+0x8f/0x1e0 [ 14.171227][ C3] do_initcalls+0x176/0x280 [ 14.171400][ C3] kernel_init_freeable+0x22d/0x300 [ 14.171586][ C3] kernel_init+0x20/0x200 [ 14.171755][ C3] ret_from_fork+0x240/0x320 [ 14.171930][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.172101][ C3] irq event stamp: 190306 [ 14.172230][ C3] hardirqs last enabled at (190306): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.172587][ C3] hardirqs last disabled at (190305): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.172930][ C3] softirqs last enabled at (190186): [] handle_softirqs+0x358/0x620 [ 14.173236][ C3] softirqs last disabled at (190191): [] run_ksoftirqd+0x3f/0x70 [ 14.173538][ C3] [ 14.173538][ C3] other info that might help us debug this: [ 14.173795][ C3] Possible unsafe locking scenario: [ 14.173795][ C3] [ 14.174081][ C3] CPU0 [ 14.174208][ C3] ---- [ 14.174337][ C3] lock(pin_fs_lock); [ 14.174470][ C3] [ 14.174619][ C3] lock(pin_fs_lock); [ 14.174756][ C3] [ 14.174756][ C3] *** DEADLOCK *** [ 14.174756][ C3] [ 14.175016][ C3] 1 lock held by ksoftirqd/3/32: [ 14.175196][ C3] #0: ffffffffbc7774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.175517][ C3] [ 14.175517][ C3] stack backtrace: [ 14.175766][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.175773][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.175775][ C3] Call Trace: [ 14.175777][ C3] [ 14.175780][ C3] dump_stack_lvl+0x82/0xd0 [ 14.175787][ C3] print_usage_bug.part.0+0x25f/0x360 [ 14.175793][ C3] mark_lock_irq+0x343/0x400 [ 14.175798][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.175803][ C3] ? save_trace+0x52/0x170 [ 14.175807][ C3] mark_lock+0x174/0x2f0 [ 14.175811][ C3] mark_usage+0x46/0x150 [ 14.175815][ C3] __lock_acquire+0x20b/0x7e0 [ 14.175818][ C3] ? __lock_acquire+0x44d/0x7e0 [ 14.175823][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.175826][ C3] ? simple_pin_fs+0x24/0x150 [ 14.175830][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.175836][ C3] ? lock_acquire+0x10c/0x170 [ 14.175838][ C3] ? simple_pin_fs+0x24/0x150 [ 14.175842][ C3] _raw_spin_lock+0x33/0x40 [ 14.175846][ C3] ? simple_pin_fs+0x24/0x150 [ 14.175848][ C3] simple_pin_fs+0x24/0x150 [ 14.175851][ C3] debugfs_remove+0x35/0x70 [ 14.175856][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.175863][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.175867][ C3] ? __sk_destruct+0x383/0x780 [ 14.175873][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.175876][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.175878][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 14.175881][ C3] ? kthread+0x37e/0x600 [ 14.175885][ C3] ? ret_from_fork+0x240/0x320 [ 14.175889][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 14.175892][ C3] ? migrate_enable+0x1f2/0x270 [ 14.175897][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 14.175903][ C3] __put_net+0x19/0x60 [ 14.175907][ C3] __sk_destruct+0x58a/0x780 [ 14.175911][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.175914][ C3] rcu_do_batch+0x34c/0xf20 [ 14.175917][ C3] ? sched_balance_domains+0x273/0xc80 [ 14.175923][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.175927][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.175930][ C3] ? note_gp_changes+0x182/0x1e0 [ 14.175933][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.175939][ C3] rcu_core+0x2bb/0x500 [ 14.175944][ C3] handle_softirqs+0x218/0x620 [ 14.175949][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.175953][ C3] run_ksoftirqd+0x3f/0x70 [ 14.175956][ C3] smpboot_thread_fn+0x30a/0x960 [ 14.175959][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.175963][ C3] kthread+0x37e/0x600 [ 14.175966][ C3] ? __pfx_kthread+0x10/0x10 [ 14.175968][ C3] ? ret_from_fork+0x1b/0x320 [ 14.175971][ C3] ? __lock_release+0x5d/0x170 [ 14.175975][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.175978][ C3] ? __pfx_kthread+0x10/0x10 [ 14.175981][ C3] ret_from_fork+0x240/0x320 [ 14.175984][ C3] ? __pfx_kthread+0x10/0x10 [ 14.175987][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.175993][ C3] [ 14.186336][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.186629][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 14.186906][ C3] preempt_count: 100, expected: 0 [ 14.187070][ C3] RCU nest depth: 0, expected: 0 [ 14.187270][ C3] INFO: lockdep is turned off. [ 14.187425][ C3] Preemption disabled at: [ 14.187427][ C3] [] handle_softirqs+0xe5/0x620 [ 14.187798][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.187803][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.187806][ C3] Call Trace: [ 14.187807][ C3] [ 14.187810][ C3] dump_stack_lvl+0xb0/0xd0 [ 14.187817][ C3] __might_resched+0x360/0x5a0 [ 14.187826][ C3] down_write+0x72/0x210 [ 14.187830][ C3] ? __pfx_down_write+0x10/0x10 [ 14.187833][ C3] ? simple_recursive_removal+0x33/0x610 [ 14.187838][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.187844][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.187848][ C3] simple_recursive_removal+0x6a/0x610 [ 14.187851][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.187853][ C3] ? __pfx_remove_one+0x10/0x10 [ 14.187860][ C3] debugfs_remove+0x44/0x70 [ 14.187863][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.187868][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.187870][ C3] ? __sk_destruct+0x383/0x780 [ 14.187875][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.187879][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.187882][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 14.187885][ C3] ? kthread+0x37e/0x600 [ 14.187888][ C3] ? ret_from_fork+0x240/0x320 [ 14.187893][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 14.187897][ C3] ? migrate_enable+0x1f2/0x270 [ 14.187901][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 14.187907][ C3] __put_net+0x19/0x60 [ 14.187911][ C3] __sk_destruct+0x58a/0x780 [ 14.187915][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.187918][ C3] rcu_do_batch+0x34c/0xf20 [ 14.187921][ C3] ? sched_balance_domains+0x273/0xc80 [ 14.187927][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.187931][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.187934][ C3] ? note_gp_changes+0x182/0x1e0 [ 14.187937][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.187943][ C3] rcu_core+0x2bb/0x500 [ 14.187947][ C3] handle_softirqs+0x218/0x620 [ 14.187952][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.187956][ C3] run_ksoftirqd+0x3f/0x70 [ 14.187959][ C3] smpboot_thread_fn+0x30a/0x960 [ 14.187962][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.187965][ C3] kthread+0x37e/0x600 [ 14.187968][ C3] ? __pfx_kthread+0x10/0x10 [ 14.187970][ C3] ? ret_from_fork+0x1b/0x320 [ 14.187973][ C3] ? __lock_release+0x5d/0x170 [ 14.187978][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.187982][ C3] ? __pfx_kthread+0x10/0x10 [ 14.187985][ C3] ret_from_fork+0x240/0x320 [ 14.187988][ C3] ? __pfx_kthread+0x10/0x10 [ 14.187991][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.187997][ C3]