[ 15.759425][ C2] [ 15.759562][ C2] ================================ [ 15.759753][ C2] WARNING: inconsistent lock state [ 15.759940][ C2] 6.15.0-rc7-virtme #1 Not tainted [ 15.760127][ C2] -------------------------------- [ 15.760316][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.760550][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.760787][ C2] ffffffff9b7bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.761124][ C2] {SOFTIRQ-ON-W} state was registered at: [ 15.761311][ C2] __lock_acquire+0x3eb/0x9d0 [ 15.761508][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.761696][ C2] _raw_spin_lock+0x33/0x40 [ 15.761887][ C2] simple_pin_fs+0x24/0x150 [ 15.762078][ C2] start_creating.part.0+0x3f/0x2f0 [ 15.762271][ C2] debugfs_create_dir+0x6a/0x540 [ 15.762469][ C2] component_debug_init+0x17/0x30 [ 15.762657][ C2] do_one_initcall+0x8f/0x1e0 [ 15.762847][ C2] do_initcalls+0x176/0x280 [ 15.763038][ C2] kernel_init_freeable+0x22d/0x300 [ 15.763228][ C2] kernel_init+0x20/0x200 [ 15.763417][ C2] ret_from_fork+0x31/0x70 [ 15.763605][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.763793][ C2] irq event stamp: 289652 [ 15.763939][ C2] hardirqs last enabled at (289652): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.764319][ C2] hardirqs last disabled at (289651): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.764690][ C2] softirqs last enabled at (288692): [] handle_softirqs+0x358/0x620 [ 15.765026][ C2] softirqs last disabled at (288699): [] __irq_exit_rcu+0xfa/0x160 [ 15.765357][ C2] [ 15.765357][ C2] other info that might help us debug this: [ 15.765631][ C2] Possible unsafe locking scenario: [ 15.765631][ C2] [ 15.765903][ C2] CPU0 [ 15.766048][ C2] ---- [ 15.766190][ C2] lock(pin_fs_lock); [ 15.766332][ C2] [ 15.766469][ C2] lock(pin_fs_lock); [ 15.766614][ C2] [ 15.766614][ C2] *** DEADLOCK *** [ 15.766614][ C2] [ 15.766887][ C2] 1 lock held by swapper/2/0: [ 15.767081][ C2] #0: ffffffff9b5749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.767433][ C2] [ 15.767433][ C2] stack backtrace: [ 15.767669][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.767674][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.767676][ C2] Call Trace: [ 15.767678][ C2] [ 15.767680][ C2] dump_stack_lvl+0x82/0xd0 [ 15.767686][ C2] print_usage_bug.part.0+0x25f/0x360 [ 15.767692][ C2] mark_lock_irq+0x343/0x400 [ 15.767697][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.767703][ C2] ? save_trace+0x52/0x170 [ 15.767708][ C2] mark_lock+0x174/0x2f0 [ 15.767712][ C2] mark_usage+0x46/0x150 [ 15.767716][ C2] __lock_acquire+0x3eb/0x9d0 [ 15.767722][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.767724][ C2] ? simple_pin_fs+0x24/0x150 [ 15.767727][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.767733][ C2] ? lock_acquire+0x10c/0x170 [ 15.767735][ C2] ? simple_pin_fs+0x24/0x150 [ 15.767739][ C2] _raw_spin_lock+0x33/0x40 [ 15.767742][ C2] ? simple_pin_fs+0x24/0x150 [ 15.767744][ C2] simple_pin_fs+0x24/0x150 [ 15.767748][ C2] debugfs_remove+0x35/0x70 [ 15.767751][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.767756][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.767760][ C2] ? __sk_destruct+0x383/0x780 [ 15.767765][ C2] ? rcu_do_batch+0x34f/0xf20 [ 15.767768][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.767772][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.767774][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.767778][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.767781][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.767785][ C2] ? default_idle+0x9/0x10 [ 15.767787][ C2] ? default_idle_call+0x6d/0xb0 [ 15.767790][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.767795][ C2] ? do_idle+0xf6/0x160 [ 15.767798][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.767801][ C2] ? start_secondary+0x213/0x2a0 [ 15.767806][ C2] ? common_startup_64+0x13e/0x148 [ 15.767812][ C2] __put_net+0x19/0x60 [ 15.767815][ C2] __sk_destruct+0x58a/0x780 [ 15.767820][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.767823][ C2] rcu_do_batch+0x34f/0xf20 [ 15.767827][ C2] ? find_held_lock+0x2b/0x80 [ 15.767831][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.767835][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.767839][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.767842][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.767847][ C2] rcu_core+0x2bb/0x500 [ 15.767851][ C2] handle_softirqs+0x218/0x620 [ 15.767855][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.767858][ C2] irq_exit_rcu+0xe/0x30 [ 15.767860][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.767864][ C2] [ 15.767865][ C2] [ 15.767867][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.767870][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.767874][ C2] 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 [ 15.767877][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 15.767880][ C2] RAX: 00000000000467b9 RBX: 1ffff92000028fc1 RCX: ffffffff9a55ba19 [ 15.767882][ C2] RDX: 0000000000000000 RSI: ffffffff9b087785 RDI: ffffffff9a851260 [ 15.767884][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 15.767886][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.767887][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 15.767891][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.767896][ C2] default_idle+0x9/0x10 [ 15.767899][ C2] default_idle_call+0x6d/0xb0 [ 15.767901][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.767905][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.767910][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.767915][ C2] do_idle+0xf6/0x160 [ 15.767919][ C2] cpu_startup_entry+0x54/0x60 [ 15.767923][ C2] start_secondary+0x213/0x2a0 [ 15.767927][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.767932][ C2] common_startup_64+0x13e/0x148 [ 15.767938][ C2] [ 15.783476][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.783807][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 15.784127][ C2] preempt_count: 101, expected: 0 [ 15.784317][ C2] RCU nest depth: 0, expected: 0 [ 15.784625][ C2] INFO: lockdep is turned off. [ 15.784820][ C2] Preemption disabled at: [ 15.784822][ C2] [<0000000000000000>] 0x0 [ 15.785155][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.785159][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.785162][ C2] Call Trace: [ 15.785164][ C2] [ 15.785165][ C2] dump_stack_lvl+0xb0/0xd0 [ 15.785173][ C2] __might_resched+0x360/0x5a0 [ 15.785180][ C2] down_write+0x72/0x210 [ 15.785184][ C2] ? __pfx_down_write+0x10/0x10 [ 15.785187][ C2] ? simple_recursive_removal+0x3a/0x860 [ 15.785191][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.785198][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.785203][ C2] simple_recursive_removal+0x166/0x860 [ 15.785205][ C2] ? __pfx_remove_one+0x10/0x10 [ 15.785209][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.785214][ C2] debugfs_remove+0x44/0x70 [ 15.785217][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.785222][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.785225][ C2] ? __sk_destruct+0x383/0x780 [ 15.785230][ C2] ? rcu_do_batch+0x34f/0xf20 [ 15.785234][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.785237][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.785241][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.785245][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.785248][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.785252][ C2] ? default_idle+0x9/0x10 [ 15.785254][ C2] ? default_idle_call+0x6d/0xb0 [ 15.785257][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.785261][ C2] ? do_idle+0xf6/0x160 [ 15.785264][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.785267][ C2] ? start_secondary+0x213/0x2a0 [ 15.785271][ C2] ? common_startup_64+0x13e/0x148 [ 15.785277][ C2] __put_net+0x19/0x60 [ 15.785281][ C2] __sk_destruct+0x58a/0x780 [ 15.785285][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.785288][ C2] rcu_do_batch+0x34f/0xf20 [ 15.785292][ C2] ? find_held_lock+0x2b/0x80 [ 15.785296][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.785300][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.785304][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.785308][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.785313][ C2] rcu_core+0x2bb/0x500 [ 15.785316][ C2] handle_softirqs+0x218/0x620 [ 15.785321][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.785324][ C2] irq_exit_rcu+0xe/0x30 [ 15.785326][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.785330][ C2] [ 15.785331][ C2] [ 15.785333][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.785336][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.785340][ C2] 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 [ 15.785343][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 15.785346][ C2] RAX: 00000000000467b9 RBX: 1ffff92000028fc1 RCX: ffffffff9a55ba19 [ 15.785348][ C2] RDX: 0000000000000000 RSI: ffffffff9b087785 RDI: ffffffff9a851260 [ 15.785350][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 15.785352][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.785354][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 15.785358][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.785363][ C2] default_idle+0x9/0x10 [ 15.785365][ C2] default_idle_call+0x6d/0xb0 [ 15.785368][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.785372][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.785376][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.785381][ C2] do_idle+0xf6/0x160 [ 15.785385][ C2] cpu_startup_entry+0x54/0x60 [ 15.785389][ C2] start_secondary+0x213/0x2a0 [ 15.785393][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.785398][ C2] common_startup_64+0x13e/0x148 [ 15.785404][ C2] [ 17.955354][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.955761][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 17.956042][ C1] preempt_count: 100, expected: 0 [ 17.956202][ C1] RCU nest depth: 0, expected: 0 [ 17.956360][ C1] INFO: lockdep is turned off. [ 17.956516][ C1] Preemption disabled at: [ 17.956518][ C1] [] handle_softirqs+0xe5/0x620 [ 17.956847][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 17.956853][ C1] Tainted: [W]=WARN [ 17.956854][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.956856][ C1] Call Trace: [ 17.956858][ C1] [ 17.956860][ C1] dump_stack_lvl+0xb0/0xd0 [ 17.956868][ C1] __might_resched+0x360/0x5a0 [ 17.956874][ C1] down_write+0x72/0x210 [ 17.956878][ C1] ? __pfx_down_write+0x10/0x10 [ 17.956882][ C1] ? simple_recursive_removal+0x3a/0x860 [ 17.956887][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.956893][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 17.956898][ C1] simple_recursive_removal+0x166/0x860 [ 17.956901][ C1] ? __pfx_remove_one+0x10/0x10 [ 17.956906][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 17.956910][ C1] debugfs_remove+0x44/0x70 [ 17.956913][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 17.956918][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.956921][ C1] ? __sk_destruct+0x383/0x780 [ 17.956927][ C1] ? rcu_do_batch+0x34f/0xf20 [ 17.956931][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.956935][ C1] ? smpboot_thread_fn+0x307/0x960 [ 17.956938][ C1] ? kthread+0x37b/0x600 [ 17.956943][ C1] ? ret_from_fork+0x31/0x70 [ 17.956946][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 17.956951][ C1] ? migrate_enable+0x1f2/0x270 [ 17.956956][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 17.956960][ C1] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.956964][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.956969][ C1] __put_net+0x19/0x60 [ 17.956972][ C1] __sk_destruct+0x58a/0x780 [ 17.956976][ C1] ? rcu_do_batch+0x34a/0xf20 [ 17.956979][ C1] rcu_do_batch+0x34f/0xf20 [ 17.956984][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.956989][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.956992][ C1] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.956998][ C1] rcu_core+0x2bb/0x500 [ 17.957002][ C1] handle_softirqs+0x218/0x620 [ 17.957006][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 17.957009][ C1] run_ksoftirqd+0x3f/0x70 [ 17.957011][ C1] smpboot_thread_fn+0x307/0x960 [ 17.957015][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 17.957018][ C1] kthread+0x37b/0x600 [ 17.957022][ C1] ? __pfx_kthread+0x10/0x10 [ 17.957025][ C1] ? ret_from_fork+0x1b/0x70 [ 17.957027][ C1] ? __lock_release+0x5d/0x170 [ 17.957030][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.957033][ C1] ? __pfx_kthread+0x10/0x10 [ 17.957037][ C1] ret_from_fork+0x31/0x70 [ 17.957039][ C1] ? __pfx_kthread+0x10/0x10 [ 17.957042][ C1] ret_from_fork_asm+0x1a/0x30 [ 17.957049][ C1]