[ 14.102041][ C0] [ 14.102278][ C0] ================================ [ 14.102590][ C0] WARNING: inconsistent lock state [ 14.102900][ C0] 6.15.0-virtme #1 Not tainted [ 14.103217][ C0] -------------------------------- [ 14.103521][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.103933][ C0] ksoftirqd/0/14 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.104321][ C0] ffffffff8b9c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.104873][ C0] {SOFTIRQ-ON-W} state was registered at: [ 14.105179][ C0] __lock_acquire+0x20b/0x7e0 [ 14.105494][ C0] lock_acquire.part.0+0xb6/0x240 [ 14.105844][ C0] _raw_spin_lock+0x33/0x40 [ 14.106168][ C0] simple_pin_fs+0x24/0x150 [ 14.106481][ C0] start_creating.part.0+0x52/0x310 [ 14.106802][ C0] debugfs_create_dir+0x6a/0x540 [ 14.107120][ C0] component_debug_init+0x17/0x30 [ 14.107428][ C0] do_one_initcall+0x8f/0x1e0 [ 14.107739][ C0] do_initcalls+0x176/0x280 [ 14.108054][ C0] kernel_init_freeable+0x22d/0x300 [ 14.108365][ C0] kernel_init+0x20/0x200 [ 14.108700][ C0] ret_from_fork+0x240/0x320 [ 14.108999][ C0] ret_from_fork_asm+0x1a/0x30 [ 14.109304][ C0] irq event stamp: 197562 [ 14.109548][ C0] hardirqs last enabled at (197562): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.110233][ C0] hardirqs last disabled at (197561): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.110850][ C0] softirqs last enabled at (196668): [] handle_softirqs+0x358/0x620 [ 14.111362][ C0] softirqs last disabled at (196677): [] run_ksoftirqd+0x3f/0x70 [ 14.111905][ C0] [ 14.111905][ C0] other info that might help us debug this: [ 14.112364][ C0] Possible unsafe locking scenario: [ 14.112364][ C0] [ 14.112815][ C0] CPU0 [ 14.113044][ C0] ---- [ 14.113279][ C0] lock(pin_fs_lock); [ 14.113532][ C0] [ 14.113766][ C0] lock(pin_fs_lock); [ 14.113990][ C0] [ 14.113990][ C0] *** DEADLOCK *** [ 14.113990][ C0] [ 14.114433][ C0] 1 lock held by ksoftirqd/0/14: [ 14.114750][ C0] #0: ffffffff8b7774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.115326][ C0] [ 14.115326][ C0] stack backtrace: [ 14.115738][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.115746][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.115750][ C0] Call Trace: [ 14.115753][ C0] [ 14.115758][ C0] dump_stack_lvl+0x82/0xd0 [ 14.115770][ C0] print_usage_bug.part.0+0x25f/0x360 [ 14.115780][ C0] mark_lock_irq+0x343/0x400 [ 14.115789][ C0] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.115800][ C0] ? save_trace+0x52/0x170 [ 14.115807][ C0] mark_lock+0x174/0x2f0 [ 14.115814][ C0] mark_usage+0x46/0x150 [ 14.115820][ C0] __lock_acquire+0x20b/0x7e0 [ 14.115825][ C0] ? __lock_acquire+0x44d/0x7e0 [ 14.115833][ C0] lock_acquire.part.0+0xb6/0x240 [ 14.115839][ C0] ? simple_pin_fs+0x24/0x150 [ 14.115846][ C0] ? rcu_is_watching+0x12/0xc0 [ 14.115855][ C0] ? lock_acquire+0x10c/0x170 [ 14.115859][ C0] ? simple_pin_fs+0x24/0x150 [ 14.115865][ C0] _raw_spin_lock+0x33/0x40 [ 14.115871][ C0] ? simple_pin_fs+0x24/0x150 [ 14.115875][ C0] simple_pin_fs+0x24/0x150 [ 14.115881][ C0] debugfs_remove+0x35/0x70 [ 14.115888][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 14.115898][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.115903][ C0] ? __sk_destruct+0x383/0x780 [ 14.115912][ C0] ? rcu_do_batch+0x34c/0xf20 [ 14.115917][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.115922][ C0] ? smpboot_thread_fn+0x30a/0x960 [ 14.115928][ C0] ? kthread+0x37e/0x600 [ 14.115935][ C0] ? ret_from_fork+0x240/0x320 [ 14.115942][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 14.115948][ C0] ? migrate_enable+0x1f2/0x270 [ 14.115957][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 14.115967][ C0] __put_net+0x19/0x60 [ 14.115975][ C0] __sk_destruct+0x58a/0x780 [ 14.115982][ C0] ? rcu_do_batch+0x34a/0xf20 [ 14.115987][ C0] rcu_do_batch+0x34c/0xf20 [ 14.115997][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.116004][ C0] ? rcu_is_watching+0x12/0xc0 [ 14.116009][ C0] ? note_gp_changes+0x182/0x1e0 [ 14.116014][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.116025][ C0] rcu_core+0x2bb/0x500 [ 14.116035][ C0] handle_softirqs+0x218/0x620 [ 14.116045][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.116052][ C0] run_ksoftirqd+0x3f/0x70 [ 14.116057][ C0] smpboot_thread_fn+0x30a/0x960 [ 14.116062][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.116067][ C0] kthread+0x37e/0x600 [ 14.116073][ C0] ? __pfx_kthread+0x10/0x10 [ 14.116077][ C0] ? ret_from_fork+0x1b/0x320 [ 14.116082][ C0] ? __lock_release+0x5d/0x170 [ 14.116088][ C0] ? rcu_is_watching+0x12/0xc0 [ 14.116094][ C0] ? __pfx_kthread+0x10/0x10 [ 14.116101][ C0] ret_from_fork+0x240/0x320 [ 14.116105][ C0] ? __pfx_kthread+0x10/0x10 [ 14.116110][ C0] ret_from_fork_asm+0x1a/0x30 [ 14.116122][ C0] [ 14.136010][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.136521][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 14, name: ksoftirqd/0 [ 14.137362][ C0] preempt_count: 100, expected: 0 [ 14.137877][ C0] RCU nest depth: 0, expected: 0 [ 14.138186][ C0] INFO: lockdep is turned off. [ 14.138463][ C0] Preemption disabled at: [ 14.138466][ C0] [] handle_softirqs+0xe5/0x620 [ 14.139450][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.139459][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.139462][ C0] Call Trace: [ 14.139466][ C0] [ 14.139470][ C0] dump_stack_lvl+0xb0/0xd0 [ 14.139481][ C0] __might_resched+0x360/0x5a0 [ 14.139495][ C0] down_write+0x72/0x210 [ 14.139503][ C0] ? __pfx_down_write+0x10/0x10 [ 14.139508][ C0] ? simple_recursive_removal+0x33/0x610 [ 14.139516][ C0] ? rcu_is_watching+0x12/0xc0 [ 14.139525][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 14.139533][ C0] simple_recursive_removal+0x6a/0x610 [ 14.139538][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 14.139543][ C0] ? __pfx_remove_one+0x10/0x10 [ 14.139551][ C0] debugfs_remove+0x44/0x70 [ 14.139556][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 14.139563][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.139568][ C0] ? __sk_destruct+0x383/0x780 [ 14.139592][ C0] ? rcu_do_batch+0x34c/0xf20 [ 14.139601][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.139604][ C0] ? smpboot_thread_fn+0x30a/0x960 [ 14.139609][ C0] ? kthread+0x37e/0x600 [ 14.139614][ C0] ? ret_from_fork+0x240/0x320 [ 14.139622][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 14.139627][ C0] ? migrate_enable+0x1f2/0x270 [ 14.139633][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 14.139641][ C0] __put_net+0x19/0x60 [ 14.139647][ C0] __sk_destruct+0x58a/0x780 [ 14.139654][ C0] ? rcu_do_batch+0x34a/0xf20 [ 14.139659][ C0] rcu_do_batch+0x34c/0xf20 [ 14.139668][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.139675][ C0] ? rcu_is_watching+0x12/0xc0 [ 14.139680][ C0] ? note_gp_changes+0x182/0x1e0 [ 14.139686][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.139695][ C0] rcu_core+0x2bb/0x500 [ 14.139702][ C0] handle_softirqs+0x218/0x620 [ 14.139711][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.139718][ C0] run_ksoftirqd+0x3f/0x70 [ 14.139723][ C0] smpboot_thread_fn+0x30a/0x960 [ 14.139729][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.139735][ C0] kthread+0x37e/0x600 [ 14.139741][ C0] ? __pfx_kthread+0x10/0x10 [ 14.139745][ C0] ? ret_from_fork+0x1b/0x320 [ 14.139750][ C0] ? __lock_release+0x5d/0x170 [ 14.139759][ C0] ? rcu_is_watching+0x12/0xc0 [ 14.139765][ C0] ? __pfx_kthread+0x10/0x10 [ 14.139771][ C0] ret_from_fork+0x240/0x320 [ 14.139775][ C0] ? __pfx_kthread+0x10/0x10 [ 14.139779][ C0] ret_from_fork_asm+0x1a/0x30 [ 14.139792][ C0]