[ 20.983678][ C0] [ 20.983891][ C0] ================================ [ 20.984204][ C0] WARNING: inconsistent lock state [ 20.984513][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 20.984820][ C0] -------------------------------- [ 20.985124][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 20.985502][ C0] ksoftirqd/0/14 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 20.985884][ C0] ffffffffaa3bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 20.986433][ C0] {SOFTIRQ-ON-W} state was registered at: [ 20.986736][ C0] __lock_acquire+0x3eb/0x9d0 [ 20.987062][ C0] lock_acquire.part.0+0xb6/0x240 [ 20.987366][ C0] _raw_spin_lock+0x33/0x40 [ 20.987678][ C0] simple_pin_fs+0x24/0x150 [ 20.987990][ C0] start_creating.part.0+0x3f/0x2f0 [ 20.988299][ C0] debugfs_create_dir+0x6a/0x540 [ 20.988603][ C0] component_debug_init+0x17/0x30 [ 20.988908][ C0] do_one_initcall+0x8f/0x1e0 [ 20.989214][ C0] do_initcalls+0x176/0x280 [ 20.989533][ C0] kernel_init_freeable+0x22d/0x300 [ 20.989844][ C0] kernel_init+0x20/0x200 [ 20.990151][ C0] ret_from_fork+0x31/0x70 [ 20.990458][ C0] ret_from_fork_asm+0x1a/0x30 [ 20.990768][ C0] irq event stamp: 151534 [ 20.991006][ C0] hardirqs last enabled at (151534): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.991617][ C0] hardirqs last disabled at (151533): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 20.992231][ C0] softirqs last enabled at (150686): [] handle_softirqs+0x358/0x620 [ 20.992777][ C0] softirqs last disabled at (150699): [] run_ksoftirqd+0x3f/0x70 [ 20.993308][ C0] [ 20.993308][ C0] other info that might help us debug this: [ 20.993756][ C0] Possible unsafe locking scenario: [ 20.993756][ C0] [ 20.994220][ C0] CPU0 [ 20.994455][ C0] ---- [ 20.994689][ C0] lock(pin_fs_lock); [ 20.994931][ C0] [ 20.995158][ C0] lock(pin_fs_lock); [ 20.995397][ C0] [ 20.995397][ C0] *** DEADLOCK *** [ 20.995397][ C0] [ 20.995853][ C0] 1 lock held by ksoftirqd/0/14: [ 20.996170][ C0] #0: ffffffffaa1749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 20.996731][ C0] [ 20.996731][ C0] stack backtrace: [ 20.997126][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 20.997134][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.997138][ C0] Call Trace: [ 20.997141][ C0] [ 20.997146][ C0] dump_stack_lvl+0x82/0xd0 [ 20.997158][ C0] print_usage_bug.part.0+0x25f/0x360 [ 20.997169][ C0] mark_lock_irq+0x343/0x400 [ 20.997178][ C0] ? __pfx_unwind_next_frame+0x10/0x10 [ 20.997188][ C0] ? save_trace+0x52/0x170 [ 20.997196][ C0] mark_lock+0x174/0x2f0 [ 20.997203][ C0] mark_usage+0x46/0x150 [ 20.997210][ C0] __lock_acquire+0x3eb/0x9d0 [ 20.997220][ C0] lock_acquire.part.0+0xb6/0x240 [ 20.997225][ C0] ? simple_pin_fs+0x24/0x150 [ 20.997233][ C0] ? rcu_is_watching+0x12/0xc0 [ 20.997240][ C0] ? lock_acquire+0x10c/0x170 [ 20.997244][ C0] ? simple_pin_fs+0x24/0x150 [ 20.997251][ C0] _raw_spin_lock+0x33/0x40 [ 20.997257][ C0] ? simple_pin_fs+0x24/0x150 [ 20.997261][ C0] simple_pin_fs+0x24/0x150 [ 20.997266][ C0] debugfs_remove+0x35/0x70 [ 20.997273][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 20.997281][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.997287][ C0] ? __sk_destruct+0x383/0x780 [ 20.997295][ C0] ? rcu_do_batch+0x34f/0xf20 [ 20.997301][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.997306][ C0] ? smpboot_thread_fn+0x307/0x960 [ 20.997312][ C0] ? kthread+0x37b/0x600 [ 20.997319][ C0] ? ret_from_fork+0x31/0x70 [ 20.997323][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 20.997331][ C0] ? migrate_enable+0x1f2/0x270 [ 20.997339][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 20.997351][ C0] __put_net+0x19/0x60 [ 20.997357][ C0] __sk_destruct+0x58a/0x780 [ 20.997364][ C0] ? rcu_do_batch+0x34a/0xf20 [ 20.997370][ C0] rcu_do_batch+0x34f/0xf20 [ 20.997380][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.997387][ C0] ? rcu_is_watching+0x12/0xc0 [ 20.997392][ C0] ? note_gp_changes+0x182/0x1e0 [ 20.997399][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.997410][ C0] rcu_core+0x2bb/0x500 [ 20.997417][ C0] handle_softirqs+0x218/0x620 [ 20.997425][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 20.997431][ C0] run_ksoftirqd+0x3f/0x70 [ 20.997436][ C0] smpboot_thread_fn+0x307/0x960 [ 20.997442][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 20.997449][ C0] kthread+0x37b/0x600 [ 20.997454][ C0] ? __pfx_kthread+0x10/0x10 [ 20.997459][ C0] ? ret_from_fork+0x1b/0x70 [ 20.997462][ C0] ? __lock_release+0x5d/0x170 [ 20.997468][ C0] ? rcu_is_watching+0x12/0xc0 [ 20.997474][ C0] ? __pfx_kthread+0x10/0x10 [ 20.997481][ C0] ret_from_fork+0x31/0x70 [ 20.997485][ C0] ? __pfx_kthread+0x10/0x10 [ 20.997490][ C0] ret_from_fork_asm+0x1a/0x30 [ 20.997504][ C0] [ 21.015818][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 21.016299][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 14, name: ksoftirqd/0 [ 21.016785][ C0] preempt_count: 100, expected: 0 [ 21.017059][ C0] RCU nest depth: 0, expected: 0 [ 21.017349][ C0] INFO: lockdep is turned off. [ 21.017825][ C0] Preemption disabled at: [ 21.017828][ C0] [] handle_softirqs+0xe5/0x620 [ 21.018411][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 21.018420][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.018423][ C0] Call Trace: [ 21.018426][ C0] [ 21.018430][ C0] dump_stack_lvl+0xb0/0xd0 [ 21.018442][ C0] __might_resched+0x360/0x5a0 [ 21.018453][ C0] down_write+0x72/0x210 [ 21.018461][ C0] ? __pfx_down_write+0x10/0x10 [ 21.018467][ C0] ? simple_recursive_removal+0x3a/0x860 [ 21.018475][ C0] ? rcu_is_watching+0x12/0xc0 [ 21.018484][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 21.018492][ C0] simple_recursive_removal+0x166/0x860 [ 21.018497][ C0] ? __pfx_remove_one+0x10/0x10 [ 21.018505][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 21.018514][ C0] debugfs_remove+0x44/0x70 [ 21.018519][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 21.018528][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 21.018533][ C0] ? __sk_destruct+0x383/0x780 [ 21.018541][ C0] ? rcu_do_batch+0x34f/0xf20 [ 21.018547][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 21.018552][ C0] ? smpboot_thread_fn+0x307/0x960 [ 21.018557][ C0] ? kthread+0x37b/0x600 [ 21.018565][ C0] ? ret_from_fork+0x31/0x70 [ 21.018570][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 21.018579][ C0] ? migrate_enable+0x1f2/0x270 [ 21.018587][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 21.018599][ C0] __put_net+0x19/0x60 [ 21.018607][ C0] __sk_destruct+0x58a/0x780 [ 21.018614][ C0] ? rcu_do_batch+0x34a/0xf20 [ 21.018619][ C0] rcu_do_batch+0x34f/0xf20 [ 21.018628][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 21.018635][ C0] ? rcu_is_watching+0x12/0xc0 [ 21.018641][ C0] ? note_gp_changes+0x182/0x1e0 [ 21.018646][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 21.018657][ C0] rcu_core+0x2bb/0x500 [ 21.018665][ C0] handle_softirqs+0x218/0x620 [ 21.018673][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 21.018679][ C0] run_ksoftirqd+0x3f/0x70 [ 21.018683][ C0] smpboot_thread_fn+0x307/0x960 [ 21.018688][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 21.018695][ C0] kthread+0x37b/0x600 [ 21.018701][ C0] ? __pfx_kthread+0x10/0x10 [ 21.018706][ C0] ? ret_from_fork+0x1b/0x70 [ 21.018710][ C0] ? __lock_release+0x5d/0x170 [ 21.018716][ C0] ? rcu_is_watching+0x12/0xc0 [ 21.018722][ C0] ? __pfx_kthread+0x10/0x10 [ 21.018728][ C0] ret_from_fork+0x31/0x70 [ 21.018733][ C0] ? __pfx_kthread+0x10/0x10 [ 21.018738][ C0] ret_from_fork_asm+0x1a/0x30 [ 21.018751][ C0] [ 26.715149][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 26.715807][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 26.716567][ C3] preempt_count: 101, expected: 0 [ 26.717057][ C3] RCU nest depth: 0, expected: 0 [ 26.717378][ C3] INFO: lockdep is turned off. [ 26.717722][ C3] Preemption disabled at: [ 26.717727][ C3] [<0000000000000000>] 0x0 [ 26.718446][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 26.718456][ C3] Tainted: [W]=WARN [ 26.718459][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 26.718462][ C3] Call Trace: [ 26.718466][ C3] [ 26.718469][ C3] dump_stack_lvl+0xb0/0xd0 [ 26.718487][ C3] __might_resched+0x360/0x5a0 [ 26.718501][ C3] down_write+0x72/0x210 [ 26.718509][ C3] ? __pfx_down_write+0x10/0x10 [ 26.718515][ C3] ? simple_recursive_removal+0x3a/0x860 [ 26.718525][ C3] ? rcu_is_watching+0x12/0xc0 [ 26.718538][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 26.718548][ C3] simple_recursive_removal+0x166/0x860 [ 26.718553][ C3] ? __pfx_remove_one+0x10/0x10 [ 26.718560][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 26.718570][ C3] debugfs_remove+0x44/0x70 [ 26.718575][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 26.718584][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 26.718590][ C3] ? __sk_destruct+0x383/0x780 [ 26.718602][ C3] ? rcu_do_batch+0x34f/0xf20 [ 26.718610][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 26.718614][ C3] ? irq_exit_rcu+0xe/0x30 [ 26.718622][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 26.718630][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 26.718636][ C3] ? pv_native_safe_halt+0xf/0x20 [ 26.718640][ C3] ? default_idle+0x9/0x10 [ 26.718644][ C3] ? default_idle_call+0x6d/0xb0 [ 26.718646][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 26.718652][ C3] ? do_idle+0xf6/0x160 [ 26.718656][ C3] ? cpu_startup_entry+0x54/0x60 [ 26.718660][ C3] ? start_secondary+0x213/0x2a0 [ 26.718666][ C3] ? common_startup_64+0x13e/0x148 [ 26.718672][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 26.718678][ C3] ? rcu_is_watching+0x12/0xc0 [ 26.718686][ C3] __put_net+0x19/0x60 [ 26.718693][ C3] __sk_destruct+0x58a/0x780 [ 26.718699][ C3] ? rcu_do_batch+0x34a/0xf20 [ 26.718704][ C3] rcu_do_batch+0x34f/0xf20 [ 26.718714][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 26.718720][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 26.718729][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 26.718739][ C3] rcu_core+0x2bb/0x500 [ 26.718747][ C3] handle_softirqs+0x218/0x620 [ 26.718757][ C3] __irq_exit_rcu+0xfa/0x160 [ 26.718762][ C3] irq_exit_rcu+0xe/0x30 [ 26.718766][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 26.718773][ C3] [ 26.718775][ C3] [ 26.718778][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 26.718784][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 26.718791][ C3] Code: 60 b8 00 e9 c3 57 02 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d c3 75 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 26.718796][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 26.718803][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffffa915ba19 [ 26.718807][ C3] RDX: ffffed1006c3667b RSI: ffffffffa94511e0 RDI: ffffffffa698633f [ 26.718810][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c3667a [ 26.718813][ C3] R10: ffff8880361b33d3 R11: ffff888009bbcb58 R12: 0000000000000000 [ 26.718817][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 26.718825][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 26.718832][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 26.718840][ C3] default_idle+0x9/0x10 [ 26.718845][ C3] default_idle_call+0x6d/0xb0 [ 26.718850][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 26.718857][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 26.718865][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 26.718874][ C3] do_idle+0xf6/0x160 [ 26.718882][ C3] cpu_startup_entry+0x54/0x60 [ 26.718888][ C3] start_secondary+0x213/0x2a0 [ 26.718895][ C3] ? __pfx_start_secondary+0x10/0x10 [ 26.718905][ C3] common_startup_64+0x13e/0x148 [ 26.718919][ C3]