[ 13.288337][ C2] [ 13.288569][ C2] ================================ [ 13.288772][ C2] WARNING: inconsistent lock state [ 13.288970][ C2] 6.15.0-rc7-virtme #1 Not tainted [ 13.289173][ C2] -------------------------------- [ 13.289376][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.289625][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.289875][ C2] ffffffffaa9bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.290236][ C2] {SOFTIRQ-ON-W} state was registered at: [ 13.290440][ C2] __lock_acquire+0x3eb/0x9d0 [ 13.290651][ C2] lock_acquire.part.0+0xb6/0x240 [ 13.290856][ C2] _raw_spin_lock+0x33/0x40 [ 13.291064][ C2] simple_pin_fs+0x24/0x150 [ 13.291264][ C2] start_creating.part.0+0x3f/0x2f0 [ 13.291475][ C2] debugfs_create_dir+0x6a/0x540 [ 13.291678][ C2] component_debug_init+0x17/0x30 [ 13.291885][ C2] do_one_initcall+0x8f/0x1e0 [ 13.292098][ C2] do_initcalls+0x176/0x280 [ 13.292301][ C2] kernel_init_freeable+0x22d/0x300 [ 13.292504][ C2] kernel_init+0x20/0x200 [ 13.292707][ C2] ret_from_fork+0x31/0x70 [ 13.292911][ C2] ret_from_fork_asm+0x1a/0x30 [ 13.293113][ C2] irq event stamp: 211036 [ 13.293272][ C2] hardirqs last enabled at (211036): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.293684][ C2] hardirqs last disabled at (211035): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.294087][ C2] softirqs last enabled at (209750): [] handle_softirqs+0x358/0x620 [ 13.294446][ C2] softirqs last disabled at (209793): [] __irq_exit_rcu+0xfa/0x160 [ 13.294804][ C2] [ 13.294804][ C2] other info that might help us debug this: [ 13.295101][ C2] Possible unsafe locking scenario: [ 13.295101][ C2] [ 13.295400][ C2] CPU0 [ 13.295553][ C2] ---- [ 13.295704][ C2] lock(pin_fs_lock); [ 13.295865][ C2] [ 13.296015][ C2] lock(pin_fs_lock); [ 13.296170][ C2] [ 13.296170][ C2] *** DEADLOCK *** [ 13.296170][ C2] [ 13.296473][ C2] 1 lock held by swapper/2/0: [ 13.296685][ C2] #0: ffffffffaa7749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.297067][ C2] [ 13.297067][ C2] stack backtrace: [ 13.297326][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.297331][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.297333][ C2] Call Trace: [ 13.297335][ C2] [ 13.297337][ C2] dump_stack_lvl+0x82/0xd0 [ 13.297346][ C2] print_usage_bug.part.0+0x25f/0x360 [ 13.297350][ C2] mark_lock_irq+0x343/0x400 [ 13.297354][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.297360][ C2] ? save_trace+0x52/0x170 [ 13.297366][ C2] mark_lock+0x174/0x2f0 [ 13.297370][ C2] mark_usage+0x46/0x150 [ 13.297373][ C2] __lock_acquire+0x3eb/0x9d0 [ 13.297377][ C2] lock_acquire.part.0+0xb6/0x240 [ 13.297380][ C2] ? simple_pin_fs+0x24/0x150 [ 13.297383][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.297387][ C2] ? lock_acquire+0x10c/0x170 [ 13.297389][ C2] ? simple_pin_fs+0x24/0x150 [ 13.297393][ C2] _raw_spin_lock+0x33/0x40 [ 13.297396][ C2] ? simple_pin_fs+0x24/0x150 [ 13.297398][ C2] simple_pin_fs+0x24/0x150 [ 13.297402][ C2] debugfs_remove+0x35/0x70 [ 13.297405][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 13.297413][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.297416][ C2] ? __sk_destruct+0x383/0x780 [ 13.297423][ C2] ? rcu_do_batch+0x34f/0xf20 [ 13.297427][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.297430][ C2] ? irq_exit_rcu+0xe/0x30 [ 13.297432][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.297437][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.297441][ C2] ? pv_native_safe_halt+0xf/0x20 [ 13.297444][ C2] ? default_idle+0x9/0x10 [ 13.297446][ C2] ? default_idle_call+0x6d/0xb0 [ 13.297448][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.297452][ C2] ? do_idle+0xf6/0x160 [ 13.297454][ C2] ? cpu_startup_entry+0x54/0x60 [ 13.297457][ C2] ? start_secondary+0x213/0x2a0 [ 13.297460][ C2] ? common_startup_64+0x13e/0x148 [ 13.297468][ C2] __put_net+0x19/0x60 [ 13.297473][ C2] __sk_destruct+0x58a/0x780 [ 13.297477][ C2] ? rcu_do_batch+0x34a/0xf20 [ 13.297480][ C2] rcu_do_batch+0x34f/0xf20 [ 13.297486][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.297490][ C2] ? __lock_release+0x5d/0x170 [ 13.297493][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.297496][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.297501][ C2] rcu_core+0x2bb/0x500 [ 13.297504][ C2] handle_softirqs+0x218/0x620 [ 13.297509][ C2] __irq_exit_rcu+0xfa/0x160 [ 13.297512][ C2] irq_exit_rcu+0xe/0x30 [ 13.297515][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.297518][ C2] [ 13.297519][ C2] [ 13.297520][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.297523][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.297527][ C2] Code: 50 b7 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 45 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 [ 13.297530][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 13.297533][ C2] RAX: 000000000003337f RBX: 1ffff92000028fc1 RCX: ffffffffa976ea19 [ 13.297535][ C2] RDX: 0000000000000000 RSI: ffffffffaa289a45 RDI: ffffffffa9a513a0 [ 13.297537][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 13.297539][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.297540][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 13.297544][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.297550][ C2] default_idle+0x9/0x10 [ 13.297552][ C2] default_idle_call+0x6d/0xb0 [ 13.297554][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 13.297557][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.297561][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.297566][ C2] do_idle+0xf6/0x160 [ 13.297569][ C2] cpu_startup_entry+0x54/0x60 [ 13.297572][ C2] start_secondary+0x213/0x2a0 [ 13.297575][ C2] ? __pfx_start_secondary+0x10/0x10 [ 13.297579][ C2] common_startup_64+0x13e/0x148 [ 13.297586][ C2] [ 13.313362][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.313717][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 13.314063][ C2] preempt_count: 101, expected: 0 [ 13.314280][ C2] RCU nest depth: 0, expected: 0 [ 13.314488][ C2] INFO: lockdep is turned off. [ 13.314704][ C2] Preemption disabled at: [ 13.314705][ C2] [<0000000000000000>] 0x0 [ 13.315073][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.315078][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.315080][ C2] Call Trace: [ 13.315082][ C2] [ 13.315083][ C2] dump_stack_lvl+0xb0/0xd0 [ 13.315090][ C2] __might_resched+0x360/0x5a0 [ 13.315099][ C2] down_write+0x72/0x210 [ 13.315103][ C2] ? __pfx_down_write+0x10/0x10 [ 13.315105][ C2] ? simple_recursive_removal+0x3a/0x860 [ 13.315110][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.315114][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 13.315119][ C2] simple_recursive_removal+0x166/0x860 [ 13.315122][ C2] ? __pfx_remove_one+0x10/0x10 [ 13.315127][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 13.315132][ C2] debugfs_remove+0x44/0x70 [ 13.315135][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 13.315140][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.315144][ C2] ? __sk_destruct+0x383/0x780 [ 13.315148][ C2] ? rcu_do_batch+0x34f/0xf20 [ 13.315153][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.315156][ C2] ? irq_exit_rcu+0xe/0x30 [ 13.315160][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.315164][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.315167][ C2] ? pv_native_safe_halt+0xf/0x20 [ 13.315170][ C2] ? default_idle+0x9/0x10 [ 13.315173][ C2] ? default_idle_call+0x6d/0xb0 [ 13.315175][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.315178][ C2] ? do_idle+0xf6/0x160 [ 13.315181][ C2] ? cpu_startup_entry+0x54/0x60 [ 13.315183][ C2] ? start_secondary+0x213/0x2a0 [ 13.315186][ C2] ? common_startup_64+0x13e/0x148 [ 13.315192][ C2] __put_net+0x19/0x60 [ 13.315195][ C2] __sk_destruct+0x58a/0x780 [ 13.315199][ C2] ? rcu_do_batch+0x34a/0xf20 [ 13.315205][ C2] rcu_do_batch+0x34f/0xf20 [ 13.315211][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.315215][ C2] ? __lock_release+0x5d/0x170 [ 13.315219][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.315221][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.315227][ C2] rcu_core+0x2bb/0x500 [ 13.315230][ C2] handle_softirqs+0x218/0x620 [ 13.315235][ C2] __irq_exit_rcu+0xfa/0x160 [ 13.315238][ C2] irq_exit_rcu+0xe/0x30 [ 13.315241][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.315244][ C2] [ 13.315245][ C2] [ 13.315246][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.315249][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.315253][ C2] Code: 50 b7 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 45 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 [ 13.315256][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 13.315259][ C2] RAX: 000000000003337f RBX: 1ffff92000028fc1 RCX: ffffffffa976ea19 [ 13.315261][ C2] RDX: 0000000000000000 RSI: ffffffffaa289a45 RDI: ffffffffa9a513a0 [ 13.315262][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 13.315264][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.315266][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 13.315270][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.315276][ C2] default_idle+0x9/0x10 [ 13.315278][ C2] default_idle_call+0x6d/0xb0 [ 13.315280][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 13.315283][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.315287][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.315291][ C2] do_idle+0xf6/0x160 [ 13.315295][ C2] cpu_startup_entry+0x54/0x60 [ 13.315297][ C2] start_secondary+0x213/0x2a0 [ 13.315300][ C2] ? __pfx_start_secondary+0x10/0x10 [ 13.315304][ C2] common_startup_64+0x13e/0x148 [ 13.315311][ C2]