[ 14.333701][ C2] [ 14.333821][ C2] ================================ [ 14.333992][ C2] WARNING: inconsistent lock state [ 14.334161][ C2] 6.15.0-virtme #1 Not tainted [ 14.334330][ C2] -------------------------------- [ 14.334499][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.334709][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.334919][ C2] ffffffff8a7c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.335222][ C2] {SOFTIRQ-ON-W} state was registered at: [ 14.335388][ C2] __lock_acquire+0x20b/0x7e0 [ 14.335564][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.335733][ C2] _raw_spin_lock+0x33/0x40 [ 14.335905][ C2] simple_pin_fs+0x24/0x150 [ 14.336074][ C2] start_creating.part.0+0x52/0x310 [ 14.336243][ C2] debugfs_create_dir+0x6a/0x540 [ 14.336410][ C2] component_debug_init+0x17/0x30 [ 14.336581][ C2] do_one_initcall+0x8f/0x1e0 [ 14.336755][ C2] do_initcalls+0x176/0x280 [ 14.336925][ C2] kernel_init_freeable+0x22d/0x300 [ 14.337091][ C2] kernel_init+0x20/0x200 [ 14.337258][ C2] ret_from_fork+0x240/0x320 [ 14.337436][ C2] ret_from_fork_asm+0x1a/0x30 [ 14.337607][ C2] irq event stamp: 241474 [ 14.337736][ C2] hardirqs last enabled at (241474): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.338070][ C2] hardirqs last disabled at (241473): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.338402][ C2] softirqs last enabled at (241140): [] handle_softirqs+0x358/0x620 [ 14.338699][ C2] softirqs last disabled at (241153): [] run_ksoftirqd+0x3f/0x70 [ 14.338995][ C2] [ 14.338995][ C2] other info that might help us debug this: [ 14.339246][ C2] Possible unsafe locking scenario: [ 14.339246][ C2] [ 14.339493][ C2] CPU0 [ 14.339617][ C2] ---- [ 14.339744][ C2] lock(pin_fs_lock); [ 14.339873][ C2] [ 14.339999][ C2] lock(pin_fs_lock); [ 14.340132][ C2] [ 14.340132][ C2] *** DEADLOCK *** [ 14.340132][ C2] [ 14.340381][ C2] 1 lock held by ksoftirqd/2/27: [ 14.340551][ C2] #0: ffffffff8a5774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.340859][ C2] [ 14.340859][ C2] stack backtrace: [ 14.341061][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.341066][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.341068][ C2] Call Trace: [ 14.341070][ C2] [ 14.341072][ C2] dump_stack_lvl+0x82/0xd0 [ 14.341078][ C2] print_usage_bug.part.0+0x25f/0x360 [ 14.341082][ C2] mark_lock_irq+0x343/0x400 [ 14.341086][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.341091][ C2] ? save_trace+0x52/0x170 [ 14.341097][ C2] mark_lock+0x174/0x2f0 [ 14.341100][ C2] mark_usage+0x46/0x150 [ 14.341103][ C2] __lock_acquire+0x20b/0x7e0 [ 14.341106][ C2] ? __lock_acquire+0x44d/0x7e0 [ 14.341110][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.341113][ C2] ? simple_pin_fs+0x24/0x150 [ 14.341117][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.341122][ C2] ? lock_acquire+0x10c/0x170 [ 14.341124][ C2] ? simple_pin_fs+0x24/0x150 [ 14.341128][ C2] _raw_spin_lock+0x33/0x40 [ 14.341132][ C2] ? simple_pin_fs+0x24/0x150 [ 14.341135][ C2] simple_pin_fs+0x24/0x150 [ 14.341139][ C2] debugfs_remove+0x35/0x70 [ 14.341142][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.341148][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.341151][ C2] ? __sk_destruct+0x383/0x780 [ 14.341156][ C2] ? rcu_do_batch+0x34c/0xf20 [ 14.341159][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.341162][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 14.341167][ C2] ? kthread+0x37e/0x600 [ 14.341169][ C2] ? ret_from_fork+0x240/0x320 [ 14.341172][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 14.341175][ C2] ? migrate_enable+0x1f2/0x270 [ 14.341179][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 14.341184][ C2] __put_net+0x19/0x60 [ 14.341188][ C2] __sk_destruct+0x58a/0x780 [ 14.341192][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.341194][ C2] rcu_do_batch+0x34c/0xf20 [ 14.341199][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.341202][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.341205][ C2] ? note_gp_changes+0x182/0x1e0 [ 14.341208][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.341212][ C2] rcu_core+0x2bb/0x500 [ 14.341216][ C2] handle_softirqs+0x218/0x620 [ 14.341220][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.341223][ C2] run_ksoftirqd+0x3f/0x70 [ 14.341226][ C2] smpboot_thread_fn+0x30a/0x960 [ 14.341229][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.341233][ C2] kthread+0x37e/0x600 [ 14.341236][ C2] ? __pfx_kthread+0x10/0x10 [ 14.341238][ C2] ? ret_from_fork+0x1b/0x320 [ 14.341240][ C2] ? __lock_release+0x5d/0x170 [ 14.341244][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.341246][ C2] ? __pfx_kthread+0x10/0x10 [ 14.341249][ C2] ret_from_fork+0x240/0x320 [ 14.341252][ C2] ? __pfx_kthread+0x10/0x10 [ 14.341254][ C2] ret_from_fork_asm+0x1a/0x30 [ 14.341261][ C2] [ 14.350676][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.350956][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 14.351243][ C2] preempt_count: 100, expected: 0 [ 14.351411][ C2] RCU nest depth: 0, expected: 0 [ 14.351587][ C2] INFO: lockdep is turned off. [ 14.351754][ C2] Preemption disabled at: [ 14.351756][ C2] [] handle_softirqs+0xe5/0x620 [ 14.352090][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.352094][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.352096][ C2] Call Trace: [ 14.352097][ C2] [ 14.352099][ C2] dump_stack_lvl+0xb0/0xd0 [ 14.352105][ C2] __might_resched+0x360/0x5a0 [ 14.352111][ C2] down_write+0x72/0x210 [ 14.352115][ C2] ? __pfx_down_write+0x10/0x10 [ 14.352118][ C2] ? simple_recursive_removal+0x33/0x610 [ 14.352122][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.352126][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.352132][ C2] simple_recursive_removal+0x6a/0x610 [ 14.352135][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.352138][ C2] ? __pfx_remove_one+0x10/0x10 [ 14.352143][ C2] debugfs_remove+0x44/0x70 [ 14.352146][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.352151][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.352155][ C2] ? __sk_destruct+0x383/0x780 [ 14.352160][ C2] ? rcu_do_batch+0x34c/0xf20 [ 14.352163][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.352166][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 14.352169][ C2] ? kthread+0x37e/0x600 [ 14.352172][ C2] ? ret_from_fork+0x240/0x320 [ 14.352176][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 14.352181][ C2] ? migrate_enable+0x1f2/0x270 [ 14.352184][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 14.352189][ C2] __put_net+0x19/0x60 [ 14.352192][ C2] __sk_destruct+0x58a/0x780 [ 14.352197][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.352199][ C2] rcu_do_batch+0x34c/0xf20 [ 14.352203][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.352207][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.352210][ C2] ? note_gp_changes+0x182/0x1e0 [ 14.352213][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.352217][ C2] rcu_core+0x2bb/0x500 [ 14.352220][ C2] handle_softirqs+0x218/0x620 [ 14.352224][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.352228][ C2] run_ksoftirqd+0x3f/0x70 [ 14.352231][ C2] smpboot_thread_fn+0x30a/0x960 [ 14.352234][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.352238][ C2] kthread+0x37e/0x600 [ 14.352241][ C2] ? __pfx_kthread+0x10/0x10 [ 14.352243][ C2] ? ret_from_fork+0x1b/0x320 [ 14.352246][ C2] ? __lock_release+0x5d/0x170 [ 14.352249][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.352252][ C2] ? __pfx_kthread+0x10/0x10 [ 14.352255][ C2] ret_from_fork+0x240/0x320 [ 14.352258][ C2] ? __pfx_kthread+0x10/0x10 [ 14.352260][ C2] ret_from_fork_asm+0x1a/0x30 [ 14.352267][ C2] [ 15.900853][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.901188][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 15.901486][ C3] preempt_count: 101, expected: 0 [ 15.901665][ C3] RCU nest depth: 0, expected: 0 [ 15.901837][ C3] INFO: lockdep is turned off. [ 15.902012][ C3] Preemption disabled at: [ 15.902013][ C3] [<0000000000000000>] 0x0 [ 15.902320][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 15.902326][ C3] Tainted: [W]=WARN [ 15.902327][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.902329][ C3] Call Trace: [ 15.902331][ C3] [ 15.902333][ C3] dump_stack_lvl+0xb0/0xd0 [ 15.902341][ C3] __might_resched+0x360/0x5a0 [ 15.902348][ C3] down_write+0x72/0x210 [ 15.902353][ C3] ? __pfx_down_write+0x10/0x10 [ 15.902356][ C3] ? simple_recursive_removal+0x33/0x610 [ 15.902361][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.902365][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.902371][ C3] simple_recursive_removal+0x6a/0x610 [ 15.902374][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.902377][ C3] ? __pfx_remove_one+0x10/0x10 [ 15.902383][ C3] debugfs_remove+0x44/0x70 [ 15.902386][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.902392][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.902395][ C3] ? __sk_destruct+0x383/0x780 [ 15.902401][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.902404][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.902408][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.902412][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.902417][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.902421][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.902424][ C3] ? default_idle+0x9/0x10 [ 15.902427][ C3] ? default_idle_call+0x6d/0xb0 [ 15.902430][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.902433][ C3] ? do_idle+0xf6/0x160 [ 15.902435][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.902438][ C3] ? start_secondary+0x213/0x2a0 [ 15.902442][ C3] ? common_startup_64+0x13e/0x148 [ 15.902447][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 15.902450][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.902455][ C3] __put_net+0x19/0x60 [ 15.902458][ C3] __sk_destruct+0x58a/0x780 [ 15.902462][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.902465][ C3] rcu_do_batch+0x34c/0xf20 [ 15.902469][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.902473][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 15.902479][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.902485][ C3] rcu_core+0x2bb/0x500 [ 15.902490][ C3] handle_softirqs+0x218/0x620 [ 15.902495][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.902498][ C3] irq_exit_rcu+0xe/0x30 [ 15.902501][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.902505][ C3] [ 15.902506][ C3] [ 15.902508][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.902510][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.902514][ C3] Code: 92 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 37 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 [ 15.902517][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 15.902521][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffff895905d9 [ 15.902523][ C3] RDX: ffffed1006c366fb RSI: ffffffff89853b60 RDI: ffffffff86d8d18f [ 15.902525][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c366fa [ 15.902526][ C3] R10: ffff8880361b37d3 R11: ffffffff8ce4c618 R12: 0000000000000000 [ 15.902528][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 15.902532][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.902535][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.902539][ C3] default_idle+0x9/0x10 [ 15.902541][ C3] default_idle_call+0x6d/0xb0 [ 15.902544][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.902547][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.902551][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.902555][ C3] do_idle+0xf6/0x160 [ 15.902559][ C3] cpu_startup_entry+0x54/0x60 [ 15.902562][ C3] start_secondary+0x213/0x2a0 [ 15.902564][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.902569][ C3] common_startup_64+0x13e/0x148 [ 15.902578][ C3]