[ 12.151968][ C2] [ 12.152105][ C2] ================================ [ 12.152289][ C2] WARNING: inconsistent lock state [ 12.152468][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 12.152649][ C2] -------------------------------- [ 12.152824][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.153060][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.153280][ C2] ffffffffbc1bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.153593][ C2] {SOFTIRQ-ON-W} state was registered at: [ 12.153769][ C2] __lock_acquire+0x3eb/0x9d0 [ 12.153952][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.154132][ C2] _raw_spin_lock+0x33/0x40 [ 12.154312][ C2] simple_pin_fs+0x24/0x150 [ 12.154491][ C2] start_creating.part.0+0x3f/0x2f0 [ 12.154674][ C2] debugfs_create_dir+0x6a/0x540 [ 12.154853][ C2] component_debug_init+0x17/0x30 [ 12.155040][ C2] do_one_initcall+0x8c/0x1e0 [ 12.155223][ C2] do_initcalls+0x176/0x280 [ 12.155400][ C2] kernel_init_freeable+0x22d/0x300 [ 12.155577][ C2] kernel_init+0x20/0x200 [ 12.155753][ C2] ret_from_fork+0x31/0x70 [ 12.155935][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.156114][ C2] irq event stamp: 203666 [ 12.156254][ C2] hardirqs last enabled at (203666): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.156611][ C2] hardirqs last disabled at (203665): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.156975][ C2] softirqs last enabled at (203058): [] handle_softirqs+0x358/0x620 [ 12.157291][ C2] softirqs last disabled at (203083): [] __irq_exit_rcu+0xfa/0x160 [ 12.157598][ C2] [ 12.157598][ C2] other info that might help us debug this: [ 12.157854][ C2] Possible unsafe locking scenario: [ 12.157854][ C2] [ 12.158113][ C2] CPU0 [ 12.158245][ C2] ---- [ 12.158377][ C2] lock(pin_fs_lock); [ 12.158512][ C2] [ 12.158644][ C2] lock(pin_fs_lock); [ 12.158777][ C2] [ 12.158777][ C2] *** DEADLOCK *** [ 12.158777][ C2] [ 12.159037][ C2] 1 lock held by swapper/2/0: [ 12.159217][ C2] #0: ffffffffbbf74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.159538][ C2] [ 12.159538][ C2] stack backtrace: [ 12.159759][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 12.159763][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.159765][ C2] Call Trace: [ 12.159767][ C2] [ 12.159769][ C2] dump_stack_lvl+0x82/0xd0 [ 12.159775][ C2] print_usage_bug.part.0+0x25f/0x360 [ 12.159779][ C2] mark_lock_irq+0x343/0x400 [ 12.159783][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 12.159787][ C2] ? save_trace+0x52/0x170 [ 12.159792][ C2] mark_lock+0x174/0x2f0 [ 12.159795][ C2] mark_usage+0x46/0x150 [ 12.159798][ C2] __lock_acquire+0x3eb/0x9d0 [ 12.159803][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.159806][ C2] ? simple_pin_fs+0x24/0x150 [ 12.159809][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.159812][ C2] ? lock_acquire+0x10c/0x170 [ 12.159814][ C2] ? simple_pin_fs+0x24/0x150 [ 12.159818][ C2] _raw_spin_lock+0x33/0x40 [ 12.159821][ C2] ? simple_pin_fs+0x24/0x150 [ 12.159823][ C2] simple_pin_fs+0x24/0x150 [ 12.159826][ C2] debugfs_remove+0x35/0x70 [ 12.159829][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.159835][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.159838][ C2] ? __sk_destruct+0x383/0x780 [ 12.159843][ C2] ? rcu_do_batch+0x34c/0xf20 [ 12.159846][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.159849][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.159852][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.159856][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.159859][ C2] ? pv_native_safe_halt+0xf/0x20 [ 12.159862][ C2] ? default_idle+0x9/0x10 [ 12.159866][ C2] ? default_idle_call+0x6d/0xb0 [ 12.159868][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.159871][ C2] ? do_idle+0xf6/0x160 [ 12.159873][ C2] ? cpu_startup_entry+0x54/0x60 [ 12.159875][ C2] ? start_secondary+0x213/0x2a0 [ 12.159878][ C2] ? common_startup_64+0x13e/0x148 [ 12.159884][ C2] __put_net+0x19/0x60 [ 12.159888][ C2] __sk_destruct+0x58a/0x780 [ 12.159892][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.159895][ C2] rcu_do_batch+0x34c/0xf20 [ 12.159899][ C2] ? find_held_lock+0x2b/0x80 [ 12.159903][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.159907][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.159910][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.159914][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.159918][ C2] rcu_core+0x2bb/0x500 [ 12.159922][ C2] handle_softirqs+0x218/0x620 [ 12.159927][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.159929][ C2] irq_exit_rcu+0xe/0x30 [ 12.159932][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.159935][ C2] [ 12.159936][ C2] [ 12.159937][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.159940][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.159944][ C2] Code: a0 b7 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 a0 12 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 12.159947][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 12.159950][ C2] RAX: 0000000000031949 RBX: 1ffff92000028fc1 RCX: ffffffffbaf68a19 [ 12.159952][ C2] RDX: 0000000000000000 RSI: ffffffffbba881e1 RDI: ffffffffbb250e20 [ 12.159954][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ea667a [ 12.159956][ C2] R10: ffff88802f5333d3 R11: 0000000000000000 R12: 0000000000000000 [ 12.159957][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 12.159961][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.159967][ C2] default_idle+0x9/0x10 [ 12.159970][ C2] default_idle_call+0x6d/0xb0 [ 12.159972][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 12.159975][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.159978][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 12.159983][ C2] do_idle+0xf6/0x160 [ 12.159986][ C2] cpu_startup_entry+0x54/0x60 [ 12.159988][ C2] start_secondary+0x213/0x2a0 [ 12.159991][ C2] ? __pfx_start_secondary+0x10/0x10 [ 12.159995][ C2] common_startup_64+0x13e/0x148 [ 12.160002][ C2] [ 12.174146][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.174456][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 12.174763][ C2] preempt_count: 101, expected: 0 [ 12.174945][ C2] RCU nest depth: 0, expected: 0 [ 12.175130][ C2] INFO: lockdep is turned off. [ 12.175315][ C2] Preemption disabled at: [ 12.175317][ C2] [<0000000000000000>] 0x0 [ 12.175650][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 12.175654][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.175656][ C2] Call Trace: [ 12.175657][ C2] [ 12.175660][ C2] dump_stack_lvl+0xb0/0xd0 [ 12.175667][ C2] __might_resched+0x360/0x5a0 [ 12.175673][ C2] down_write+0x72/0x210 [ 12.175676][ C2] ? __pfx_down_write+0x10/0x10 [ 12.175679][ C2] ? simple_recursive_removal+0x3a/0x860 [ 12.175683][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.175687][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.175692][ C2] simple_recursive_removal+0x166/0x860 [ 12.175695][ C2] ? __pfx_remove_one+0x10/0x10 [ 12.175699][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.175704][ C2] debugfs_remove+0x44/0x70 [ 12.175707][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.175713][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.175716][ C2] ? __sk_destruct+0x383/0x780 [ 12.175720][ C2] ? rcu_do_batch+0x34c/0xf20 [ 12.175725][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.175728][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.175732][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.175736][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.175739][ C2] ? pv_native_safe_halt+0xf/0x20 [ 12.175742][ C2] ? default_idle+0x9/0x10 [ 12.175745][ C2] ? default_idle_call+0x6d/0xb0 [ 12.175747][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.175750][ C2] ? do_idle+0xf6/0x160 [ 12.175752][ C2] ? cpu_startup_entry+0x54/0x60 [ 12.175754][ C2] ? start_secondary+0x213/0x2a0 [ 12.175757][ C2] ? common_startup_64+0x13e/0x148 [ 12.175762][ C2] __put_net+0x19/0x60 [ 12.175766][ C2] __sk_destruct+0x58a/0x780 [ 12.175769][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.175773][ C2] rcu_do_batch+0x34c/0xf20 [ 12.175777][ C2] ? find_held_lock+0x2b/0x80 [ 12.175782][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.175786][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.175790][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.175793][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.175798][ C2] rcu_core+0x2bb/0x500 [ 12.175801][ C2] handle_softirqs+0x218/0x620 [ 12.175806][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.175808][ C2] irq_exit_rcu+0xe/0x30 [ 12.175811][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.175814][ C2] [ 12.175815][ C2] [ 12.175816][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.175819][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.175822][ C2] Code: a0 b7 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 a0 12 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 12.175825][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 12.175828][ C2] RAX: 0000000000031949 RBX: 1ffff92000028fc1 RCX: ffffffffbaf68a19 [ 12.175830][ C2] RDX: 0000000000000000 RSI: ffffffffbba881e1 RDI: ffffffffbb250e20 [ 12.175832][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ea667a [ 12.175833][ C2] R10: ffff88802f5333d3 R11: 0000000000000000 R12: 0000000000000000 [ 12.175835][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 12.175839][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.175844][ C2] default_idle+0x9/0x10 [ 12.175847][ C2] default_idle_call+0x6d/0xb0 [ 12.175849][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 12.175852][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.175855][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 12.175859][ C2] do_idle+0xf6/0x160 [ 12.175862][ C2] cpu_startup_entry+0x54/0x60 [ 12.175865][ C2] start_secondary+0x213/0x2a0 [ 12.175867][ C2] ? __pfx_start_secondary+0x10/0x10 [ 12.175872][ C2] common_startup_64+0x13e/0x148 [ 12.175878][ C2]