[ 18.253717][ C3] [ 18.253855][ C3] ================================ [ 18.254035][ C3] WARNING: inconsistent lock state [ 18.254214][ C3] 6.15.0-rc5-virtme #1 Not tainted [ 18.254399][ C3] -------------------------------- [ 18.254608][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 18.254836][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 18.255060][ C3] ffffffffb81bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 18.255380][ C3] {SOFTIRQ-ON-W} state was registered at: [ 18.255578][ C3] __lock_acquire+0x3eb/0x9d0 [ 18.255769][ C3] lock_acquire.part.0+0xb6/0x240 [ 18.255951][ C3] _raw_spin_lock+0x33/0x40 [ 18.256131][ C3] simple_pin_fs+0x24/0x150 [ 18.256310][ C3] start_creating.part.0+0x3f/0x2f0 [ 18.256489][ C3] debugfs_create_dir+0x6a/0x540 [ 18.256665][ C3] component_debug_init+0x17/0x30 [ 18.256846][ C3] do_one_initcall+0x8c/0x1e0 [ 18.257030][ C3] do_initcalls+0x176/0x280 [ 18.257212][ C3] kernel_init_freeable+0x22d/0x300 [ 18.257388][ C3] kernel_init+0x20/0x200 [ 18.257565][ C3] ret_from_fork+0x31/0x70 [ 18.257743][ C3] ret_from_fork_asm+0x1a/0x30 [ 18.257925][ C3] irq event stamp: 262334 [ 18.258060][ C3] hardirqs last enabled at (262334): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 18.258414][ C3] hardirqs last disabled at (262333): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 18.258771][ C3] softirqs last enabled at (261806): [] handle_softirqs+0x358/0x620 [ 18.259089][ C3] softirqs last disabled at (261813): [] __irq_exit_rcu+0xfa/0x160 [ 18.259400][ C3] [ 18.259400][ C3] other info that might help us debug this: [ 18.259664][ C3] Possible unsafe locking scenario: [ 18.259664][ C3] [ 18.259933][ C3] CPU0 [ 18.260066][ C3] ---- [ 18.260202][ C3] lock(pin_fs_lock); [ 18.260339][ C3] [ 18.260474][ C3] lock(pin_fs_lock); [ 18.260610][ C3] [ 18.260610][ C3] *** DEADLOCK *** [ 18.260610][ C3] [ 18.260878][ C3] 1 lock held by swapper/3/0: [ 18.261055][ C3] #0: ffffffffb7f74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 18.261374][ C3] [ 18.261374][ C3] stack backtrace: [ 18.261601][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 18.261605][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.261608][ C3] Call Trace: [ 18.261610][ C3] [ 18.261612][ C3] dump_stack_lvl+0x82/0xd0 [ 18.261618][ C3] print_usage_bug.part.0+0x25f/0x360 [ 18.261623][ C3] mark_lock_irq+0x343/0x400 [ 18.261628][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 18.261634][ C3] ? save_trace+0x52/0x170 [ 18.261638][ C3] mark_lock+0x174/0x2f0 [ 18.261642][ C3] mark_usage+0x46/0x150 [ 18.261646][ C3] __lock_acquire+0x3eb/0x9d0 [ 18.261651][ C3] lock_acquire.part.0+0xb6/0x240 [ 18.261655][ C3] ? simple_pin_fs+0x24/0x150 [ 18.261659][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.261664][ C3] ? lock_acquire+0x10c/0x170 [ 18.261667][ C3] ? simple_pin_fs+0x24/0x150 [ 18.261671][ C3] _raw_spin_lock+0x33/0x40 [ 18.261674][ C3] ? simple_pin_fs+0x24/0x150 [ 18.261678][ C3] simple_pin_fs+0x24/0x150 [ 18.261681][ C3] debugfs_remove+0x35/0x70 [ 18.261684][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 18.261690][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.261693][ C3] ? __sk_destruct+0x383/0x780 [ 18.261698][ C3] ? rcu_do_batch+0x34c/0xf20 [ 18.261702][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.261704][ C3] ? irq_exit_rcu+0xe/0x30 [ 18.261707][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.261711][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.261715][ C3] ? pv_native_safe_halt+0xf/0x20 [ 18.261718][ C3] ? default_idle+0x9/0x10 [ 18.261720][ C3] ? default_idle_call+0x6d/0xb0 [ 18.261722][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.261726][ C3] ? do_idle+0xf6/0x160 [ 18.261728][ C3] ? cpu_startup_entry+0x54/0x60 [ 18.261731][ C3] ? start_secondary+0x213/0x2a0 [ 18.261736][ C3] ? common_startup_64+0x13e/0x148 [ 18.261742][ C3] __put_net+0x19/0x60 [ 18.261745][ C3] __sk_destruct+0x58a/0x780 [ 18.261749][ C3] ? rcu_do_batch+0x34a/0xf20 [ 18.261752][ C3] rcu_do_batch+0x34c/0xf20 [ 18.261755][ C3] ? find_held_lock+0x2b/0x80 [ 18.261759][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.261763][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 18.261766][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 18.261770][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 18.261774][ C3] rcu_core+0x2bb/0x500 [ 18.261777][ C3] handle_softirqs+0x218/0x620 [ 18.261782][ C3] __irq_exit_rcu+0xfa/0x160 [ 18.261784][ C3] irq_exit_rcu+0xe/0x30 [ 18.261786][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.261789][ C3] [ 18.261791][ C3] [ 18.261792][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.261795][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 18.261799][ 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.261802][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 18.261806][ C3] RAX: 000000000003feb3 RBX: 1ffff9200002afc1 RCX: ffffffffb6f55a19 [ 18.261808][ C3] RDX: 0000000000000000 RSI: ffffffffb7a85f31 RDI: ffffffffb7250ce0 [ 18.261810][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 18.261811][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 18.261813][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 18.261817][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 18.261822][ C3] default_idle+0x9/0x10 [ 18.261825][ C3] default_idle_call+0x6d/0xb0 [ 18.261827][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 18.261831][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 18.261835][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 18.261840][ C3] do_idle+0xf6/0x160 [ 18.261844][ C3] cpu_startup_entry+0x54/0x60 [ 18.261848][ C3] start_secondary+0x213/0x2a0 [ 18.261851][ C3] ? __pfx_start_secondary+0x10/0x10 [ 18.261856][ C3] common_startup_64+0x13e/0x148 [ 18.261862][ C3] [ 18.276597][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.276987][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 18.277281][ C3] preempt_count: 101, expected: 0 [ 18.277446][ C3] RCU nest depth: 0, expected: 0 [ 18.277614][ C3] INFO: lockdep is turned off. [ 18.277879][ C3] Preemption disabled at: [ 18.277881][ C3] [<0000000000000000>] 0x0 [ 18.278174][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 18.278179][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.278181][ C3] Call Trace: [ 18.278182][ C3] [ 18.278184][ C3] dump_stack_lvl+0xb0/0xd0 [ 18.278191][ C3] __might_resched+0x360/0x5a0 [ 18.278197][ C3] down_write+0x72/0x210 [ 18.278201][ C3] ? __pfx_down_write+0x10/0x10 [ 18.278204][ C3] ? simple_recursive_removal+0x3a/0x860 [ 18.278208][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.278214][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 18.278219][ C3] simple_recursive_removal+0x166/0x860 [ 18.278221][ C3] ? __pfx_remove_one+0x10/0x10 [ 18.278229][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 18.278233][ C3] debugfs_remove+0x44/0x70 [ 18.278236][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 18.278241][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.278244][ C3] ? __sk_destruct+0x383/0x780 [ 18.278249][ C3] ? rcu_do_batch+0x34c/0xf20 [ 18.278253][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.278256][ C3] ? irq_exit_rcu+0xe/0x30 [ 18.278259][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.278263][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.278267][ C3] ? pv_native_safe_halt+0xf/0x20 [ 18.278270][ C3] ? default_idle+0x9/0x10 [ 18.278273][ C3] ? default_idle_call+0x6d/0xb0 [ 18.278275][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.278279][ C3] ? do_idle+0xf6/0x160 [ 18.278282][ C3] ? cpu_startup_entry+0x54/0x60 [ 18.278285][ C3] ? start_secondary+0x213/0x2a0 [ 18.278289][ C3] ? common_startup_64+0x13e/0x148 [ 18.278295][ C3] __put_net+0x19/0x60 [ 18.278299][ C3] __sk_destruct+0x58a/0x780 [ 18.278303][ C3] ? rcu_do_batch+0x34a/0xf20 [ 18.278305][ C3] rcu_do_batch+0x34c/0xf20 [ 18.278309][ C3] ? find_held_lock+0x2b/0x80 [ 18.278314][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.278318][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 18.278322][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 18.278325][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 18.278330][ C3] rcu_core+0x2bb/0x500 [ 18.278333][ C3] handle_softirqs+0x218/0x620 [ 18.278338][ C3] __irq_exit_rcu+0xfa/0x160 [ 18.278340][ C3] irq_exit_rcu+0xe/0x30 [ 18.278343][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.278346][ C3] [ 18.278347][ C3] [ 18.278348][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.278351][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 18.278355][ 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.278357][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 18.278361][ C3] RAX: 000000000003feb3 RBX: 1ffff9200002afc1 RCX: ffffffffb6f55a19 [ 18.278363][ C3] RDX: 0000000000000000 RSI: ffffffffb7a85f31 RDI: ffffffffb7250ce0 [ 18.278364][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 18.278366][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 18.278368][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 18.278371][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 18.278377][ C3] default_idle+0x9/0x10 [ 18.278379][ C3] default_idle_call+0x6d/0xb0 [ 18.278381][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 18.278385][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 18.278389][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 18.278394][ C3] do_idle+0xf6/0x160 [ 18.278398][ C3] cpu_startup_entry+0x54/0x60 [ 18.278401][ C3] start_secondary+0x213/0x2a0 [ 18.278405][ C3] ? __pfx_start_secondary+0x10/0x10 [ 18.278410][ C3] common_startup_64+0x13e/0x148 [ 18.278416][ C3] [ 21.018814][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 21.019383][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 21.019904][ C0] preempt_count: 101, expected: 0 [ 21.020198][ C0] RCU nest depth: 0, expected: 0 [ 21.020513][ C0] INFO: lockdep is turned off. [ 21.020819][ C0] Preemption disabled at: [ 21.020822][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 21.021571][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 21.021580][ C0] Tainted: [W]=WARN [ 21.021583][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.021585][ C0] Call Trace: [ 21.021588][ C0] [ 21.021591][ C0] dump_stack_lvl+0xb0/0xd0 [ 21.021600][ C0] __might_resched+0x360/0x5a0 [ 21.021609][ C0] down_write+0x72/0x210 [ 21.021615][ C0] ? __pfx_down_write+0x10/0x10 [ 21.021620][ C0] ? simple_recursive_removal+0x3a/0x860 [ 21.021625][ C0] ? rcu_is_watching+0x12/0xc0 [ 21.021633][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 21.021640][ C0] simple_recursive_removal+0x166/0x860 [ 21.021644][ C0] ? __pfx_remove_one+0x10/0x10 [ 21.021651][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 21.021659][ C0] debugfs_remove+0x44/0x70 [ 21.021664][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 21.021671][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 21.021676][ C0] ? __sk_destruct+0x383/0x780 [ 21.021683][ C0] ? rcu_do_batch+0x34c/0xf20 [ 21.021689][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 21.021694][ C0] ? irq_exit_rcu+0xe/0x30 [ 21.021700][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 21.021706][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 21.021712][ C0] ? pv_native_safe_halt+0xf/0x20 [ 21.021717][ C0] ? default_idle+0x9/0x10 [ 21.021721][ C0] ? default_idle_call+0x6d/0xb0 [ 21.021725][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 21.021731][ C0] ? do_idle+0xf6/0x160 [ 21.021735][ C0] ? cpu_startup_entry+0x54/0x60 [ 21.021740][ C0] ? rest_init+0x14b/0x260 [ 21.021745][ C0] ? start_kernel+0x350/0x410 [ 21.021752][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 21.021758][ C0] ? rcu_is_watching+0x12/0xc0 [ 21.021766][ C0] __put_net+0x19/0x60 [ 21.021771][ C0] __sk_destruct+0x58a/0x780 [ 21.021778][ C0] ? rcu_do_batch+0x34a/0xf20 [ 21.021783][ C0] rcu_do_batch+0x34c/0xf20 [ 21.021792][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 21.021798][ C0] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 21.021805][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 21.021813][ C0] rcu_core+0x2bb/0x500 [ 21.021819][ C0] handle_softirqs+0x218/0x620 [ 21.021828][ C0] __irq_exit_rcu+0xfa/0x160 [ 21.021832][ C0] irq_exit_rcu+0xe/0x30 [ 21.021837][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 21.021843][ C0] [ 21.021845][ C0] [ 21.021848][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 21.021852][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 21.021858][ C0] 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 [ 21.021863][ C0] RSP: 0018:ffffffffb7c07df8 EFLAGS: 00000246 [ 21.021869][ C0] RAX: 0000000000000000 RBX: 1ffffffff6f80fc3 RCX: ffffffffb6f55a19 [ 21.021873][ C0] RDX: ffffed1006c0667b RSI: ffffffffb7250c60 RDI: ffffffffb4784d8f [ 21.021876][ C0] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c0667a [ 21.021879][ C0] R10: ffff8880360333d3 R11: ffff888011728558 R12: 0000000000000000 [ 21.021882][ C0] R13: ffffffffb7c1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 21.021890][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 21.021896][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 21.021903][ C0] default_idle+0x9/0x10 [ 21.021907][ C0] default_idle_call+0x6d/0xb0 [ 21.021912][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 21.021918][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 21.021924][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 21.021934][ C0] do_idle+0xf6/0x160 [ 21.021941][ C0] cpu_startup_entry+0x54/0x60 [ 21.021946][ C0] rest_init+0x14b/0x260 [ 21.021952][ C0] start_kernel+0x350/0x410 [ 21.021958][ C0] x86_64_start_reservations+0x18/0x30 [ 21.021965][ C0] x86_64_start_kernel+0xba/0x110 [ 21.021971][ C0] common_startup_64+0x13e/0x148 [ 21.021985][ C0]