[ 30.012017][ C2] [ 30.012914][ C2] ================================ [ 30.013274][ C2] WARNING: inconsistent lock state [ 30.013724][ C2] 6.15.0-virtme #1 Not tainted [ 30.014044][ C2] -------------------------------- [ 30.015686][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 30.022197][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 30.023548][ C2] ffffffffb01c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 30.024149][ C2] {SOFTIRQ-ON-W} state was registered at: [ 30.024495][ C2] __lock_acquire+0x20b/0x7e0 [ 30.024880][ C2] lock_acquire.part.0+0xb6/0x240 [ 30.025228][ C2] _raw_spin_lock+0x33/0x40 [ 30.025580][ C2] simple_pin_fs+0x24/0x150 [ 30.025945][ C2] start_creating.part.0+0x52/0x310 [ 30.026292][ C2] debugfs_create_dir+0x6a/0x540 [ 30.026629][ C2] component_debug_init+0x17/0x30 [ 30.026961][ C2] do_one_initcall+0x8f/0x1e0 [ 30.027284][ C2] do_initcalls+0x176/0x280 [ 30.027607][ C2] kernel_init_freeable+0x22d/0x300 [ 30.027929][ C2] kernel_init+0x20/0x200 [ 30.028241][ C2] ret_from_fork+0x240/0x320 [ 30.028571][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.028894][ C2] irq event stamp: 208174 [ 30.029147][ C2] hardirqs last enabled at (208174): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 30.029805][ C2] hardirqs last disabled at (208173): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 30.030465][ C2] softirqs last enabled at (207832): [] handle_softirqs+0x358/0x620 [ 30.031041][ C2] softirqs last disabled at (207837): [] run_ksoftirqd+0x3f/0x70 [ 30.031672][ C2] [ 30.031672][ C2] other info that might help us debug this: [ 30.032193][ C2] Possible unsafe locking scenario: [ 30.032193][ C2] [ 30.032687][ C2] CPU0 [ 30.032951][ C2] ---- [ 30.033250][ C2] lock(pin_fs_lock); [ 30.033513][ C2] [ 30.033786][ C2] lock(pin_fs_lock); [ 30.034043][ C2] [ 30.034043][ C2] *** DEADLOCK *** [ 30.034043][ C2] [ 30.034562][ C2] 1 lock held by ksoftirqd/2/27: [ 30.034927][ C2] #0: ffffffffaff774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 30.035562][ C2] [ 30.035562][ C2] stack backtrace: [ 30.035994][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 30.036002][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 30.036005][ C2] Call Trace: [ 30.036008][ C2] [ 30.036012][ C2] dump_stack_lvl+0x82/0xd0 [ 30.036023][ C2] print_usage_bug.part.0+0x25f/0x360 [ 30.036033][ C2] mark_lock_irq+0x343/0x400 [ 30.036040][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 30.036047][ C2] ? save_trace+0x52/0x170 [ 30.036053][ C2] mark_lock+0x174/0x2f0 [ 30.036059][ C2] mark_usage+0x46/0x150 [ 30.036064][ C2] __lock_acquire+0x20b/0x7e0 [ 30.036069][ C2] ? __lock_acquire+0x44d/0x7e0 [ 30.036076][ C2] lock_acquire.part.0+0xb6/0x240 [ 30.036080][ C2] ? simple_pin_fs+0x24/0x150 [ 30.036087][ C2] ? rcu_is_watching+0x12/0xc0 [ 30.036095][ C2] ? lock_acquire+0x10c/0x170 [ 30.036099][ C2] ? simple_pin_fs+0x24/0x150 [ 30.036104][ C2] _raw_spin_lock+0x33/0x40 [ 30.036111][ C2] ? simple_pin_fs+0x24/0x150 [ 30.036115][ C2] simple_pin_fs+0x24/0x150 [ 30.036120][ C2] debugfs_remove+0x35/0x70 [ 30.036126][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 30.036132][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 30.036136][ C2] ? __sk_destruct+0x383/0x780 [ 30.036143][ C2] ? rcu_do_batch+0x34c/0xf20 [ 30.036148][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 30.036152][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 30.036156][ C2] ? kthread+0x37e/0x600 [ 30.036160][ C2] ? ret_from_fork+0x240/0x320 [ 30.036166][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 30.036172][ C2] ? migrate_enable+0x1f2/0x270 [ 30.036178][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 30.036186][ C2] __put_net+0x19/0x60 [ 30.036192][ C2] __sk_destruct+0x58a/0x780 [ 30.036197][ C2] ? rcu_do_batch+0x34a/0xf20 [ 30.036201][ C2] rcu_do_batch+0x34c/0xf20 [ 30.036209][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 30.036214][ C2] ? rcu_is_watching+0x12/0xc0 [ 30.036219][ C2] ? note_gp_changes+0x182/0x1e0 [ 30.036223][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 30.036232][ C2] rcu_core+0x2bb/0x500 [ 30.036239][ C2] handle_softirqs+0x218/0x620 [ 30.036248][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 30.036254][ C2] run_ksoftirqd+0x3f/0x70 [ 30.036258][ C2] smpboot_thread_fn+0x30a/0x960 [ 30.036262][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 30.036267][ C2] kthread+0x37e/0x600 [ 30.036272][ C2] ? __pfx_kthread+0x10/0x10 [ 30.036275][ C2] ? ret_from_fork+0x1b/0x320 [ 30.036279][ C2] ? __lock_release+0x5d/0x170 [ 30.036284][ C2] ? rcu_is_watching+0x12/0xc0 [ 30.036289][ C2] ? __pfx_kthread+0x10/0x10 [ 30.036294][ C2] ret_from_fork+0x240/0x320 [ 30.036298][ C2] ? __pfx_kthread+0x10/0x10 [ 30.036302][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.036312][ C2] [ 30.060620][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 30.061426][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 30.062396][ C2] preempt_count: 100, expected: 0 [ 30.062815][ C2] RCU nest depth: 0, expected: 0 [ 30.063221][ C2] INFO: lockdep is turned off. [ 30.063639][ C2] Preemption disabled at: [ 30.063643][ C2] [] handle_softirqs+0xe5/0x620 [ 30.064756][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 30.064764][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 30.064768][ C2] Call Trace: [ 30.064771][ C2] [ 30.064775][ C2] dump_stack_lvl+0xb0/0xd0 [ 30.064787][ C2] __might_resched+0x360/0x5a0 [ 30.064799][ C2] down_write+0x72/0x210 [ 30.064806][ C2] ? __pfx_down_write+0x10/0x10 [ 30.064811][ C2] ? simple_recursive_removal+0x33/0x610 [ 30.064818][ C2] ? rcu_is_watching+0x12/0xc0 [ 30.064827][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 30.064835][ C2] simple_recursive_removal+0x6a/0x610 [ 30.064840][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 30.064845][ C2] ? __pfx_remove_one+0x10/0x10 [ 30.064855][ C2] debugfs_remove+0x44/0x70 [ 30.064861][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 30.064868][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 30.064873][ C2] ? __sk_destruct+0x383/0x780 [ 30.064881][ C2] ? rcu_do_batch+0x34c/0xf20 [ 30.064888][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 30.064893][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 30.064898][ C2] ? kthread+0x37e/0x600 [ 30.064904][ C2] ? ret_from_fork+0x240/0x320 [ 30.064910][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 30.064916][ C2] ? migrate_enable+0x1f2/0x270 [ 30.064922][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 30.064934][ C2] __put_net+0x19/0x60 [ 30.064941][ C2] __sk_destruct+0x58a/0x780 [ 30.064948][ C2] ? rcu_do_batch+0x34a/0xf20 [ 30.064953][ C2] rcu_do_batch+0x34c/0xf20 [ 30.064963][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 30.064970][ C2] ? rcu_is_watching+0x12/0xc0 [ 30.064976][ C2] ? note_gp_changes+0x182/0x1e0 [ 30.064981][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 30.064992][ C2] rcu_core+0x2bb/0x500 [ 30.065000][ C2] handle_softirqs+0x218/0x620 [ 30.065010][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 30.065017][ C2] run_ksoftirqd+0x3f/0x70 [ 30.065023][ C2] smpboot_thread_fn+0x30a/0x960 [ 30.065028][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 30.065035][ C2] kthread+0x37e/0x600 [ 30.065041][ C2] ? __pfx_kthread+0x10/0x10 [ 30.065045][ C2] ? ret_from_fork+0x1b/0x320 [ 30.065050][ C2] ? __lock_release+0x5d/0x170 [ 30.065059][ C2] ? rcu_is_watching+0x12/0xc0 [ 30.065064][ C2] ? __pfx_kthread+0x10/0x10 [ 30.065070][ C2] ret_from_fork+0x240/0x320 [ 30.065075][ C2] ? __pfx_kthread+0x10/0x10 [ 30.065080][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.065093][ C2] [ 31.333657][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 31.334897][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 31.335527][ C1] preempt_count: 100, expected: 0 [ 31.335970][ C1] RCU nest depth: 0, expected: 0 [ 31.336344][ C1] INFO: lockdep is turned off. [ 31.336750][ C1] Preemption disabled at: [ 31.336754][ C1] [] handle_softirqs+0xe5/0x620 [ 31.337512][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 31.337522][ C1] Tainted: [W]=WARN [ 31.337525][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 31.337528][ C1] Call Trace: [ 31.337531][ C1] [ 31.337535][ C1] dump_stack_lvl+0xb0/0xd0 [ 31.337547][ C1] __might_resched+0x360/0x5a0 [ 31.337561][ C1] down_write+0x72/0x210 [ 31.337568][ C1] ? __pfx_down_write+0x10/0x10 [ 31.337573][ C1] ? simple_recursive_removal+0x33/0x610 [ 31.337581][ C1] ? rcu_is_watching+0x12/0xc0 [ 31.337588][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 31.337595][ C1] simple_recursive_removal+0x6a/0x610 [ 31.337600][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 31.337604][ C1] ? __pfx_remove_one+0x10/0x10 [ 31.337613][ C1] debugfs_remove+0x44/0x70 [ 31.337618][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 31.337645][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 31.337650][ C1] ? __sk_destruct+0x383/0x780 [ 31.337657][ C1] ? rcu_do_batch+0x34c/0xf20 [ 31.337676][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 31.337680][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 31.337685][ C1] ? kthread+0x37e/0x600 [ 31.337692][ C1] ? ret_from_fork+0x240/0x320 [ 31.337699][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 31.337704][ C1] ? migrate_enable+0x1f2/0x270 [ 31.337711][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 31.337717][ C1] ? bpf_sk_storage_free+0x9f/0x1c0 [ 31.337723][ C1] ? rcu_is_watching+0x12/0xc0 [ 31.337732][ C1] __put_net+0x19/0x60 [ 31.337738][ C1] __sk_destruct+0x58a/0x780 [ 31.337745][ C1] ? rcu_do_batch+0x34a/0xf20 [ 31.337749][ C1] rcu_do_batch+0x34c/0xf20 [ 31.337759][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 31.337766][ C1] ? rcu_is_watching+0x12/0xc0 [ 31.337771][ C1] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 31.337781][ C1] rcu_core+0x2bb/0x500 [ 31.337788][ C1] handle_softirqs+0x218/0x620 [ 31.337797][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 31.337804][ C1] run_ksoftirqd+0x3f/0x70 [ 31.337809][ C1] smpboot_thread_fn+0x30a/0x960 [ 31.337814][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 31.337821][ C1] kthread+0x37e/0x600 [ 31.337827][ C1] ? __pfx_kthread+0x10/0x10 [ 31.337831][ C1] ? ret_from_fork+0x1b/0x320 [ 31.337836][ C1] ? __lock_release+0x5d/0x170 [ 31.337844][ C1] ? rcu_is_watching+0x12/0xc0 [ 31.337849][ C1] ? __pfx_kthread+0x10/0x10 [ 31.337855][ C1] ret_from_fork+0x240/0x320 [ 31.337860][ C1] ? __pfx_kthread+0x10/0x10 [ 31.337864][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.337876][ C1]