[ 15.274211][ C0] [ 15.274426][ C0] ================================ [ 15.274635][ C0] WARNING: inconsistent lock state [ 15.274847][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 15.275053][ C0] -------------------------------- [ 15.275259][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.275514][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.275772][ C0] ffffffff8cdbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.276145][ C0] {SOFTIRQ-ON-W} state was registered at: [ 15.276350][ C0] __lock_acquire+0x3eb/0x9d0 [ 15.276564][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.276767][ C0] _raw_spin_lock+0x33/0x40 [ 15.276976][ C0] simple_pin_fs+0x24/0x150 [ 15.277180][ C0] start_creating.part.0+0x3f/0x2f0 [ 15.277384][ C0] debugfs_create_dir+0x6a/0x540 [ 15.277588][ C0] component_debug_init+0x17/0x30 [ 15.277798][ C0] do_one_initcall+0x8f/0x1e0 [ 15.278010][ C0] do_initcalls+0x176/0x280 [ 15.278217][ C0] kernel_init_freeable+0x22d/0x300 [ 15.278424][ C0] kernel_init+0x20/0x200 [ 15.278637][ C0] ret_from_fork+0x31/0x70 [ 15.278843][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.279049][ C0] irq event stamp: 472334 [ 15.279205][ C0] hardirqs last enabled at (472334): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.279611][ C0] hardirqs last disabled at (472333): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.280017][ C0] softirqs last enabled at (470202): [] handle_softirqs+0x358/0x620 [ 15.280376][ C0] softirqs last disabled at (470227): [] __irq_exit_rcu+0xfa/0x160 [ 15.280731][ C0] [ 15.280731][ C0] other info that might help us debug this: [ 15.281031][ C0] Possible unsafe locking scenario: [ 15.281031][ C0] [ 15.281332][ C0] CPU0 [ 15.281484][ C0] ---- [ 15.281638][ C0] lock(pin_fs_lock); [ 15.281793][ C0] [ 15.281946][ C0] lock(pin_fs_lock); [ 15.282100][ C0] [ 15.282100][ C0] *** DEADLOCK *** [ 15.282100][ C0] [ 15.282402][ C0] 1 lock held by swapper/0/0: [ 15.282606][ C0] #0: ffffffff8cb749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.282972][ C0] [ 15.282972][ C0] stack backtrace: [ 15.283224][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.283228][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.283230][ C0] Call Trace: [ 15.283232][ C0] [ 15.283233][ C0] dump_stack_lvl+0x82/0xd0 [ 15.283239][ C0] print_usage_bug.part.0+0x25f/0x360 [ 15.283244][ C0] mark_lock_irq+0x343/0x400 [ 15.283248][ C0] ? is_bpf_text_address+0x67/0x120 [ 15.283254][ C0] ? __lock_release+0x5d/0x170 [ 15.283257][ C0] ? save_trace+0x52/0x170 [ 15.283262][ C0] mark_lock+0x174/0x2f0 [ 15.283266][ C0] mark_usage+0x46/0x150 [ 15.283270][ C0] __lock_acquire+0x3eb/0x9d0 [ 15.283275][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.283278][ C0] ? simple_pin_fs+0x24/0x150 [ 15.283281][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.283287][ C0] ? lock_acquire+0x10c/0x170 [ 15.283289][ C0] ? simple_pin_fs+0x24/0x150 [ 15.283292][ C0] _raw_spin_lock+0x33/0x40 [ 15.283295][ C0] ? simple_pin_fs+0x24/0x150 [ 15.283298][ C0] simple_pin_fs+0x24/0x150 [ 15.283301][ C0] debugfs_remove+0x35/0x70 [ 15.283304][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.283308][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.283312][ C0] ? __sk_destruct+0x383/0x780 [ 15.283317][ C0] ? rcu_do_batch+0x34f/0xf20 [ 15.283320][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.283323][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.283325][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.283329][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.283333][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.283336][ C0] ? default_idle+0x9/0x10 [ 15.283338][ C0] ? default_idle_call+0x6d/0xb0 [ 15.283340][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.283345][ C0] ? do_idle+0xf6/0x160 [ 15.283348][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.283351][ C0] ? rest_init+0x14b/0x260 [ 15.283354][ C0] ? start_kernel+0x350/0x410 [ 15.283359][ C0] __put_net+0x19/0x60 [ 15.283363][ C0] __sk_destruct+0x58a/0x780 [ 15.283366][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.283369][ C0] rcu_do_batch+0x34f/0xf20 [ 15.283373][ C0] ? find_held_lock+0x2b/0x80 [ 15.283377][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.283381][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.283384][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.283388][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.283392][ C0] rcu_core+0x2bb/0x500 [ 15.283396][ C0] handle_softirqs+0x218/0x620 [ 15.283400][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.283403][ C0] irq_exit_rcu+0xe/0x30 [ 15.283405][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.283409][ C0] [ 15.283410][ C0] [ 15.283411][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.283414][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.283418][ C0] 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.283421][ C0] RSP: 0018:ffffffff8c807df8 EFLAGS: 00000246 [ 15.283424][ C0] RAX: 0000000000072cd1 RBX: 1ffffffff1900fc3 RCX: ffffffff8bb5ba19 [ 15.283426][ C0] RDX: 0000000000000000 RSI: ffffffff8c687785 RDI: ffffffff8be51260 [ 15.283428][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 15.283430][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.283432][ C0] R13: ffffffff8c81f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.283436][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.283440][ C0] default_idle+0x9/0x10 [ 15.283443][ C0] default_idle_call+0x6d/0xb0 [ 15.283445][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.283449][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.283453][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.283460][ C0] do_idle+0xf6/0x160 [ 15.283464][ C0] cpu_startup_entry+0x54/0x60 [ 15.283467][ C0] rest_init+0x14b/0x260 [ 15.283471][ C0] start_kernel+0x350/0x410 [ 15.283475][ C0] x86_64_start_reservations+0x18/0x30 [ 15.283479][ C0] x86_64_start_kernel+0xba/0x110 [ 15.283483][ C0] common_startup_64+0x13e/0x148 [ 15.283491][ C0] [ 15.300148][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.300483][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 15.300815][ C0] preempt_count: 101, expected: 0 [ 15.301006][ C0] RCU nest depth: 0, expected: 0 [ 15.301194][ C0] INFO: lockdep is turned off. [ 15.301387][ C0] Preemption disabled at: [ 15.301389][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 15.301818][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.301823][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.301824][ C0] Call Trace: [ 15.301826][ C0] [ 15.301827][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.301833][ C0] __might_resched+0x360/0x5a0 [ 15.301838][ C0] down_write+0x72/0x210 [ 15.301842][ C0] ? __pfx_down_write+0x10/0x10 [ 15.301845][ C0] ? simple_recursive_removal+0x3a/0x860 [ 15.301849][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.301855][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.301859][ C0] simple_recursive_removal+0x166/0x860 [ 15.301862][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.301865][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.301870][ C0] debugfs_remove+0x44/0x70 [ 15.301873][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.301877][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.301880][ C0] ? __sk_destruct+0x383/0x780 [ 15.301884][ C0] ? rcu_do_batch+0x34f/0xf20 [ 15.301888][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.301891][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.301894][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.301898][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.301901][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.301905][ C0] ? default_idle+0x9/0x10 [ 15.301907][ C0] ? default_idle_call+0x6d/0xb0 [ 15.301910][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.301914][ C0] ? do_idle+0xf6/0x160 [ 15.301917][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.301920][ C0] ? rest_init+0x14b/0x260 [ 15.301922][ C0] ? start_kernel+0x350/0x410 [ 15.301929][ C0] __put_net+0x19/0x60 [ 15.301932][ C0] __sk_destruct+0x58a/0x780 [ 15.301936][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.301939][ C0] rcu_do_batch+0x34f/0xf20 [ 15.301943][ C0] ? find_held_lock+0x2b/0x80 [ 15.301947][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.301951][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.301955][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.301959][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.301963][ C0] rcu_core+0x2bb/0x500 [ 15.301967][ C0] handle_softirqs+0x218/0x620 [ 15.301972][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.301975][ C0] irq_exit_rcu+0xe/0x30 [ 15.301977][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.301981][ C0] [ 15.301982][ C0] [ 15.301983][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.301986][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.301990][ C0] 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.301992][ C0] RSP: 0018:ffffffff8c807df8 EFLAGS: 00000246 [ 15.301995][ C0] RAX: 0000000000072cd1 RBX: 1ffffffff1900fc3 RCX: ffffffff8bb5ba19 [ 15.301997][ C0] RDX: 0000000000000000 RSI: ffffffff8c687785 RDI: ffffffff8be51260 [ 15.301999][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 15.302001][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.302003][ C0] R13: ffffffff8c81f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.302006][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.302011][ C0] default_idle+0x9/0x10 [ 15.302014][ C0] default_idle_call+0x6d/0xb0 [ 15.302016][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.302020][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.302024][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.302030][ C0] do_idle+0xf6/0x160 [ 15.302034][ C0] cpu_startup_entry+0x54/0x60 [ 15.302038][ C0] rest_init+0x14b/0x260 [ 15.302041][ C0] start_kernel+0x350/0x410 [ 15.302046][ C0] x86_64_start_reservations+0x18/0x30 [ 15.302050][ C0] x86_64_start_kernel+0xba/0x110 [ 15.302054][ C0] common_startup_64+0x13e/0x148 [ 15.302061][ C0] [ 17.012897][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.013268][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 17.013612][ C0] preempt_count: 101, expected: 0 [ 17.013806][ C0] RCU nest depth: 0, expected: 0 [ 17.013997][ C0] INFO: lockdep is turned off. [ 17.014191][ C0] Preemption disabled at: [ 17.014192][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 17.014640][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 17.014645][ C0] Tainted: [W]=WARN [ 17.014647][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.014649][ C0] Call Trace: [ 17.014650][ C0] [ 17.014652][ C0] dump_stack_lvl+0xb0/0xd0 [ 17.014658][ C0] __might_resched+0x360/0x5a0 [ 17.014664][ C0] down_write+0x72/0x210 [ 17.014669][ C0] ? __pfx_down_write+0x10/0x10 [ 17.014672][ C0] ? simple_recursive_removal+0x3a/0x860 [ 17.014677][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.014683][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.014688][ C0] simple_recursive_removal+0x166/0x860 [ 17.014690][ C0] ? __pfx_remove_one+0x10/0x10 [ 17.014695][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.014699][ C0] debugfs_remove+0x44/0x70 [ 17.014702][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 17.014707][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.014710][ C0] ? __sk_destruct+0x383/0x780 [ 17.014716][ C0] ? rcu_do_batch+0x34f/0xf20 [ 17.014720][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.014723][ C0] ? irq_exit_rcu+0xe/0x30 [ 17.014727][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.014731][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.014735][ C0] ? pv_native_safe_halt+0xf/0x20 [ 17.014738][ C0] ? default_idle+0x9/0x10 [ 17.014741][ C0] ? default_idle_call+0x6d/0xb0 [ 17.014743][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.014748][ C0] ? do_idle+0xf6/0x160 [ 17.014751][ C0] ? cpu_startup_entry+0x54/0x60 [ 17.014754][ C0] ? rest_init+0x14b/0x260 [ 17.014757][ C0] ? start_kernel+0x350/0x410 [ 17.014763][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.014767][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.014772][ C0] __put_net+0x19/0x60 [ 17.014775][ C0] __sk_destruct+0x58a/0x780 [ 17.014779][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.014782][ C0] rcu_do_batch+0x34f/0xf20 [ 17.014787][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.014792][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.014797][ C0] rcu_core+0x2bb/0x500 [ 17.014801][ C0] handle_softirqs+0x218/0x620 [ 17.014805][ C0] __irq_exit_rcu+0xfa/0x160 [ 17.014808][ C0] irq_exit_rcu+0xe/0x30 [ 17.014810][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.014814][ C0] [ 17.014815][ C0] [ 17.014816][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.014819][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.014823][ C0] 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 [ 17.014826][ C0] RSP: 0018:ffffffff8c807df8 EFLAGS: 00000246 [ 17.014829][ C0] RAX: 0000000000000000 RBX: 1ffffffff1900fc3 RCX: ffffffff8bb5ba19 [ 17.014831][ C0] RDX: ffffed1006c0667b RSI: ffffffff8be511e0 RDI: ffffffff8938633f [ 17.014833][ C0] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c0667a [ 17.014835][ C0] R10: ffff8880360333d3 R11: ffff888001bdcb58 R12: 0000000000000000 [ 17.014837][ C0] R13: ffffffff8c81f240 R14: dffffc0000000000 R15: 0000000000014770 [ 17.014841][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.014844][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.014849][ C0] default_idle+0x9/0x10 [ 17.014851][ C0] default_idle_call+0x6d/0xb0 [ 17.014853][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 17.014857][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.014861][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.014868][ C0] do_idle+0xf6/0x160 [ 17.014872][ C0] cpu_startup_entry+0x54/0x60 [ 17.014876][ C0] rest_init+0x14b/0x260 [ 17.014879][ C0] start_kernel+0x350/0x410 [ 17.014883][ C0] x86_64_start_reservations+0x18/0x30 [ 17.014888][ C0] x86_64_start_kernel+0xba/0x110 [ 17.014892][ C0] common_startup_64+0x13e/0x148 [ 17.014900][ C0]