[ 19.012002][ C3] [ 19.012158][ C3] ================================ [ 19.012360][ C3] WARNING: inconsistent lock state [ 19.012567][ C3] 6.15.0-rc7-virtme #1 Not tainted [ 19.012774][ C3] -------------------------------- [ 19.012977][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 19.013265][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 19.013560][ C3] ffffffffbbfbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 19.014078][ C3] {SOFTIRQ-ON-W} state was registered at: [ 19.014420][ C3] __lock_acquire+0x3eb/0x9d0 [ 19.014755][ C3] lock_acquire.part.0+0xb6/0x240 [ 19.015027][ C3] _raw_spin_lock+0x33/0x40 [ 19.015220][ C3] simple_pin_fs+0x24/0x150 [ 19.015408][ C3] start_creating.part.0+0x3f/0x2f0 [ 19.015597][ C3] debugfs_create_dir+0x6a/0x540 [ 19.015800][ C3] component_debug_init+0x17/0x30 [ 19.015990][ C3] do_one_initcall+0x8f/0x1e0 [ 19.016184][ C3] do_initcalls+0x176/0x280 [ 19.016373][ C3] kernel_init_freeable+0x22d/0x300 [ 19.016560][ C3] kernel_init+0x20/0x200 [ 19.016763][ C3] ret_from_fork+0x31/0x70 [ 19.017009][ C3] ret_from_fork_asm+0x1a/0x30 [ 19.017198][ C3] irq event stamp: 280352 [ 19.017341][ C3] hardirqs last enabled at (280352): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.017721][ C3] hardirqs last disabled at (280351): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 19.018108][ C3] softirqs last enabled at (279830): [] handle_softirqs+0x358/0x620 [ 19.018457][ C3] softirqs last disabled at (279837): [] __irq_exit_rcu+0xfa/0x160 [ 19.018876][ C3] [ 19.018876][ C3] other info that might help us debug this: [ 19.019156][ C3] Possible unsafe locking scenario: [ 19.019156][ C3] [ 19.019433][ C3] CPU0 [ 19.019576][ C3] ---- [ 19.019732][ C3] lock(pin_fs_lock); [ 19.019889][ C3] [ 19.020038][ C3] lock(pin_fs_lock); [ 19.020190][ C3] [ 19.020190][ C3] *** DEADLOCK *** [ 19.020190][ C3] [ 19.020488][ C3] 1 lock held by swapper/3/0: [ 19.020689][ C3] #0: ffffffffbbd749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 19.021063][ C3] [ 19.021063][ C3] stack backtrace: [ 19.021316][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 19.021321][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.021323][ C3] Call Trace: [ 19.021325][ C3] [ 19.021328][ C3] dump_stack_lvl+0x82/0xd0 [ 19.021334][ C3] print_usage_bug.part.0+0x25f/0x360 [ 19.021340][ C3] mark_lock_irq+0x343/0x400 [ 19.021345][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 19.021351][ C3] ? save_trace+0x52/0x170 [ 19.021355][ C3] mark_lock+0x174/0x2f0 [ 19.021359][ C3] mark_usage+0x46/0x150 [ 19.021363][ C3] __lock_acquire+0x3eb/0x9d0 [ 19.021369][ C3] lock_acquire.part.0+0xb6/0x240 [ 19.021371][ C3] ? simple_pin_fs+0x24/0x150 [ 19.021375][ C3] ? rcu_is_watching+0x12/0xc0 [ 19.021381][ C3] ? lock_acquire+0x10c/0x170 [ 19.021383][ C3] ? simple_pin_fs+0x24/0x150 [ 19.021386][ C3] _raw_spin_lock+0x33/0x40 [ 19.021391][ C3] ? simple_pin_fs+0x24/0x150 [ 19.021393][ C3] simple_pin_fs+0x24/0x150 [ 19.021397][ C3] debugfs_remove+0x35/0x70 [ 19.021400][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 19.021406][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.021409][ C3] ? __sk_destruct+0x383/0x780 [ 19.021414][ C3] ? rcu_do_batch+0x34f/0xf20 [ 19.021417][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.021420][ C3] ? irq_exit_rcu+0xe/0x30 [ 19.021423][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.021427][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.021431][ C3] ? pv_native_safe_halt+0xf/0x20 [ 19.021435][ C3] ? default_idle+0x9/0x10 [ 19.021437][ C3] ? default_idle_call+0x6d/0xb0 [ 19.021439][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.021445][ C3] ? do_idle+0xf6/0x160 [ 19.021448][ C3] ? cpu_startup_entry+0x54/0x60 [ 19.021451][ C3] ? start_secondary+0x213/0x2a0 [ 19.021456][ C3] ? common_startup_64+0x13e/0x148 [ 19.021462][ C3] __put_net+0x19/0x60 [ 19.021466][ C3] __sk_destruct+0x58a/0x780 [ 19.021470][ C3] ? rcu_do_batch+0x34a/0xf20 [ 19.021473][ C3] rcu_do_batch+0x34f/0xf20 [ 19.021477][ C3] ? find_held_lock+0x2b/0x80 [ 19.021481][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.021484][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.021488][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.021492][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 19.021496][ C3] rcu_core+0x2bb/0x500 [ 19.021500][ C3] handle_softirqs+0x218/0x620 [ 19.021505][ C3] __irq_exit_rcu+0xfa/0x160 [ 19.021508][ C3] irq_exit_rcu+0xe/0x30 [ 19.021510][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.021513][ C3] [ 19.021515][ C3] [ 19.021516][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.021519][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 19.021523][ C3] 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 [ 19.021526][ C3] RSP: 0000:ffffc90000157de8 EFLAGS: 00000246 [ 19.021531][ C3] RAX: 000000000004451b RBX: 1ffff9200002afc1 RCX: ffffffffbad5ba19 [ 19.021534][ C3] RDX: 0000000000000000 RSI: ffffffffbb887785 RDI: ffffffffbb051260 [ 19.021537][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 19.021539][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 19.021541][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 19.021547][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 19.021555][ C3] default_idle+0x9/0x10 [ 19.021558][ C3] default_idle_call+0x6d/0xb0 [ 19.021562][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 19.021568][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 19.021575][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 19.021583][ C3] do_idle+0xf6/0x160 [ 19.021589][ C3] cpu_startup_entry+0x54/0x60 [ 19.021594][ C3] start_secondary+0x213/0x2a0 [ 19.021599][ C3] ? __pfx_start_secondary+0x10/0x10 [ 19.021607][ C3] common_startup_64+0x13e/0x148 [ 19.021619][ C3] [ 19.043911][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 19.044233][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 19.044654][ C3] preempt_count: 101, expected: 0 [ 19.044831][ C3] RCU nest depth: 0, expected: 0 [ 19.045021][ C3] INFO: lockdep is turned off. [ 19.045195][ C3] Preemption disabled at: [ 19.045197][ C3] [<0000000000000000>] 0x0 [ 19.045517][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 19.045522][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.045525][ C3] Call Trace: [ 19.045526][ C3] [ 19.045529][ C3] dump_stack_lvl+0xb0/0xd0 [ 19.045537][ C3] __might_resched+0x360/0x5a0 [ 19.045544][ C3] down_write+0x72/0x210 [ 19.045549][ C3] ? __pfx_down_write+0x10/0x10 [ 19.045552][ C3] ? simple_recursive_removal+0x3a/0x860 [ 19.045556][ C3] ? rcu_is_watching+0x12/0xc0 [ 19.045563][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 19.045567][ C3] simple_recursive_removal+0x166/0x860 [ 19.045570][ C3] ? __pfx_remove_one+0x10/0x10 [ 19.045575][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 19.045579][ C3] debugfs_remove+0x44/0x70 [ 19.045582][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 19.045588][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.045591][ C3] ? __sk_destruct+0x383/0x780 [ 19.045597][ C3] ? rcu_do_batch+0x34f/0xf20 [ 19.045601][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.045604][ C3] ? irq_exit_rcu+0xe/0x30 [ 19.045608][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.045613][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.045616][ C3] ? pv_native_safe_halt+0xf/0x20 [ 19.045620][ C3] ? default_idle+0x9/0x10 [ 19.045622][ C3] ? default_idle_call+0x6d/0xb0 [ 19.045624][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.045629][ C3] ? do_idle+0xf6/0x160 [ 19.045632][ C3] ? cpu_startup_entry+0x54/0x60 [ 19.045635][ C3] ? start_secondary+0x213/0x2a0 [ 19.045640][ C3] ? common_startup_64+0x13e/0x148 [ 19.045646][ C3] __put_net+0x19/0x60 [ 19.045650][ C3] __sk_destruct+0x58a/0x780 [ 19.045654][ C3] ? rcu_do_batch+0x34a/0xf20 [ 19.045657][ C3] rcu_do_batch+0x34f/0xf20 [ 19.045660][ C3] ? find_held_lock+0x2b/0x80 [ 19.045666][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.045670][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.045674][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.045678][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 19.045682][ C3] rcu_core+0x2bb/0x500 [ 19.045686][ C3] handle_softirqs+0x218/0x620 [ 19.045691][ C3] __irq_exit_rcu+0xfa/0x160 [ 19.045694][ C3] irq_exit_rcu+0xe/0x30 [ 19.045696][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.045700][ C3] [ 19.045701][ C3] [ 19.045702][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.045705][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 19.045710][ C3] 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 [ 19.045714][ C3] RSP: 0000:ffffc90000157de8 EFLAGS: 00000246 [ 19.045720][ C3] RAX: 000000000004451b RBX: 1ffff9200002afc1 RCX: ffffffffbad5ba19 [ 19.045723][ C3] RDX: 0000000000000000 RSI: ffffffffbb887785 RDI: ffffffffbb051260 [ 19.045726][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 19.045728][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 19.045731][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 19.045738][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 19.045745][ C3] default_idle+0x9/0x10 [ 19.045747][ C3] default_idle_call+0x6d/0xb0 [ 19.045750][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 19.045754][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 19.045759][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 19.045764][ C3] do_idle+0xf6/0x160 [ 19.045768][ C3] cpu_startup_entry+0x54/0x60 [ 19.045772][ C3] start_secondary+0x213/0x2a0 [ 19.045775][ C3] ? __pfx_start_secondary+0x10/0x10 [ 19.045780][ C3] common_startup_64+0x13e/0x148 [ 19.045787][ C3] [ 21.474712][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 21.475129][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 21.475520][ C3] preempt_count: 101, expected: 0 [ 21.475733][ C3] RCU nest depth: 0, expected: 0 [ 21.475946][ C3] INFO: lockdep is turned off. [ 21.476161][ C3] Preemption disabled at: [ 21.476163][ C3] [<0000000000000000>] 0x0 [ 21.476553][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 21.476559][ C3] Tainted: [W]=WARN [ 21.476560][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.476562][ C3] Call Trace: [ 21.476564][ C3] [ 21.476566][ C3] dump_stack_lvl+0xb0/0xd0 [ 21.476576][ C3] __might_resched+0x360/0x5a0 [ 21.476583][ C3] down_write+0x72/0x210 [ 21.476588][ C3] ? __pfx_down_write+0x10/0x10 [ 21.476591][ C3] ? simple_recursive_removal+0x3a/0x860 [ 21.476595][ C3] ? rcu_is_watching+0x12/0xc0 [ 21.476602][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 21.476608][ C3] simple_recursive_removal+0x166/0x860 [ 21.476611][ C3] ? __pfx_remove_one+0x10/0x10 [ 21.476615][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 21.476620][ C3] debugfs_remove+0x44/0x70 [ 21.476623][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 21.476628][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 21.476632][ C3] ? __sk_destruct+0x383/0x780 [ 21.476637][ C3] ? rcu_do_batch+0x34f/0xf20 [ 21.476641][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 21.476644][ C3] ? irq_exit_rcu+0xe/0x30 [ 21.476648][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 21.476653][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 21.476657][ C3] ? pv_native_safe_halt+0xf/0x20 [ 21.476660][ C3] ? default_idle+0x9/0x10 [ 21.476663][ C3] ? default_idle_call+0x6d/0xb0 [ 21.476665][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 21.476670][ C3] ? do_idle+0xf6/0x160 [ 21.476673][ C3] ? cpu_startup_entry+0x54/0x60 [ 21.476676][ C3] ? start_secondary+0x213/0x2a0 [ 21.476680][ C3] ? common_startup_64+0x13e/0x148 [ 21.476685][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 21.476689][ C3] ? rcu_is_watching+0x12/0xc0 [ 21.476694][ C3] __put_net+0x19/0x60 [ 21.476698][ C3] __sk_destruct+0x58a/0x780 [ 21.476702][ C3] ? rcu_do_batch+0x34a/0xf20 [ 21.476705][ C3] rcu_do_batch+0x34f/0xf20 [ 21.476710][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 21.476714][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 21.476719][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 21.476724][ C3] rcu_core+0x2bb/0x500 [ 21.476729][ C3] handle_softirqs+0x218/0x620 [ 21.476733][ C3] __irq_exit_rcu+0xfa/0x160 [ 21.476736][ C3] irq_exit_rcu+0xe/0x30 [ 21.476738][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 21.476742][ C3] [ 21.476743][ C3] [ 21.476744][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 21.476747][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 21.476751][ C3] 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 [ 21.476754][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 21.476758][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffffbad5ba19 [ 21.476760][ C3] RDX: ffffed1006c3667b RSI: ffffffffbb0511e0 RDI: ffffffffb858633f [ 21.476762][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c3667a [ 21.476764][ C3] R10: ffff8880361b33d3 R11: ffff888008becb58 R12: 0000000000000000 [ 21.476765][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 21.476769][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 21.476772][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 21.476777][ C3] default_idle+0x9/0x10 [ 21.476779][ C3] default_idle_call+0x6d/0xb0 [ 21.476782][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 21.476786][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 21.476790][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 21.476795][ C3] do_idle+0xf6/0x160 [ 21.476800][ C3] cpu_startup_entry+0x54/0x60 [ 21.476803][ C3] start_secondary+0x213/0x2a0 [ 21.476807][ C3] ? __pfx_start_secondary+0x10/0x10 [ 21.476812][ C3] common_startup_64+0x13e/0x148 [ 21.476819][ C3]