[ 18.106217][ C3] [ 18.106353][ C3] ================================ [ 18.106538][ C3] WARNING: inconsistent lock state [ 18.106714][ C3] 6.15.0-rc5-virtme #1 Not tainted [ 18.106893][ C3] -------------------------------- [ 18.107070][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 18.107308][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 18.107538][ C3] ffffffff9c7bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 18.107861][ C3] {SOFTIRQ-ON-W} state was registered at: [ 18.108037][ C3] __lock_acquire+0x3eb/0x9d0 [ 18.108294][ C3] lock_acquire.part.0+0xb6/0x240 [ 18.108475][ C3] _raw_spin_lock+0x33/0x40 [ 18.108655][ C3] simple_pin_fs+0x24/0x150 [ 18.108844][ C3] start_creating.part.0+0x3f/0x2f0 [ 18.109023][ C3] debugfs_create_dir+0x6a/0x540 [ 18.109215][ C3] component_debug_init+0x17/0x30 [ 18.109396][ C3] do_one_initcall+0x8c/0x1e0 [ 18.109579][ C3] do_initcalls+0x176/0x280 [ 18.109757][ C3] kernel_init_freeable+0x22d/0x300 [ 18.109935][ C3] kernel_init+0x20/0x200 [ 18.110127][ C3] ret_from_fork+0x31/0x70 [ 18.110309][ C3] ret_from_fork_asm+0x1a/0x30 [ 18.110486][ C3] irq event stamp: 268552 [ 18.110623][ C3] hardirqs last enabled at (268552): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 18.110975][ C3] hardirqs last disabled at (268551): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 18.111340][ C3] softirqs last enabled at (268012): [] handle_softirqs+0x358/0x620 [ 18.111649][ C3] softirqs last disabled at (268037): [] __irq_exit_rcu+0xfa/0x160 [ 18.111958][ C3] [ 18.111958][ C3] other info that might help us debug this: [ 18.112234][ C3] Possible unsafe locking scenario: [ 18.112234][ C3] [ 18.112497][ C3] CPU0 [ 18.112628][ C3] ---- [ 18.112761][ C3] lock(pin_fs_lock); [ 18.112898][ C3] [ 18.113030][ C3] lock(pin_fs_lock); [ 18.113209][ C3] [ 18.113209][ C3] *** DEADLOCK *** [ 18.113209][ C3] [ 18.113471][ C3] 1 lock held by swapper/3/0: [ 18.113650][ C3] #0: ffffffff9c574480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 18.113974][ C3] [ 18.113974][ C3] stack backtrace: [ 18.114215][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 18.114221][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.114223][ C3] Call Trace: [ 18.114225][ C3] [ 18.114227][ C3] dump_stack_lvl+0x82/0xd0 [ 18.114234][ C3] print_usage_bug.part.0+0x25f/0x360 [ 18.114240][ C3] mark_lock_irq+0x343/0x400 [ 18.114245][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 18.114250][ C3] ? save_trace+0x52/0x170 [ 18.114254][ C3] mark_lock+0x174/0x2f0 [ 18.114259][ C3] mark_usage+0x46/0x150 [ 18.114262][ C3] __lock_acquire+0x3eb/0x9d0 [ 18.114267][ C3] lock_acquire.part.0+0xb6/0x240 [ 18.114271][ C3] ? simple_pin_fs+0x24/0x150 [ 18.114276][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.114282][ C3] ? lock_acquire+0x10c/0x170 [ 18.114285][ C3] ? simple_pin_fs+0x24/0x150 [ 18.114289][ C3] _raw_spin_lock+0x33/0x40 [ 18.114293][ C3] ? simple_pin_fs+0x24/0x150 [ 18.114296][ C3] simple_pin_fs+0x24/0x150 [ 18.114300][ C3] debugfs_remove+0x35/0x70 [ 18.114304][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 18.114309][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.114312][ C3] ? __sk_destruct+0x383/0x780 [ 18.114316][ C3] ? rcu_do_batch+0x34c/0xf20 [ 18.114319][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.114322][ C3] ? irq_exit_rcu+0xe/0x30 [ 18.114325][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.114330][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.114333][ C3] ? pv_native_safe_halt+0xf/0x20 [ 18.114336][ C3] ? default_idle+0x9/0x10 [ 18.114339][ C3] ? default_idle_call+0x6d/0xb0 [ 18.114341][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.114347][ C3] ? do_idle+0xf6/0x160 [ 18.114350][ C3] ? cpu_startup_entry+0x54/0x60 [ 18.114353][ C3] ? start_secondary+0x213/0x2a0 [ 18.114358][ C3] ? common_startup_64+0x13e/0x148 [ 18.114364][ C3] __put_net+0x19/0x60 [ 18.114367][ C3] __sk_destruct+0x58a/0x780 [ 18.114371][ C3] ? rcu_do_batch+0x34a/0xf20 [ 18.114374][ C3] rcu_do_batch+0x34c/0xf20 [ 18.114390][ C3] ? find_held_lock+0x2b/0x80 [ 18.114394][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.114398][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 18.114401][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 18.114405][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 18.114409][ C3] rcu_core+0x2bb/0x500 [ 18.114413][ C3] handle_softirqs+0x218/0x620 [ 18.114417][ C3] __irq_exit_rcu+0xfa/0x160 [ 18.114420][ C3] irq_exit_rcu+0xe/0x30 [ 18.114422][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.114425][ C3] [ 18.114426][ C3] [ 18.114428][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.114430][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 18.114435][ C3] Code: b0 b8 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 a3 d0 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 [ 18.114438][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 18.114441][ C3] RAX: 0000000000041703 RBX: 1ffff9200002afc1 RCX: ffffffff9b555a19 [ 18.114443][ C3] RDX: 0000000000000000 RSI: ffffffff9c085f31 RDI: ffffffff9b850ce0 [ 18.114445][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 18.114447][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 18.114449][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 18.114452][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 18.114458][ C3] default_idle+0x9/0x10 [ 18.114460][ C3] default_idle_call+0x6d/0xb0 [ 18.114463][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 18.114466][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 18.114470][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 18.114475][ C3] do_idle+0xf6/0x160 [ 18.114479][ C3] cpu_startup_entry+0x54/0x60 [ 18.114483][ C3] start_secondary+0x213/0x2a0 [ 18.114486][ C3] ? __pfx_start_secondary+0x10/0x10 [ 18.114491][ C3] common_startup_64+0x13e/0x148 [ 18.114497][ C3] [ 18.129019][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.129318][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 18.129607][ C3] preempt_count: 101, expected: 0 [ 18.129780][ C3] RCU nest depth: 0, expected: 0 [ 18.130049][ C3] INFO: lockdep is turned off. [ 18.130212][ C3] Preemption disabled at: [ 18.130214][ C3] [<0000000000000000>] 0x0 [ 18.130516][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 18.130521][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.130523][ C3] Call Trace: [ 18.130525][ C3] [ 18.130527][ C3] dump_stack_lvl+0xb0/0xd0 [ 18.130534][ C3] __might_resched+0x360/0x5a0 [ 18.130540][ C3] down_write+0x72/0x210 [ 18.130544][ C3] ? __pfx_down_write+0x10/0x10 [ 18.130546][ C3] ? simple_recursive_removal+0x3a/0x860 [ 18.130550][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.130557][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 18.130561][ C3] simple_recursive_removal+0x166/0x860 [ 18.130563][ C3] ? __pfx_remove_one+0x10/0x10 [ 18.130567][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 18.130572][ C3] debugfs_remove+0x44/0x70 [ 18.130575][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 18.130580][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.130583][ C3] ? __sk_destruct+0x383/0x780 [ 18.130588][ C3] ? rcu_do_batch+0x34c/0xf20 [ 18.130592][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.130595][ C3] ? irq_exit_rcu+0xe/0x30 [ 18.130598][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.130603][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.130606][ C3] ? pv_native_safe_halt+0xf/0x20 [ 18.130610][ C3] ? default_idle+0x9/0x10 [ 18.130612][ C3] ? default_idle_call+0x6d/0xb0 [ 18.130614][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.130619][ C3] ? do_idle+0xf6/0x160 [ 18.130622][ C3] ? cpu_startup_entry+0x54/0x60 [ 18.130625][ C3] ? start_secondary+0x213/0x2a0 [ 18.130629][ C3] ? common_startup_64+0x13e/0x148 [ 18.130635][ C3] __put_net+0x19/0x60 [ 18.130639][ C3] __sk_destruct+0x58a/0x780 [ 18.130642][ C3] ? rcu_do_batch+0x34a/0xf20 [ 18.130646][ C3] rcu_do_batch+0x34c/0xf20 [ 18.130649][ C3] ? find_held_lock+0x2b/0x80 [ 18.130654][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.130658][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 18.130661][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 18.130665][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 18.130669][ C3] rcu_core+0x2bb/0x500 [ 18.130673][ C3] handle_softirqs+0x218/0x620 [ 18.130678][ C3] __irq_exit_rcu+0xfa/0x160 [ 18.130680][ C3] irq_exit_rcu+0xe/0x30 [ 18.130682][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.130685][ C3] [ 18.130686][ C3] [ 18.130688][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.130690][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 18.130694][ C3] Code: b0 b8 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 a3 d0 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 [ 18.130697][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 18.130700][ C3] RAX: 0000000000041703 RBX: 1ffff9200002afc1 RCX: ffffffff9b555a19 [ 18.130702][ C3] RDX: 0000000000000000 RSI: ffffffff9c085f31 RDI: ffffffff9b850ce0 [ 18.130704][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 18.130706][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 18.130708][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 18.130711][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 18.130720][ C3] default_idle+0x9/0x10 [ 18.130723][ C3] default_idle_call+0x6d/0xb0 [ 18.130725][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 18.130728][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 18.130733][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 18.130737][ C3] do_idle+0xf6/0x160 [ 18.130741][ C3] cpu_startup_entry+0x54/0x60 [ 18.130745][ C3] start_secondary+0x213/0x2a0 [ 18.130748][ C3] ? __pfx_start_secondary+0x10/0x10 [ 18.130753][ C3] common_startup_64+0x13e/0x148 [ 18.130760][ C3] [ 22.038182][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 22.038576][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 22.038924][ C2] preempt_count: 101, expected: 0 [ 22.039117][ C2] RCU nest depth: 0, expected: 0 [ 22.039303][ C2] INFO: lockdep is turned off. [ 22.039498][ C2] Preemption disabled at: [ 22.039500][ C2] [<0000000000000000>] 0x0 [ 22.039829][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 22.039835][ C2] Tainted: [W]=WARN [ 22.039836][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 22.039838][ C2] Call Trace: [ 22.039840][ C2] [ 22.039843][ C2] dump_stack_lvl+0xb0/0xd0 [ 22.039851][ C2] __might_resched+0x360/0x5a0 [ 22.039857][ C2] down_write+0x72/0x210 [ 22.039862][ C2] ? __pfx_down_write+0x10/0x10 [ 22.039865][ C2] ? simple_recursive_removal+0x3a/0x860 [ 22.039869][ C2] ? rcu_is_watching+0x12/0xc0 [ 22.039875][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 22.039880][ C2] simple_recursive_removal+0x166/0x860 [ 22.039882][ C2] ? __pfx_remove_one+0x10/0x10 [ 22.039887][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 22.039891][ C2] debugfs_remove+0x44/0x70 [ 22.039894][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 22.039899][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 22.039902][ C2] ? __sk_destruct+0x383/0x780 [ 22.039908][ C2] ? rcu_do_batch+0x34c/0xf20 [ 22.039912][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 22.039915][ C2] ? irq_exit_rcu+0xe/0x30 [ 22.039919][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 22.039923][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 22.039927][ C2] ? pv_native_safe_halt+0xf/0x20 [ 22.039930][ C2] ? default_idle+0x9/0x10 [ 22.039933][ C2] ? default_idle_call+0x6d/0xb0 [ 22.039935][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 22.039940][ C2] ? do_idle+0xf6/0x160 [ 22.039943][ C2] ? cpu_startup_entry+0x54/0x60 [ 22.039946][ C2] ? start_secondary+0x213/0x2a0 [ 22.039951][ C2] ? common_startup_64+0x13e/0x148 [ 22.039955][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 22.039959][ C2] ? rcu_is_watching+0x12/0xc0 [ 22.039964][ C2] __put_net+0x19/0x60 [ 22.039967][ C2] __sk_destruct+0x58a/0x780 [ 22.039971][ C2] ? rcu_do_batch+0x34a/0xf20 [ 22.039974][ C2] rcu_do_batch+0x34c/0xf20 [ 22.039979][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 22.039983][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 22.039987][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 22.039993][ C2] rcu_core+0x2bb/0x500 [ 22.039996][ C2] handle_softirqs+0x218/0x620 [ 22.040001][ C2] __irq_exit_rcu+0xfa/0x160 [ 22.040004][ C2] irq_exit_rcu+0xe/0x30 [ 22.040006][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 22.040009][ C2] [ 22.040010][ C2] [ 22.040012][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 22.040015][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 22.040019][ C2] Code: b0 b8 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 a3 d0 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 [ 22.040021][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 22.040025][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff9b555a19 [ 22.040027][ C2] RDX: ffffed1006c2667b RSI: ffffffff9b850c60 RDI: ffffffff98d84d8f [ 22.040029][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c2667a [ 22.040031][ C2] R10: ffff8880361333d3 R11: ffffffff9ee2ed50 R12: 0000000000000000 [ 22.040033][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 22.040037][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 22.040041][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 22.040045][ C2] default_idle+0x9/0x10 [ 22.040047][ C2] default_idle_call+0x6d/0xb0 [ 22.040050][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 22.040054][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 22.040058][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 22.040063][ C2] do_idle+0xf6/0x160 [ 22.040067][ C2] cpu_startup_entry+0x54/0x60 [ 22.040071][ C2] start_secondary+0x213/0x2a0 [ 22.040074][ C2] ? __pfx_start_secondary+0x10/0x10 [ 22.040079][ C2] common_startup_64+0x13e/0x148 [ 22.040086][ C2]