[ 16.673907][ C3] [ 16.674115][ C3] ================================ [ 16.674320][ C3] WARNING: inconsistent lock state [ 16.674511][ C3] 6.15.0-rc7-virtme #1 Not tainted [ 16.674710][ C3] -------------------------------- [ 16.674898][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.675128][ C3] ksoftirqd/3/32 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.675364][ C3] ffffffff8a5cb078 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.675698][ C3] {SOFTIRQ-ON-W} state was registered at: [ 16.675880][ C3] __lock_acquire+0x3eb/0x9d0 [ 16.676073][ C3] lock_acquire.part.0+0xb6/0x240 [ 16.676262][ C3] _raw_spin_lock+0x33/0x40 [ 16.676457][ C3] simple_pin_fs+0x24/0x150 [ 16.676643][ C3] start_creating.part.0+0x3f/0x2f0 [ 16.676833][ C3] debugfs_create_dir+0x6a/0x570 [ 16.677018][ C3] component_debug_init+0x17/0x30 [ 16.677206][ C3] do_one_initcall+0x8f/0x1e0 [ 16.677395][ C3] do_initcalls+0x176/0x280 [ 16.677588][ C3] kernel_init_freeable+0x22d/0x300 [ 16.677774][ C3] kernel_init+0x20/0x200 [ 16.677959][ C3] ret_from_fork+0x31/0x70 [ 16.678148][ C3] ret_from_fork_asm+0x1a/0x30 [ 16.678334][ C3] irq event stamp: 217396 [ 16.678474][ C3] hardirqs last enabled at (217396): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.678852][ C3] hardirqs last disabled at (217395): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.679219][ C3] softirqs last enabled at (215902): [] handle_softirqs+0x358/0x620 [ 16.679549][ C3] softirqs last disabled at (215905): [] run_ksoftirqd+0x3f/0x70 [ 16.679873][ C3] [ 16.679873][ C3] other info that might help us debug this: [ 16.680150][ C3] Possible unsafe locking scenario: [ 16.680150][ C3] [ 16.680424][ C3] CPU0 [ 16.680564][ C3] ---- [ 16.680710][ C3] lock(pin_fs_lock); [ 16.680852][ C3] [ 16.680989][ C3] lock(pin_fs_lock); [ 16.681128][ C3] [ 16.681128][ C3] *** DEADLOCK *** [ 16.681128][ C3] [ 16.681404][ C3] 1 lock held by ksoftirqd/3/32: [ 16.681592][ C3] #0: ffffffff8a375140 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.681924][ C3] [ 16.681924][ C3] stack backtrace: [ 16.682155][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 16.682159][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.682162][ C3] Call Trace: [ 16.682164][ C3] [ 16.682167][ C3] dump_stack_lvl+0x82/0xd0 [ 16.682174][ C3] print_usage_bug.part.0+0x25f/0x360 [ 16.682178][ C3] mark_lock_irq+0x343/0x400 [ 16.682183][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 16.682188][ C3] ? save_trace+0x52/0x170 [ 16.682193][ C3] mark_lock+0x174/0x2f0 [ 16.682197][ C3] mark_usage+0x46/0x150 [ 16.682200][ C3] __lock_acquire+0x3eb/0x9d0 [ 16.682205][ C3] lock_acquire.part.0+0xb6/0x240 [ 16.682208][ C3] ? simple_pin_fs+0x24/0x150 [ 16.682211][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.682217][ C3] ? lock_acquire+0x10c/0x170 [ 16.682220][ C3] ? simple_pin_fs+0x24/0x150 [ 16.682224][ C3] _raw_spin_lock+0x33/0x40 [ 16.682227][ C3] ? simple_pin_fs+0x24/0x150 [ 16.682230][ C3] simple_pin_fs+0x24/0x150 [ 16.682233][ C3] debugfs_remove+0x35/0x70 [ 16.682236][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 16.682244][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.682247][ C3] ? __sk_destruct+0x383/0x780 [ 16.682254][ C3] ? rcu_do_batch+0x34c/0xf20 [ 16.682256][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.682259][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 16.682267][ C3] ? kthread+0x37e/0x600 [ 16.682271][ C3] ? ret_from_fork+0x31/0x70 [ 16.682274][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 16.682276][ C3] ? migrate_enable+0x1f2/0x270 [ 16.682281][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 16.682287][ C3] __put_net+0x19/0x60 [ 16.682290][ C3] __sk_destruct+0x58a/0x780 [ 16.682294][ C3] ? rcu_do_batch+0x34a/0xf20 [ 16.682296][ C3] rcu_do_batch+0x34c/0xf20 [ 16.682301][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.682304][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.682307][ C3] ? note_gp_changes+0x182/0x1e0 [ 16.682310][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.682318][ C3] rcu_core+0x2bb/0x500 [ 16.682323][ C3] handle_softirqs+0x21b/0x620 [ 16.682327][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 16.682331][ C3] run_ksoftirqd+0x3f/0x70 [ 16.682334][ C3] smpboot_thread_fn+0x30a/0x960 [ 16.682338][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.682342][ C3] kthread+0x37e/0x600 [ 16.682345][ C3] ? __pfx_kthread+0x10/0x10 [ 16.682347][ C3] ? ret_from_fork+0x1b/0x70 [ 16.682350][ C3] ? __lock_release+0x5d/0x170 [ 16.682353][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.682356][ C3] ? __pfx_kthread+0x10/0x10 [ 16.682359][ C3] ret_from_fork+0x31/0x70 [ 16.682362][ C3] ? __pfx_kthread+0x10/0x10 [ 16.682365][ C3] ret_from_fork_asm+0x1a/0x30 [ 16.682371][ C3] [ 16.692745][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.693047][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 16.693359][ C3] preempt_count: 100, expected: 0 [ 16.693531][ C3] RCU nest depth: 0, expected: 0 [ 16.693703][ C3] INFO: lockdep is turned off. [ 16.693882][ C3] Preemption disabled at: [ 16.693883][ C3] [] handle_softirqs+0xe5/0x620 [ 16.694235][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 16.694239][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.694240][ C3] Call Trace: [ 16.694242][ C3] [ 16.694243][ C3] dump_stack_lvl+0xb0/0xd0 [ 16.694248][ C3] __might_resched+0x360/0x5a0 [ 16.694256][ C3] down_write+0x72/0x210 [ 16.694260][ C3] ? __pfx_down_write+0x10/0x10 [ 16.694262][ C3] ? simple_recursive_removal+0x3a/0x860 [ 16.694267][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.694271][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.694277][ C3] simple_recursive_removal+0x166/0x860 [ 16.694279][ C3] ? __pfx_remove_one+0x10/0x10 [ 16.694283][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.694288][ C3] debugfs_remove+0x44/0x70 [ 16.694291][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 16.694296][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.694299][ C3] ? __sk_destruct+0x383/0x780 [ 16.694303][ C3] ? rcu_do_batch+0x34c/0xf20 [ 16.694306][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.694309][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 16.694313][ C3] ? kthread+0x37e/0x600 [ 16.694316][ C3] ? ret_from_fork+0x31/0x70 [ 16.694319][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 16.694322][ C3] ? migrate_enable+0x1f2/0x270 [ 16.694325][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 16.694331][ C3] __put_net+0x19/0x60 [ 16.694333][ C3] __sk_destruct+0x58a/0x780 [ 16.694337][ C3] ? rcu_do_batch+0x34a/0xf20 [ 16.694339][ C3] rcu_do_batch+0x34c/0xf20 [ 16.694344][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.694347][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.694350][ C3] ? note_gp_changes+0x182/0x1e0 [ 16.694353][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.694358][ C3] rcu_core+0x2bb/0x500 [ 16.694362][ C3] handle_softirqs+0x21b/0x620 [ 16.694367][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 16.694370][ C3] run_ksoftirqd+0x3f/0x70 [ 16.694373][ C3] smpboot_thread_fn+0x30a/0x960 [ 16.694377][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.694381][ C3] kthread+0x37e/0x600 [ 16.694384][ C3] ? __pfx_kthread+0x10/0x10 [ 16.694386][ C3] ? ret_from_fork+0x1b/0x70 [ 16.694389][ C3] ? __lock_release+0x5d/0x170 [ 16.694392][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.694396][ C3] ? __pfx_kthread+0x10/0x10 [ 16.694399][ C3] ret_from_fork+0x31/0x70 [ 16.694401][ C3] ? __pfx_kthread+0x10/0x10 [ 16.694404][ C3] ret_from_fork_asm+0x1a/0x30 [ 16.694410][ C3]