[ 16.871546][ C2] [ 16.871688][ C2] ================================ [ 16.871947][ C2] WARNING: inconsistent lock state [ 16.872176][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 16.872411][ C2] -------------------------------- [ 16.872627][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.872865][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.873153][ C2] ffffffff8b5bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.873560][ C2] {SOFTIRQ-ON-W} state was registered at: [ 16.873773][ C2] __lock_acquire+0x3eb/0x9d0 [ 16.874031][ C2] lock_acquire.part.0+0xb6/0x240 [ 16.874249][ C2] _raw_spin_lock+0x33/0x40 [ 16.874438][ C2] simple_pin_fs+0x24/0x150 [ 16.874665][ C2] start_creating.part.0+0x3f/0x2f0 [ 16.874850][ C2] debugfs_create_dir+0x6a/0x540 [ 16.875146][ C2] component_debug_init+0x17/0x30 [ 16.875419][ C2] do_one_initcall+0x8c/0x1e0 [ 16.875637][ C2] do_initcalls+0x176/0x280 [ 16.875893][ C2] kernel_init_freeable+0x22d/0x300 [ 16.876076][ C2] kernel_init+0x20/0x200 [ 16.876255][ C2] ret_from_fork+0x31/0x70 [ 16.876474][ C2] ret_from_fork_asm+0x1a/0x30 [ 16.876653][ C2] irq event stamp: 278330 [ 16.876838][ C2] hardirqs last enabled at (278330): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.877217][ C2] hardirqs last disabled at (278329): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.877687][ C2] softirqs last enabled at (276252): [] handle_softirqs+0x358/0x620 [ 16.878091][ C2] softirqs last disabled at (276265): [] __irq_exit_rcu+0xfa/0x160 [ 16.878481][ C2] [ 16.878481][ C2] other info that might help us debug this: [ 16.878842][ C2] Possible unsafe locking scenario: [ 16.878842][ C2] [ 16.879311][ C2] CPU0 [ 16.879466][ C2] ---- [ 16.879626][ C2] lock(pin_fs_lock); [ 16.879785][ C2] [ 16.879934][ C2] lock(pin_fs_lock); [ 16.880123][ C2] [ 16.880123][ C2] *** DEADLOCK *** [ 16.880123][ C2] [ 16.880386][ C2] 1 lock held by swapper/2/0: [ 16.880634][ C2] #0: ffffffff8b374480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.881052][ C2] [ 16.881052][ C2] stack backtrace: [ 16.881314][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.881319][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.881321][ C2] Call Trace: [ 16.881323][ C2] [ 16.881325][ C2] dump_stack_lvl+0x82/0xd0 [ 16.881332][ C2] print_usage_bug.part.0+0x25f/0x360 [ 16.881338][ C2] mark_lock_irq+0x343/0x400 [ 16.881344][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 16.881350][ C2] ? save_trace+0x52/0x170 [ 16.881354][ C2] mark_lock+0x174/0x2f0 [ 16.881358][ C2] mark_usage+0x46/0x150 [ 16.881363][ C2] __lock_acquire+0x3eb/0x9d0 [ 16.881371][ C2] lock_acquire.part.0+0xb6/0x240 [ 16.881377][ C2] ? simple_pin_fs+0x24/0x150 [ 16.881384][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.881392][ C2] ? lock_acquire+0x10c/0x170 [ 16.881397][ C2] ? simple_pin_fs+0x24/0x150 [ 16.881403][ C2] _raw_spin_lock+0x33/0x40 [ 16.881408][ C2] ? simple_pin_fs+0x24/0x150 [ 16.881414][ C2] simple_pin_fs+0x24/0x150 [ 16.881420][ C2] debugfs_remove+0x35/0x70 [ 16.881426][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.881433][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.881438][ C2] ? __sk_destruct+0x383/0x780 [ 16.881445][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.881451][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.881456][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.881460][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.881466][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.881471][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.881476][ C2] ? default_idle+0x9/0x10 [ 16.881480][ C2] ? default_idle_call+0x6d/0xb0 [ 16.881482][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.881487][ C2] ? do_idle+0xf6/0x160 [ 16.881490][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.881493][ C2] ? start_secondary+0x213/0x2a0 [ 16.881498][ C2] ? common_startup_64+0x13e/0x148 [ 16.881504][ C2] __put_net+0x19/0x60 [ 16.881508][ C2] __sk_destruct+0x58a/0x780 [ 16.881512][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.881515][ C2] rcu_do_batch+0x34c/0xf20 [ 16.881520][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.881523][ C2] ? __lock_release+0x5d/0x170 [ 16.881527][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.881531][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.881535][ C2] rcu_core+0x2bb/0x500 [ 16.881539][ C2] handle_softirqs+0x218/0x620 [ 16.881544][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.881546][ C2] irq_exit_rcu+0xe/0x30 [ 16.881548][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.881552][ C2] [ 16.881553][ C2] [ 16.881554][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.881557][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.881561][ C2] 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 [ 16.881565][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 16.881568][ C2] RAX: 0000000000043727 RBX: 1ffff92000028fc1 RCX: ffffffff8a355a19 [ 16.881571][ C2] RDX: 0000000000000000 RSI: ffffffff8ae85f31 RDI: ffffffff8a650ce0 [ 16.881573][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 16.881574][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 16.881576][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 16.881580][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.881586][ C2] default_idle+0x9/0x10 [ 16.881588][ C2] default_idle_call+0x6d/0xb0 [ 16.881590][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.881594][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.881598][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.881603][ C2] do_idle+0xf6/0x160 [ 16.881607][ C2] cpu_startup_entry+0x54/0x60 [ 16.881611][ C2] start_secondary+0x213/0x2a0 [ 16.881614][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.881619][ C2] common_startup_64+0x13e/0x148 [ 16.881625][ C2] [ 16.897708][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.898029][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 16.898444][ C2] preempt_count: 101, expected: 0 [ 16.898629][ C2] RCU nest depth: 0, expected: 0 [ 16.898806][ C2] INFO: lockdep is turned off. [ 16.899133][ C2] Preemption disabled at: [ 16.899135][ C2] [<0000000000000000>] 0x0 [ 16.899453][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.899458][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.899460][ C2] Call Trace: [ 16.899462][ C2] [ 16.899464][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.899473][ C2] __might_resched+0x360/0x5a0 [ 16.899479][ C2] down_write+0x72/0x210 [ 16.899482][ C2] ? __pfx_down_write+0x10/0x10 [ 16.899485][ C2] ? simple_recursive_removal+0x3a/0x860 [ 16.899490][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.899496][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.899501][ C2] simple_recursive_removal+0x166/0x860 [ 16.899503][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.899507][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.899512][ C2] debugfs_remove+0x44/0x70 [ 16.899515][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.899520][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.899523][ C2] ? __sk_destruct+0x383/0x780 [ 16.899528][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.899533][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.899536][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.899539][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.899544][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.899548][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.899551][ C2] ? default_idle+0x9/0x10 [ 16.899553][ C2] ? default_idle_call+0x6d/0xb0 [ 16.899556][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.899560][ C2] ? do_idle+0xf6/0x160 [ 16.899563][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.899566][ C2] ? start_secondary+0x213/0x2a0 [ 16.899571][ C2] ? common_startup_64+0x13e/0x148 [ 16.899578][ C2] __put_net+0x19/0x60 [ 16.899582][ C2] __sk_destruct+0x58a/0x780 [ 16.899586][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.899588][ C2] rcu_do_batch+0x34c/0xf20 [ 16.899594][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.899597][ C2] ? __lock_release+0x5d/0x170 [ 16.899602][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.899606][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.899611][ C2] rcu_core+0x2bb/0x500 [ 16.899615][ C2] handle_softirqs+0x218/0x620 [ 16.899620][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.899622][ C2] irq_exit_rcu+0xe/0x30 [ 16.899624][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.899628][ C2] [ 16.899629][ C2] [ 16.899630][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.899633][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.899637][ C2] 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 [ 16.899640][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 16.899643][ C2] RAX: 0000000000043727 RBX: 1ffff92000028fc1 RCX: ffffffff8a355a19 [ 16.899646][ C2] RDX: 0000000000000000 RSI: ffffffff8ae85f31 RDI: ffffffff8a650ce0 [ 16.899648][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 16.899649][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 16.899651][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 16.899655][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.899660][ C2] default_idle+0x9/0x10 [ 16.899663][ C2] default_idle_call+0x6d/0xb0 [ 16.899665][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.899669][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.899673][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.899678][ C2] do_idle+0xf6/0x160 [ 16.899682][ C2] cpu_startup_entry+0x54/0x60 [ 16.899685][ C2] start_secondary+0x213/0x2a0 [ 16.899689][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.899694][ C2] common_startup_64+0x13e/0x148 [ 16.899700][ C2] [ 19.775305][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 19.775718][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 19.776152][ C2] preempt_count: 101, expected: 0 [ 19.776372][ C2] RCU nest depth: 0, expected: 0 [ 19.776598][ C2] INFO: lockdep is turned off. [ 19.776776][ C2] Preemption disabled at: [ 19.776778][ C2] [<0000000000000000>] 0x0 [ 19.777178][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 19.777185][ C2] Tainted: [W]=WARN [ 19.777186][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.777188][ C2] Call Trace: [ 19.777190][ C2] [ 19.777193][ C2] dump_stack_lvl+0xb0/0xd0 [ 19.777201][ C2] __might_resched+0x360/0x5a0 [ 19.777210][ C2] down_write+0x72/0x210 [ 19.777216][ C2] ? __pfx_down_write+0x10/0x10 [ 19.777220][ C2] ? simple_recursive_removal+0x3a/0x860 [ 19.777226][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.777235][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 19.777243][ C2] simple_recursive_removal+0x166/0x860 [ 19.777247][ C2] ? __pfx_remove_one+0x10/0x10 [ 19.777252][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 19.777259][ C2] debugfs_remove+0x44/0x70 [ 19.777264][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 19.777271][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.777276][ C2] ? __sk_destruct+0x383/0x780 [ 19.777283][ C2] ? rcu_do_batch+0x34c/0xf20 [ 19.777289][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.777293][ C2] ? irq_exit_rcu+0xe/0x30 [ 19.777299][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.777306][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.777312][ C2] ? pv_native_safe_halt+0xf/0x20 [ 19.777316][ C2] ? default_idle+0x9/0x10 [ 19.777319][ C2] ? default_idle_call+0x6d/0xb0 [ 19.777323][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.777330][ C2] ? do_idle+0xf6/0x160 [ 19.777335][ C2] ? cpu_startup_entry+0x54/0x60 [ 19.777340][ C2] ? start_secondary+0x213/0x2a0 [ 19.777346][ C2] ? common_startup_64+0x13e/0x148 [ 19.777353][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 19.777358][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.777366][ C2] __put_net+0x19/0x60 [ 19.777372][ C2] __sk_destruct+0x58a/0x780 [ 19.777378][ C2] ? rcu_do_batch+0x34a/0xf20 [ 19.777382][ C2] rcu_do_batch+0x34c/0xf20 [ 19.777391][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.777398][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.777403][ C2] rcu_core+0x2bb/0x500 [ 19.777406][ C2] handle_softirqs+0x218/0x620 [ 19.777411][ C2] __irq_exit_rcu+0xfa/0x160 [ 19.777413][ C2] irq_exit_rcu+0xe/0x30 [ 19.777416][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.777419][ C2] [ 19.777421][ C2] [ 19.777422][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.777425][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 19.777430][ C2] 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 [ 19.777435][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 19.777440][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff8a355a19 [ 19.777443][ C2] RDX: ffffed1006c2667b RSI: ffffffff8a650c60 RDI: ffffffff87b84d8f [ 19.777447][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c2667a [ 19.777450][ C2] R10: ffff8880361333d3 R11: ffff888001b9cb58 R12: 0000000000000000 [ 19.777453][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 19.777461][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 19.777467][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.777474][ C2] default_idle+0x9/0x10 [ 19.777478][ C2] default_idle_call+0x6d/0xb0 [ 19.777482][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 19.777488][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 19.777495][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 19.777503][ C2] do_idle+0xf6/0x160 [ 19.777509][ C2] cpu_startup_entry+0x54/0x60 [ 19.777515][ C2] start_secondary+0x213/0x2a0 [ 19.777521][ C2] ? __pfx_start_secondary+0x10/0x10 [ 19.777529][ C2] common_startup_64+0x13e/0x148 [ 19.777541][ C2]