[ 15.008740][ C0] [ 15.008952][ C0] ================================ [ 15.009168][ C0] WARNING: inconsistent lock state [ 15.009376][ C0] 6.15.0-virtme #1 Not tainted [ 15.009582][ C0] -------------------------------- [ 15.009783][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.010038][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.010291][ C0] ffffffff859c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.010685][ C0] {SOFTIRQ-ON-W} state was registered at: [ 15.010888][ C0] __lock_acquire+0x20b/0x7e0 [ 15.011111][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.011320][ C0] _raw_spin_lock+0x33/0x40 [ 15.011543][ C0] simple_pin_fs+0x24/0x150 [ 15.011749][ C0] start_creating.part.0+0x52/0x310 [ 15.011958][ C0] debugfs_create_dir+0x6a/0x540 [ 15.012159][ C0] component_debug_init+0x17/0x30 [ 15.012376][ C0] do_one_initcall+0x8f/0x1e0 [ 15.012592][ C0] do_initcalls+0x176/0x280 [ 15.012805][ C0] kernel_init_freeable+0x22d/0x300 [ 15.013015][ C0] kernel_init+0x20/0x200 [ 15.013222][ C0] ret_from_fork+0x240/0x320 [ 15.013434][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.013637][ C0] irq event stamp: 486452 [ 15.013796][ C0] hardirqs last enabled at (486452): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.014204][ C0] hardirqs last disabled at (486451): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.014610][ C0] softirqs last enabled at (485912): [] handle_softirqs+0x358/0x620 [ 15.014973][ C0] softirqs last disabled at (485925): [] __irq_exit_rcu+0xfa/0x160 [ 15.015329][ C0] [ 15.015329][ C0] other info that might help us debug this: [ 15.015630][ C0] Possible unsafe locking scenario: [ 15.015630][ C0] [ 15.015932][ C0] CPU0 [ 15.016085][ C0] ---- [ 15.016236][ C0] lock(pin_fs_lock); [ 15.016401][ C0] [ 15.016554][ C0] lock(pin_fs_lock); [ 15.016707][ C0] [ 15.016707][ C0] *** DEADLOCK *** [ 15.016707][ C0] [ 15.017006][ C0] 1 lock held by swapper/0/0: [ 15.017213][ C0] #0: ffffffff857774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.017578][ C0] [ 15.017578][ C0] stack backtrace: [ 15.017836][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.017840][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.017845][ C0] Call Trace: [ 15.017850][ C0] [ 15.017851][ C0] dump_stack_lvl+0x82/0xd0 [ 15.017862][ C0] print_usage_bug.part.0+0x25f/0x360 [ 15.017867][ C0] mark_lock_irq+0x343/0x400 [ 15.017870][ C0] ? is_bpf_text_address+0x67/0x120 [ 15.017882][ C0] ? __lock_release+0x5d/0x170 [ 15.017887][ C0] ? save_trace+0x52/0x170 [ 15.017894][ C0] mark_lock+0x174/0x2f0 [ 15.017899][ C0] mark_usage+0x46/0x150 [ 15.017902][ C0] __lock_acquire+0x20b/0x7e0 [ 15.017905][ C0] ? __lock_acquire+0x44d/0x7e0 [ 15.017909][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.017912][ C0] ? simple_pin_fs+0x24/0x150 [ 15.017917][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.017922][ C0] ? lock_acquire+0x10c/0x170 [ 15.017924][ C0] ? simple_pin_fs+0x24/0x150 [ 15.017929][ C0] _raw_spin_lock+0x33/0x40 [ 15.017932][ C0] ? simple_pin_fs+0x24/0x150 [ 15.017937][ C0] simple_pin_fs+0x24/0x150 [ 15.017941][ C0] debugfs_remove+0x35/0x70 [ 15.017945][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.017960][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.017963][ C0] ? __sk_destruct+0x383/0x780 [ 15.017979][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.017982][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.017985][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.017988][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.017995][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.018002][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.018006][ C0] ? default_idle+0x9/0x10 [ 15.018009][ C0] ? default_idle_call+0x6d/0xb0 [ 15.018011][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.018016][ C0] ? do_idle+0xf6/0x160 [ 15.018018][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.018020][ C0] ? rest_init+0x14b/0x260 [ 15.018023][ C0] ? start_kernel+0x350/0x410 [ 15.018029][ C0] __put_net+0x19/0x60 [ 15.018034][ C0] __sk_destruct+0x58a/0x780 [ 15.018038][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.018041][ C0] rcu_do_batch+0x34c/0xf20 [ 15.018044][ C0] ? find_held_lock+0x2b/0x80 [ 15.018048][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.018051][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.018055][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.018058][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.018063][ C0] rcu_core+0x2bb/0x500 [ 15.018067][ C0] handle_softirqs+0x218/0x620 [ 15.018072][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.018075][ C0] irq_exit_rcu+0xe/0x30 [ 15.018078][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.018082][ C0] [ 15.018083][ C0] [ 15.018084][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.018087][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.018091][ C0] Code: 92 b5 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 83 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 15.018094][ C0] RSP: 0000:ffffffff85407df8 EFLAGS: 00000242 [ 15.018102][ C0] RAX: 0000000000076a23 RBX: 1ffffffff0a80fc3 RCX: ffffffff847905d9 [ 15.018104][ C0] RDX: 0000000000000000 RSI: ffffffff8528f4e4 RDI: ffffffff84a53be0 [ 15.018106][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 15.018108][ C0] R10: ffff8880360337d3 R11: ffffffff85411288 R12: 0000000000000000 [ 15.018109][ C0] R13: ffffffff8541f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.018113][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.018118][ C0] default_idle+0x9/0x10 [ 15.018121][ C0] default_idle_call+0x6d/0xb0 [ 15.018124][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.018128][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.018131][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.018139][ C0] do_idle+0xf6/0x160 [ 15.018143][ C0] cpu_startup_entry+0x54/0x60 [ 15.018146][ C0] rest_init+0x14b/0x260 [ 15.018149][ C0] start_kernel+0x350/0x410 [ 15.018153][ C0] x86_64_start_reservations+0x18/0x30 [ 15.018159][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.018163][ C0] common_startup_64+0x13e/0x148 [ 15.018178][ C0] [ 15.035125][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.035462][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 15.035795][ C0] preempt_count: 101, expected: 0 [ 15.035988][ C0] RCU nest depth: 0, expected: 0 [ 15.036192][ C0] INFO: lockdep is turned off. [ 15.036391][ C0] Preemption disabled at: [ 15.036392][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 15.036825][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.036830][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.036831][ C0] Call Trace: [ 15.036833][ C0] [ 15.036834][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.036840][ C0] __might_resched+0x360/0x5a0 [ 15.036850][ C0] down_write+0x72/0x210 [ 15.036854][ C0] ? __pfx_down_write+0x10/0x10 [ 15.036857][ C0] ? simple_recursive_removal+0x33/0x610 [ 15.036861][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.036866][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.036875][ C0] simple_recursive_removal+0x6a/0x610 [ 15.036878][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.036881][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.036886][ C0] debugfs_remove+0x44/0x70 [ 15.036889][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.036895][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.036898][ C0] ? __sk_destruct+0x383/0x780 [ 15.036903][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.036906][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.036909][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.036914][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.036918][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.036921][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.036925][ C0] ? default_idle+0x9/0x10 [ 15.036928][ C0] ? default_idle_call+0x6d/0xb0 [ 15.036930][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.036933][ C0] ? do_idle+0xf6/0x160 [ 15.036935][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.036940][ C0] ? rest_init+0x14b/0x260 [ 15.036943][ C0] ? start_kernel+0x350/0x410 [ 15.036950][ C0] __put_net+0x19/0x60 [ 15.036953][ C0] __sk_destruct+0x58a/0x780 [ 15.036958][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.036960][ C0] rcu_do_batch+0x34c/0xf20 [ 15.036964][ C0] ? find_held_lock+0x2b/0x80 [ 15.036969][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.036972][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.036976][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.036979][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.036984][ C0] rcu_core+0x2bb/0x500 [ 15.036988][ C0] handle_softirqs+0x218/0x620 [ 15.036994][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.036997][ C0] irq_exit_rcu+0xe/0x30 [ 15.036999][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.037003][ C0] [ 15.037004][ C0] [ 15.037006][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.037009][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.037013][ C0] Code: 92 b5 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 83 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 15.037015][ C0] RSP: 0000:ffffffff85407df8 EFLAGS: 00000242 [ 15.037018][ C0] RAX: 0000000000076a23 RBX: 1ffffffff0a80fc3 RCX: ffffffff847905d9 [ 15.037020][ C0] RDX: 0000000000000000 RSI: ffffffff8528f4e4 RDI: ffffffff84a53be0 [ 15.037022][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 15.037023][ C0] R10: ffff8880360337d3 R11: ffffffff85411288 R12: 0000000000000000 [ 15.037025][ C0] R13: ffffffff8541f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.037029][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.037036][ C0] default_idle+0x9/0x10 [ 15.037038][ C0] default_idle_call+0x6d/0xb0 [ 15.037041][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.037045][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.037048][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.037056][ C0] do_idle+0xf6/0x160 [ 15.037059][ C0] cpu_startup_entry+0x54/0x60 [ 15.037062][ C0] rest_init+0x14b/0x260 [ 15.037065][ C0] start_kernel+0x350/0x410 [ 15.037069][ C0] x86_64_start_reservations+0x18/0x30 [ 15.037073][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.037077][ C0] common_startup_64+0x13e/0x148 [ 15.037086][ C0] [ 16.765905][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.766260][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 16.766549][ C2] preempt_count: 100, expected: 0 [ 16.766722][ C2] RCU nest depth: 0, expected: 0 [ 16.766894][ C2] INFO: lockdep is turned off. [ 16.767078][ C2] Preemption disabled at: [ 16.767080][ C2] [] handle_softirqs+0xe5/0x620 [ 16.767434][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.767440][ C2] Tainted: [W]=WARN [ 16.767441][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.767443][ C2] Call Trace: [ 16.767445][ C2] [ 16.767447][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.767454][ C2] __might_resched+0x360/0x5a0 [ 16.767461][ C2] down_write+0x72/0x210 [ 16.767466][ C2] ? __pfx_down_write+0x10/0x10 [ 16.767469][ C2] ? simple_recursive_removal+0x33/0x610 [ 16.767473][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.767478][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.767484][ C2] simple_recursive_removal+0x6a/0x610 [ 16.767487][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.767490][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.767496][ C2] debugfs_remove+0x44/0x70 [ 16.767499][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.767505][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.767510][ C2] ? __sk_destruct+0x383/0x780 [ 16.767515][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.767518][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.767522][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 16.767528][ C2] ? kthread+0x37e/0x600 [ 16.767534][ C2] ? ret_from_fork+0x240/0x320 [ 16.767538][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 16.767543][ C2] ? migrate_enable+0x1f2/0x270 [ 16.767550][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 16.767553][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.767561][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.767566][ C2] __put_net+0x19/0x60 [ 16.767569][ C2] __sk_destruct+0x58a/0x780 [ 16.767573][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.767576][ C2] rcu_do_batch+0x34c/0xf20 [ 16.767580][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.767584][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.767587][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.767598][ C2] rcu_core+0x2bb/0x500 [ 16.767602][ C2] handle_softirqs+0x218/0x620 [ 16.767606][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 16.767610][ C2] run_ksoftirqd+0x3f/0x70 [ 16.767613][ C2] smpboot_thread_fn+0x30a/0x960 [ 16.767616][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.767621][ C2] kthread+0x37e/0x600 [ 16.767623][ C2] ? __pfx_kthread+0x10/0x10 [ 16.767625][ C2] ? ret_from_fork+0x1b/0x320 [ 16.767629][ C2] ? __lock_release+0x5d/0x170 [ 16.767633][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.767636][ C2] ? __pfx_kthread+0x10/0x10 [ 16.767639][ C2] ret_from_fork+0x240/0x320 [ 16.767642][ C2] ? __pfx_kthread+0x10/0x10 [ 16.767644][ C2] ret_from_fork_asm+0x1a/0x30 [ 16.767652][ C2]