[ 13.401672][ C1] [ 13.401893][ C1] ================================ [ 13.402070][ C1] WARNING: inconsistent lock state [ 13.402245][ C1] 6.15.0-virtme #1 Not tainted [ 13.402421][ C1] -------------------------------- [ 13.402622][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.402838][ C1] ksoftirqd/1/22 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.403056][ C1] ffffffffba9c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.403362][ C1] {SOFTIRQ-ON-W} state was registered at: [ 13.403533][ C1] __lock_acquire+0x20b/0x7e0 [ 13.403720][ C1] lock_acquire.part.0+0xb6/0x240 [ 13.403893][ C1] _raw_spin_lock+0x33/0x40 [ 13.404069][ C1] simple_pin_fs+0x24/0x150 [ 13.404239][ C1] start_creating.part.0+0x52/0x310 [ 13.404428][ C1] debugfs_create_dir+0x6a/0x540 [ 13.404610][ C1] component_debug_init+0x17/0x30 [ 13.404786][ C1] do_one_initcall+0x8f/0x1e0 [ 13.404959][ C1] do_initcalls+0x176/0x280 [ 13.405137][ C1] kernel_init_freeable+0x22d/0x300 [ 13.405310][ C1] kernel_init+0x20/0x200 [ 13.405484][ C1] ret_from_fork+0x240/0x320 [ 13.405670][ C1] ret_from_fork_asm+0x1a/0x30 [ 13.405842][ C1] irq event stamp: 230614 [ 13.405976][ C1] hardirqs last enabled at (230614): [] irqentry_exit+0x3b/0x90 [ 13.406285][ C1] hardirqs last disabled at (230613): [] sysvec_call_function_single+0xf/0xc0 [ 13.406645][ C1] softirqs last enabled at (229570): [] handle_softirqs+0x358/0x620 [ 13.406948][ C1] softirqs last disabled at (229575): [] run_ksoftirqd+0x3f/0x70 [ 13.407249][ C1] [ 13.407249][ C1] other info that might help us debug this: [ 13.407504][ C1] Possible unsafe locking scenario: [ 13.407504][ C1] [ 13.407772][ C1] CPU0 [ 13.407900][ C1] ---- [ 13.408030][ C1] lock(pin_fs_lock); [ 13.408162][ C1] [ 13.408295][ C1] lock(pin_fs_lock); [ 13.408430][ C1] [ 13.408430][ C1] *** DEADLOCK *** [ 13.408430][ C1] [ 13.408700][ C1] 1 lock held by ksoftirqd/1/22: [ 13.408887][ C1] #0: ffffffffba7774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.409202][ C1] [ 13.409202][ C1] stack backtrace: [ 13.409416][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.409421][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.409423][ C1] Call Trace: [ 13.409425][ C1] [ 13.409427][ C1] dump_stack_lvl+0x82/0xd0 [ 13.409434][ C1] print_usage_bug.part.0+0x25f/0x360 [ 13.409439][ C1] mark_lock_irq+0x343/0x400 [ 13.409444][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.409449][ C1] ? save_trace+0x52/0x170 [ 13.409453][ C1] mark_lock+0x174/0x2f0 [ 13.409457][ C1] mark_usage+0x46/0x150 [ 13.409460][ C1] __lock_acquire+0x20b/0x7e0 [ 13.409464][ C1] ? __lock_acquire+0x44d/0x7e0 [ 13.409468][ C1] lock_acquire.part.0+0xb6/0x240 [ 13.409471][ C1] ? simple_pin_fs+0x24/0x150 [ 13.409476][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.409481][ C1] ? lock_acquire+0x10c/0x170 [ 13.409484][ C1] ? simple_pin_fs+0x24/0x150 [ 13.409487][ C1] _raw_spin_lock+0x33/0x40 [ 13.409492][ C1] ? simple_pin_fs+0x24/0x150 [ 13.409494][ C1] simple_pin_fs+0x24/0x150 [ 13.409497][ C1] debugfs_remove+0x35/0x70 [ 13.409501][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 13.409506][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.409508][ C1] ? __sk_destruct+0x383/0x780 [ 13.409513][ C1] ? rcu_do_batch+0x34c/0xf20 [ 13.409516][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.409519][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 13.409522][ C1] ? kthread+0x37e/0x600 [ 13.409526][ C1] ? ret_from_fork+0x240/0x320 [ 13.409530][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 13.409533][ C1] ? migrate_enable+0x1f2/0x270 [ 13.409537][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 13.409542][ C1] __put_net+0x19/0x60 [ 13.409547][ C1] __sk_destruct+0x58a/0x780 [ 13.409551][ C1] ? rcu_do_batch+0x34a/0xf20 [ 13.409554][ C1] rcu_do_batch+0x34c/0xf20 [ 13.409559][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.409563][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.409566][ C1] ? note_gp_changes+0x182/0x1e0 [ 13.409569][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.409575][ C1] rcu_core+0x2bb/0x500 [ 13.409580][ C1] handle_softirqs+0x218/0x620 [ 13.409585][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.409589][ C1] run_ksoftirqd+0x3f/0x70 [ 13.409592][ C1] smpboot_thread_fn+0x30a/0x960 [ 13.409595][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.409598][ C1] kthread+0x37e/0x600 [ 13.409601][ C1] ? __pfx_kthread+0x10/0x10 [ 13.409604][ C1] ? ret_from_fork+0x1b/0x320 [ 13.409606][ C1] ? __lock_release+0x5d/0x170 [ 13.409610][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.409613][ C1] ? __pfx_kthread+0x10/0x10 [ 13.409617][ C1] ret_from_fork+0x240/0x320 [ 13.409620][ C1] ? __pfx_kthread+0x10/0x10 [ 13.409623][ C1] ret_from_fork_asm+0x1a/0x30 [ 13.409629][ C1] [ 13.419529][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.419807][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 13.420092][ C1] preempt_count: 100, expected: 0 [ 13.420250][ C1] RCU nest depth: 0, expected: 0 [ 13.420409][ C1] INFO: lockdep is turned off. [ 13.420579][ C1] Preemption disabled at: [ 13.420581][ C1] [] handle_softirqs+0xe5/0x620 [ 13.420905][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.420911][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.420914][ C1] Call Trace: [ 13.420917][ C1] [ 13.420919][ C1] dump_stack_lvl+0xb0/0xd0 [ 13.420927][ C1] __might_resched+0x360/0x5a0 [ 13.420937][ C1] down_write+0x72/0x210 [ 13.420942][ C1] ? __pfx_down_write+0x10/0x10 [ 13.420947][ C1] ? simple_recursive_removal+0x33/0x610 [ 13.420953][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.420961][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 13.420967][ C1] simple_recursive_removal+0x6a/0x610 [ 13.420972][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 13.420974][ C1] ? __pfx_remove_one+0x10/0x10 [ 13.420980][ C1] debugfs_remove+0x44/0x70 [ 13.420983][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 13.420987][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.420990][ C1] ? __sk_destruct+0x383/0x780 [ 13.420994][ C1] ? rcu_do_batch+0x34c/0xf20 [ 13.420998][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.421001][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 13.421003][ C1] ? kthread+0x37e/0x600 [ 13.421007][ C1] ? ret_from_fork+0x240/0x320 [ 13.421011][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 13.421015][ C1] ? migrate_enable+0x1f2/0x270 [ 13.421018][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 13.421024][ C1] __put_net+0x19/0x60 [ 13.421028][ C1] __sk_destruct+0x58a/0x780 [ 13.421032][ C1] ? rcu_do_batch+0x34a/0xf20 [ 13.421035][ C1] rcu_do_batch+0x34c/0xf20 [ 13.421040][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.421044][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.421047][ C1] ? note_gp_changes+0x182/0x1e0 [ 13.421050][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.421055][ C1] rcu_core+0x2bb/0x500 [ 13.421059][ C1] handle_softirqs+0x218/0x620 [ 13.421064][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.421068][ C1] run_ksoftirqd+0x3f/0x70 [ 13.421071][ C1] smpboot_thread_fn+0x30a/0x960 [ 13.421074][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.421077][ C1] kthread+0x37e/0x600 [ 13.421080][ C1] ? __pfx_kthread+0x10/0x10 [ 13.421082][ C1] ? ret_from_fork+0x1b/0x320 [ 13.421085][ C1] ? __lock_release+0x5d/0x170 [ 13.421090][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.421093][ C1] ? __pfx_kthread+0x10/0x10 [ 13.421096][ C1] ret_from_fork+0x240/0x320 [ 13.421099][ C1] ? __pfx_kthread+0x10/0x10 [ 13.421102][ C1] ret_from_fork_asm+0x1a/0x30 [ 13.421109][ C1]