[ 22.052422][ C2] [ 22.052601][ C2] ================================ [ 22.052837][ C2] WARNING: inconsistent lock state [ 22.053077][ C2] 6.15.0-virtme #1 Not tainted [ 22.053305][ C2] -------------------------------- [ 22.053526][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 22.053810][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 22.054090][ C2] ffffffffba7c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 22.054473][ C2] {SOFTIRQ-ON-W} state was registered at: [ 22.054714][ C2] __lock_acquire+0x20b/0x7e0 [ 22.054934][ C2] lock_acquire.part.0+0xb6/0x240 [ 22.055156][ C2] _raw_spin_lock+0x33/0x40 [ 22.055385][ C2] simple_pin_fs+0x24/0x150 [ 22.055601][ C2] start_creating.part.0+0x52/0x310 [ 22.055831][ C2] debugfs_create_dir+0x6a/0x540 [ 22.056057][ C2] component_debug_init+0x17/0x30 [ 22.056290][ C2] do_one_initcall+0x8f/0x1e0 [ 22.056509][ C2] do_initcalls+0x176/0x280 [ 22.056752][ C2] kernel_init_freeable+0x22d/0x300 [ 22.056985][ C2] kernel_init+0x20/0x200 [ 22.057237][ C2] ret_from_fork+0x240/0x320 [ 22.057479][ C2] ret_from_fork_asm+0x1a/0x30 [ 22.057717][ C2] irq event stamp: 180346 [ 22.057897][ C2] hardirqs last enabled at (180346): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 22.058345][ C2] hardirqs last disabled at (180345): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 22.058829][ C2] softirqs last enabled at (180102): [] handle_softirqs+0x358/0x620 [ 22.059207][ C2] softirqs last disabled at (180109): [] run_ksoftirqd+0x3f/0x70 [ 22.059584][ C2] [ 22.059584][ C2] other info that might help us debug this: [ 22.059915][ C2] Possible unsafe locking scenario: [ 22.059915][ C2] [ 22.060226][ C2] CPU0 [ 22.060404][ C2] ---- [ 22.060569][ C2] lock(pin_fs_lock); [ 22.060738][ C2] [ 22.060896][ C2] lock(pin_fs_lock); [ 22.061060][ C2] [ 22.061060][ C2] *** DEADLOCK *** [ 22.061060][ C2] [ 22.061395][ C2] 1 lock held by ksoftirqd/2/27: [ 22.061623][ C2] #0: ffffffffba5774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 22.061966][ C2] [ 22.061966][ C2] stack backtrace: [ 22.062207][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 22.062212][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 22.062214][ C2] Call Trace: [ 22.062216][ C2] [ 22.062220][ C2] dump_stack_lvl+0x82/0xd0 [ 22.062226][ C2] print_usage_bug.part.0+0x25f/0x360 [ 22.062232][ C2] mark_lock_irq+0x343/0x400 [ 22.062236][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 22.062241][ C2] ? save_trace+0x52/0x170 [ 22.062246][ C2] mark_lock+0x174/0x2f0 [ 22.062250][ C2] mark_usage+0x46/0x150 [ 22.062253][ C2] __lock_acquire+0x20b/0x7e0 [ 22.062256][ C2] ? __lock_acquire+0x44d/0x7e0 [ 22.062260][ C2] lock_acquire.part.0+0xb6/0x240 [ 22.062264][ C2] ? simple_pin_fs+0x24/0x150 [ 22.062268][ C2] ? rcu_is_watching+0x12/0xc0 [ 22.062272][ C2] ? lock_acquire+0x10c/0x170 [ 22.062275][ C2] ? simple_pin_fs+0x24/0x150 [ 22.062280][ C2] _raw_spin_lock+0x33/0x40 [ 22.062283][ C2] ? simple_pin_fs+0x24/0x150 [ 22.062287][ C2] simple_pin_fs+0x24/0x150 [ 22.062291][ C2] debugfs_remove+0x35/0x70 [ 22.062294][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 22.062300][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 22.062304][ C2] ? __sk_destruct+0x383/0x780 [ 22.062310][ C2] ? rcu_do_batch+0x34c/0xf20 [ 22.062313][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 22.062316][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 22.062321][ C2] ? kthread+0x37e/0x600 [ 22.062323][ C2] ? ret_from_fork+0x240/0x320 [ 22.062327][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 22.062331][ C2] ? migrate_enable+0x1f2/0x270 [ 22.062335][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 22.062341][ C2] __put_net+0x19/0x60 [ 22.062345][ C2] __sk_destruct+0x58a/0x780 [ 22.062349][ C2] ? rcu_do_batch+0x34a/0xf20 [ 22.062351][ C2] rcu_do_batch+0x34c/0xf20 [ 22.062354][ C2] ? __schedule+0x87b/0x1b00 [ 22.062360][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 22.062364][ C2] ? rcu_is_watching+0x12/0xc0 [ 22.062367][ C2] ? note_gp_changes+0x182/0x1e0 [ 22.062370][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 22.062374][ C2] rcu_core+0x2bb/0x500 [ 22.062378][ C2] handle_softirqs+0x218/0x620 [ 22.062383][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 22.062386][ C2] run_ksoftirqd+0x3f/0x70 [ 22.062389][ C2] smpboot_thread_fn+0x30a/0x960 [ 22.062393][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 22.062397][ C2] kthread+0x37e/0x600 [ 22.062400][ C2] ? __pfx_kthread+0x10/0x10 [ 22.062402][ C2] ? ret_from_fork+0x1b/0x320 [ 22.062404][ C2] ? __lock_release+0x5d/0x170 [ 22.062408][ C2] ? rcu_is_watching+0x12/0xc0 [ 22.062411][ C2] ? __pfx_kthread+0x10/0x10 [ 22.062414][ C2] ret_from_fork+0x240/0x320 [ 22.062416][ C2] ? __pfx_kthread+0x10/0x10 [ 22.062418][ C2] ret_from_fork_asm+0x1a/0x30 [ 22.062426][ C2] [ 22.074524][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 22.074882][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 22.075240][ C2] preempt_count: 100, expected: 0 [ 22.075446][ C2] RCU nest depth: 0, expected: 0 [ 22.075657][ C2] INFO: lockdep is turned off. [ 22.075978][ C2] Preemption disabled at: [ 22.075979][ C2] [] handle_softirqs+0xe5/0x620 [ 22.076496][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 22.076502][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 22.076504][ C2] Call Trace: [ 22.076506][ C2] [ 22.076509][ C2] dump_stack_lvl+0xb0/0xd0 [ 22.076515][ C2] __might_resched+0x360/0x5a0 [ 22.076522][ C2] down_write+0x72/0x210 [ 22.076527][ C2] ? __pfx_down_write+0x10/0x10 [ 22.076530][ C2] ? simple_recursive_removal+0x33/0x610 [ 22.076534][ C2] ? rcu_is_watching+0x12/0xc0 [ 22.076538][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 22.076545][ C2] simple_recursive_removal+0x6a/0x610 [ 22.076547][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 22.076551][ C2] ? __pfx_remove_one+0x10/0x10 [ 22.076557][ C2] debugfs_remove+0x44/0x70 [ 22.076560][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 22.076565][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 22.076569][ C2] ? __sk_destruct+0x383/0x780 [ 22.076574][ C2] ? rcu_do_batch+0x34c/0xf20 [ 22.076577][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 22.076580][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 22.076584][ C2] ? kthread+0x37e/0x600 [ 22.076587][ C2] ? ret_from_fork+0x240/0x320 [ 22.076591][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 22.076596][ C2] ? migrate_enable+0x1f2/0x270 [ 22.076600][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 22.076605][ C2] __put_net+0x19/0x60 [ 22.076609][ C2] __sk_destruct+0x58a/0x780 [ 22.076613][ C2] ? rcu_do_batch+0x34a/0xf20 [ 22.076616][ C2] rcu_do_batch+0x34c/0xf20 [ 22.076619][ C2] ? __schedule+0x87b/0x1b00 [ 22.076625][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 22.076628][ C2] ? rcu_is_watching+0x12/0xc0 [ 22.076631][ C2] ? note_gp_changes+0x182/0x1e0 [ 22.076634][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 22.076638][ C2] rcu_core+0x2bb/0x500 [ 22.076642][ C2] handle_softirqs+0x218/0x620 [ 22.076646][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 22.076650][ C2] run_ksoftirqd+0x3f/0x70 [ 22.076653][ C2] smpboot_thread_fn+0x30a/0x960 [ 22.076656][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 22.076660][ C2] kthread+0x37e/0x600 [ 22.076663][ C2] ? __pfx_kthread+0x10/0x10 [ 22.076665][ C2] ? ret_from_fork+0x1b/0x320 [ 22.076668][ C2] ? __lock_release+0x5d/0x170 [ 22.076671][ C2] ? rcu_is_watching+0x12/0xc0 [ 22.076674][ C2] ? __pfx_kthread+0x10/0x10 [ 22.076678][ C2] ret_from_fork+0x240/0x320 [ 22.076680][ C2] ? __pfx_kthread+0x10/0x10 [ 22.076683][ C2] ret_from_fork_asm+0x1a/0x30 [ 22.076690][ C2] [ 28.214097][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 28.214591][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 28.214955][ C2] preempt_count: 101, expected: 0 [ 28.215165][ C2] RCU nest depth: 0, expected: 0 [ 28.215372][ C2] INFO: lockdep is turned off. [ 28.215571][ C2] Preemption disabled at: [ 28.215573][ C2] [<0000000000000000>] 0x0 [ 28.215953][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 28.215959][ C2] Tainted: [W]=WARN [ 28.215960][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 28.215962][ C2] Call Trace: [ 28.215964][ C2] [ 28.215966][ C2] dump_stack_lvl+0xb0/0xd0 [ 28.215975][ C2] __might_resched+0x360/0x5a0 [ 28.215983][ C2] down_write+0x72/0x210 [ 28.215987][ C2] ? __pfx_down_write+0x10/0x10 [ 28.215990][ C2] ? simple_recursive_removal+0x33/0x610 [ 28.215994][ C2] ? rcu_is_watching+0x12/0xc0 [ 28.215999][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 28.216005][ C2] simple_recursive_removal+0x6a/0x610 [ 28.216008][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 28.216011][ C2] ? __pfx_remove_one+0x10/0x10 [ 28.216017][ C2] debugfs_remove+0x44/0x70 [ 28.216020][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 28.216026][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 28.216029][ C2] ? __sk_destruct+0x383/0x780 [ 28.216034][ C2] ? rcu_do_batch+0x34c/0xf20 [ 28.216038][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 28.216041][ C2] ? irq_exit_rcu+0xe/0x30 [ 28.216046][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 28.216051][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 28.216055][ C2] ? pv_native_safe_halt+0xf/0x20 [ 28.216058][ C2] ? default_idle+0x9/0x10 [ 28.216061][ C2] ? default_idle_call+0x6d/0xb0 [ 28.216064][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 28.216067][ C2] ? do_idle+0xf6/0x160 [ 28.216069][ C2] ? cpu_startup_entry+0x54/0x60 [ 28.216072][ C2] ? start_secondary+0x213/0x2a0 [ 28.216075][ C2] ? common_startup_64+0x13e/0x148 [ 28.216081][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 28.216085][ C2] ? rcu_is_watching+0x12/0xc0 [ 28.216089][ C2] __put_net+0x19/0x60 [ 28.216093][ C2] __sk_destruct+0x58a/0x780 [ 28.216097][ C2] ? rcu_do_batch+0x34a/0xf20 [ 28.216099][ C2] rcu_do_batch+0x34c/0xf20 [ 28.216104][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 28.216107][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 28.216113][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 28.216119][ C2] rcu_core+0x2bb/0x500 [ 28.216124][ C2] handle_softirqs+0x218/0x620 [ 28.216129][ C2] __irq_exit_rcu+0xfa/0x160 [ 28.216133][ C2] irq_exit_rcu+0xe/0x30 [ 28.216135][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 28.216139][ C2] [ 28.216140][ C2] [ 28.216142][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 28.216144][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 28.216149][ C2] Code: a2 b5 00 c3 cc cc cc cc 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 83 47 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 28.216152][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 28.216155][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffffb958f5d9 [ 28.216158][ C2] RDX: ffffed1006c266fb RSI: ffffffffb9853b60 RDI: ffffffffb6d8d18f [ 28.216159][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c266fa [ 28.216161][ C2] R10: ffff8880361337d3 R11: ffff888002104ad8 R12: 0000000000000000 [ 28.216163][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 28.216167][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 28.216170][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 28.216174][ C2] default_idle+0x9/0x10 [ 28.216176][ C2] default_idle_call+0x6d/0xb0 [ 28.216179][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 28.216182][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 28.216186][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 28.216190][ C2] do_idle+0xf6/0x160 [ 28.216193][ C2] cpu_startup_entry+0x54/0x60 [ 28.216196][ C2] start_secondary+0x213/0x2a0 [ 28.216199][ C2] ? __pfx_start_secondary+0x10/0x10 [ 28.216204][ C2] common_startup_64+0x13e/0x148 [ 28.216211][ C2]