[ 13.389852][ C1] [ 13.389994][ C1] ================================ [ 13.390183][ C1] WARNING: inconsistent lock state [ 13.390366][ C1] 6.15.0-rc7-virtme #1 Not tainted [ 13.390554][ C1] -------------------------------- [ 13.390738][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.390964][ C1] ksoftirqd/1/22 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.391196][ C1] ffffffffafdbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.391526][ C1] {SOFTIRQ-ON-W} state was registered at: [ 13.391708][ C1] __lock_acquire+0x3eb/0x9d0 [ 13.391899][ C1] lock_acquire.part.0+0xb6/0x240 [ 13.392083][ C1] _raw_spin_lock+0x33/0x40 [ 13.392284][ C1] simple_pin_fs+0x24/0x150 [ 13.392466][ C1] start_creating.part.0+0x3f/0x2f0 [ 13.392655][ C1] debugfs_create_dir+0x6a/0x540 [ 13.392840][ C1] component_debug_init+0x17/0x30 [ 13.393025][ C1] do_one_initcall+0x8f/0x1e0 [ 13.393234][ C1] do_initcalls+0x176/0x280 [ 13.393419][ C1] kernel_init_freeable+0x22d/0x300 [ 13.393606][ C1] kernel_init+0x20/0x200 [ 13.393786][ C1] ret_from_fork+0x31/0x70 [ 13.393972][ C1] ret_from_fork_asm+0x1a/0x30 [ 13.394154][ C1] irq event stamp: 242178 [ 13.394293][ C1] hardirqs last enabled at (242178): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.394671][ C1] hardirqs last disabled at (242177): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.395055][ C1] softirqs last enabled at (241702): [] handle_softirqs+0x358/0x620 [ 13.395395][ C1] softirqs last disabled at (241707): [] run_ksoftirqd+0x3f/0x70 [ 13.395724][ C1] [ 13.395724][ C1] other info that might help us debug this: [ 13.396001][ C1] Possible unsafe locking scenario: [ 13.396001][ C1] [ 13.396282][ C1] CPU0 [ 13.396422][ C1] ---- [ 13.396567][ C1] lock(pin_fs_lock); [ 13.396712][ C1] [ 13.396853][ C1] lock(pin_fs_lock); [ 13.397001][ C1] [ 13.397001][ C1] *** DEADLOCK *** [ 13.397001][ C1] [ 13.397281][ C1] 1 lock held by ksoftirqd/1/22: [ 13.397475][ C1] #0: ffffffffafb749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.397822][ C1] [ 13.397822][ C1] stack backtrace: [ 13.398063][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.398069][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.398071][ C1] Call Trace: [ 13.398073][ C1] [ 13.398076][ C1] dump_stack_lvl+0x82/0xd0 [ 13.398084][ C1] print_usage_bug.part.0+0x25f/0x360 [ 13.398089][ C1] mark_lock_irq+0x343/0x400 [ 13.398093][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.398098][ C1] ? save_trace+0x52/0x170 [ 13.398105][ C1] mark_lock+0x174/0x2f0 [ 13.398108][ C1] mark_usage+0x46/0x150 [ 13.398111][ C1] __lock_acquire+0x3eb/0x9d0 [ 13.398116][ C1] lock_acquire.part.0+0xb6/0x240 [ 13.398119][ C1] ? simple_pin_fs+0x24/0x150 [ 13.398124][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.398127][ C1] ? lock_acquire+0x10c/0x170 [ 13.398129][ C1] ? simple_pin_fs+0x24/0x150 [ 13.398133][ C1] _raw_spin_lock+0x33/0x40 [ 13.398136][ C1] ? simple_pin_fs+0x24/0x150 [ 13.398139][ C1] simple_pin_fs+0x24/0x150 [ 13.398142][ C1] debugfs_remove+0x35/0x70 [ 13.398146][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 13.398153][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.398157][ C1] ? __sk_destruct+0x383/0x780 [ 13.398164][ C1] ? rcu_do_batch+0x34f/0xf20 [ 13.398167][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.398171][ C1] ? smpboot_thread_fn+0x307/0x960 [ 13.398177][ C1] ? kthread+0x37b/0x600 [ 13.398182][ C1] ? ret_from_fork+0x31/0x70 [ 13.398185][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 13.398188][ C1] ? migrate_enable+0x1f2/0x270 [ 13.398192][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 13.398197][ C1] __put_net+0x19/0x60 [ 13.398202][ C1] __sk_destruct+0x58a/0x780 [ 13.398206][ C1] ? rcu_do_batch+0x34a/0xf20 [ 13.398209][ C1] rcu_do_batch+0x34f/0xf20 [ 13.398213][ C1] ? sched_balance_domains+0x273/0xc80 [ 13.398218][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.398223][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.398225][ C1] ? note_gp_changes+0x182/0x1e0 [ 13.398228][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.398235][ C1] rcu_core+0x2bb/0x500 [ 13.398239][ C1] handle_softirqs+0x218/0x620 [ 13.398243][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.398247][ C1] run_ksoftirqd+0x3f/0x70 [ 13.398249][ C1] smpboot_thread_fn+0x307/0x960 [ 13.398253][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.398257][ C1] kthread+0x37b/0x600 [ 13.398261][ C1] ? __pfx_kthread+0x10/0x10 [ 13.398264][ C1] ? ret_from_fork+0x1b/0x70 [ 13.398266][ C1] ? __lock_release+0x5d/0x170 [ 13.398270][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.398272][ C1] ? __pfx_kthread+0x10/0x10 [ 13.398276][ C1] ret_from_fork+0x31/0x70 [ 13.398279][ C1] ? __pfx_kthread+0x10/0x10 [ 13.398282][ C1] ret_from_fork_asm+0x1a/0x30 [ 13.398289][ C1] [ 13.408761][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.409053][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 13.409356][ C1] preempt_count: 100, expected: 0 [ 13.409534][ C1] RCU nest depth: 0, expected: 0 [ 13.409695][ C1] INFO: lockdep is turned off. [ 13.409862][ C1] Preemption disabled at: [ 13.409864][ C1] [] handle_softirqs+0xe5/0x620 [ 13.410194][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.410199][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.410200][ C1] Call Trace: [ 13.410202][ C1] [ 13.410204][ C1] dump_stack_lvl+0xb0/0xd0 [ 13.410212][ C1] __might_resched+0x360/0x5a0 [ 13.410220][ C1] down_write+0x72/0x210 [ 13.410225][ C1] ? __pfx_down_write+0x10/0x10 [ 13.410227][ C1] ? simple_recursive_removal+0x3a/0x860 [ 13.410232][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.410237][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 13.410242][ C1] simple_recursive_removal+0x166/0x860 [ 13.410245][ C1] ? __pfx_remove_one+0x10/0x10 [ 13.410250][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 13.410255][ C1] debugfs_remove+0x44/0x70 [ 13.410258][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 13.410265][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.410269][ C1] ? __sk_destruct+0x383/0x780 [ 13.410273][ C1] ? rcu_do_batch+0x34f/0xf20 [ 13.410278][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.410282][ C1] ? smpboot_thread_fn+0x307/0x960 [ 13.410287][ C1] ? kthread+0x37b/0x600 [ 13.410292][ C1] ? ret_from_fork+0x31/0x70 [ 13.410296][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 13.410301][ C1] ? migrate_enable+0x1f2/0x270 [ 13.410304][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 13.410310][ C1] __put_net+0x19/0x60 [ 13.410313][ C1] __sk_destruct+0x58a/0x780 [ 13.410317][ C1] ? rcu_do_batch+0x34a/0xf20 [ 13.410321][ C1] rcu_do_batch+0x34f/0xf20 [ 13.410325][ C1] ? sched_balance_domains+0x273/0xc80 [ 13.410330][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.410336][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.410339][ C1] ? note_gp_changes+0x182/0x1e0 [ 13.410341][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.410348][ C1] rcu_core+0x2bb/0x500 [ 13.410352][ C1] handle_softirqs+0x218/0x620 [ 13.410356][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.410360][ C1] run_ksoftirqd+0x3f/0x70 [ 13.410362][ C1] smpboot_thread_fn+0x307/0x960 [ 13.410366][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.410370][ C1] kthread+0x37b/0x600 [ 13.410374][ C1] ? __pfx_kthread+0x10/0x10 [ 13.410377][ C1] ? ret_from_fork+0x1b/0x70 [ 13.410379][ C1] ? __lock_release+0x5d/0x170 [ 13.410383][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.410385][ C1] ? __pfx_kthread+0x10/0x10 [ 13.410389][ C1] ret_from_fork+0x31/0x70 [ 13.410392][ C1] ? __pfx_kthread+0x10/0x10 [ 13.410395][ C1] ret_from_fork_asm+0x1a/0x30 [ 13.410402][ C1]