[ 20.518379][ C2] [ 20.518533][ C2] ================================ [ 20.518736][ C2] WARNING: inconsistent lock state [ 20.518928][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 20.519118][ C2] -------------------------------- [ 20.519304][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 20.519539][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 20.519814][ C2] ffffffff867bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 20.520158][ C2] {SOFTIRQ-ON-W} state was registered at: [ 20.520346][ C2] __lock_acquire+0x3eb/0x9d0 [ 20.520546][ C2] lock_acquire.part.0+0xb6/0x240 [ 20.520768][ C2] _raw_spin_lock+0x33/0x40 [ 20.521002][ C2] simple_pin_fs+0x24/0x150 [ 20.521192][ C2] start_creating.part.0+0x3f/0x2f0 [ 20.521381][ C2] debugfs_create_dir+0x6a/0x540 [ 20.521570][ C2] component_debug_init+0x17/0x30 [ 20.521775][ C2] do_one_initcall+0x8c/0x1e0 [ 20.521967][ C2] do_initcalls+0x176/0x280 [ 20.522158][ C2] kernel_init_freeable+0x22d/0x300 [ 20.522347][ C2] kernel_init+0x20/0x200 [ 20.522536][ C2] ret_from_fork+0x31/0x70 [ 20.522737][ C2] ret_from_fork_asm+0x1a/0x30 [ 20.522930][ C2] irq event stamp: 308538 [ 20.523076][ C2] hardirqs last enabled at (308538): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.523454][ C2] hardirqs last disabled at (308537): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 20.523870][ C2] softirqs last enabled at (307588): [] handle_softirqs+0x358/0x620 [ 20.524208][ C2] softirqs last disabled at (307601): [] __irq_exit_rcu+0xfa/0x160 [ 20.524543][ C2] [ 20.524543][ C2] other info that might help us debug this: [ 20.524833][ C2] Possible unsafe locking scenario: [ 20.524833][ C2] [ 20.525113][ C2] CPU0 [ 20.525258][ C2] ---- [ 20.525399][ C2] lock(pin_fs_lock); [ 20.525558][ C2] [ 20.525703][ C2] lock(pin_fs_lock); [ 20.525855][ C2] [ 20.525855][ C2] *** DEADLOCK *** [ 20.525855][ C2] [ 20.526164][ C2] 1 lock held by swapper/2/0: [ 20.526369][ C2] #0: ffffffff86574480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 20.526739][ C2] [ 20.526739][ C2] stack backtrace: [ 20.526995][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 20.527001][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.527003][ C2] Call Trace: [ 20.527005][ C2] [ 20.527009][ C2] dump_stack_lvl+0x82/0xd0 [ 20.527015][ C2] print_usage_bug.part.0+0x25f/0x360 [ 20.527022][ C2] mark_lock_irq+0x343/0x400 [ 20.527027][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 20.527032][ C2] ? save_trace+0x52/0x170 [ 20.527036][ C2] mark_lock+0x174/0x2f0 [ 20.527040][ C2] mark_usage+0x46/0x150 [ 20.527044][ C2] __lock_acquire+0x3eb/0x9d0 [ 20.527049][ C2] lock_acquire.part.0+0xb6/0x240 [ 20.527053][ C2] ? simple_pin_fs+0x24/0x150 [ 20.527058][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.527064][ C2] ? lock_acquire+0x10c/0x170 [ 20.527067][ C2] ? simple_pin_fs+0x24/0x150 [ 20.527071][ C2] _raw_spin_lock+0x33/0x40 [ 20.527075][ C2] ? simple_pin_fs+0x24/0x150 [ 20.527078][ C2] simple_pin_fs+0x24/0x150 [ 20.527082][ C2] debugfs_remove+0x35/0x70 [ 20.527086][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 20.527090][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.527093][ C2] ? __sk_destruct+0x383/0x780 [ 20.527097][ C2] ? rcu_do_batch+0x34c/0xf20 [ 20.527100][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.527103][ C2] ? irq_exit_rcu+0xe/0x30 [ 20.527106][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.527109][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.527113][ C2] ? pv_native_safe_halt+0xf/0x20 [ 20.527116][ C2] ? default_idle+0x9/0x10 [ 20.527118][ C2] ? default_idle_call+0x6d/0xb0 [ 20.527120][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 20.527124][ C2] ? do_idle+0xf6/0x160 [ 20.527127][ C2] ? cpu_startup_entry+0x54/0x60 [ 20.527130][ C2] ? start_secondary+0x213/0x2a0 [ 20.527135][ C2] ? common_startup_64+0x13e/0x148 [ 20.527141][ C2] __put_net+0x19/0x60 [ 20.527145][ C2] __sk_destruct+0x58a/0x780 [ 20.527148][ C2] ? rcu_do_batch+0x34a/0xf20 [ 20.527151][ C2] rcu_do_batch+0x34c/0xf20 [ 20.527155][ C2] ? find_held_lock+0x2b/0x80 [ 20.527159][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.527162][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.527166][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.527169][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 20.527174][ C2] rcu_core+0x2bb/0x500 [ 20.527177][ C2] handle_softirqs+0x218/0x620 [ 20.527181][ C2] __irq_exit_rcu+0xfa/0x160 [ 20.527184][ C2] irq_exit_rcu+0xe/0x30 [ 20.527186][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.527190][ C2] [ 20.527191][ C2] [ 20.527192][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.527195][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 20.527199][ 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 [ 20.527202][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 20.527205][ C2] RAX: 000000000004b18f RBX: 1ffff92000028fc1 RCX: ffffffff85555a19 [ 20.527207][ C2] RDX: 0000000000000000 RSI: ffffffff86085f31 RDI: ffffffff85850ce0 [ 20.527209][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 20.527210][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 20.527212][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 20.527216][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 20.527221][ C2] default_idle+0x9/0x10 [ 20.527223][ C2] default_idle_call+0x6d/0xb0 [ 20.527226][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 20.527229][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 20.527233][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 20.527238][ C2] do_idle+0xf6/0x160 [ 20.527242][ C2] cpu_startup_entry+0x54/0x60 [ 20.527245][ C2] start_secondary+0x213/0x2a0 [ 20.527249][ C2] ? __pfx_start_secondary+0x10/0x10 [ 20.527254][ C2] common_startup_64+0x13e/0x148 [ 20.527260][ C2] [ 20.543775][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 20.544135][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 20.544599][ C2] preempt_count: 101, expected: 0 [ 20.544810][ C2] RCU nest depth: 0, expected: 0 [ 20.545020][ C2] INFO: lockdep is turned off. [ 20.545233][ C2] Preemption disabled at: [ 20.545235][ C2] [<0000000000000000>] 0x0 [ 20.545613][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 20.545618][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.545620][ C2] Call Trace: [ 20.545622][ C2] [ 20.545624][ C2] dump_stack_lvl+0xb0/0xd0 [ 20.545632][ C2] __might_resched+0x360/0x5a0 [ 20.545639][ C2] down_write+0x72/0x210 [ 20.545643][ C2] ? __pfx_down_write+0x10/0x10 [ 20.545645][ C2] ? simple_recursive_removal+0x3a/0x860 [ 20.545650][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.545656][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 20.545661][ C2] simple_recursive_removal+0x166/0x860 [ 20.545663][ C2] ? __pfx_remove_one+0x10/0x10 [ 20.545668][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 20.545673][ C2] debugfs_remove+0x44/0x70 [ 20.545675][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 20.545681][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.545684][ C2] ? __sk_destruct+0x383/0x780 [ 20.545689][ C2] ? rcu_do_batch+0x34c/0xf20 [ 20.545693][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.545697][ C2] ? irq_exit_rcu+0xe/0x30 [ 20.545701][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.545706][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.545710][ C2] ? pv_native_safe_halt+0xf/0x20 [ 20.545713][ C2] ? default_idle+0x9/0x10 [ 20.545715][ C2] ? default_idle_call+0x6d/0xb0 [ 20.545718][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 20.545722][ C2] ? do_idle+0xf6/0x160 [ 20.545725][ C2] ? cpu_startup_entry+0x54/0x60 [ 20.545728][ C2] ? start_secondary+0x213/0x2a0 [ 20.545733][ C2] ? common_startup_64+0x13e/0x148 [ 20.545740][ C2] __put_net+0x19/0x60 [ 20.545743][ C2] __sk_destruct+0x58a/0x780 [ 20.545747][ C2] ? rcu_do_batch+0x34a/0xf20 [ 20.545750][ C2] rcu_do_batch+0x34c/0xf20 [ 20.545753][ C2] ? find_held_lock+0x2b/0x80 [ 20.545758][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.545762][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.545765][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.545769][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 20.545773][ C2] rcu_core+0x2bb/0x500 [ 20.545777][ C2] handle_softirqs+0x218/0x620 [ 20.545782][ C2] __irq_exit_rcu+0xfa/0x160 [ 20.545784][ C2] irq_exit_rcu+0xe/0x30 [ 20.545786][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.545790][ C2] [ 20.545791][ C2] [ 20.545792][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.545795][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 20.545799][ 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 [ 20.545802][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 20.545805][ C2] RAX: 000000000004b18f RBX: 1ffff92000028fc1 RCX: ffffffff85555a19 [ 20.545808][ C2] RDX: 0000000000000000 RSI: ffffffff86085f31 RDI: ffffffff85850ce0 [ 20.545809][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 20.545811][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 20.545812][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 20.545816][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 20.545822][ C2] default_idle+0x9/0x10 [ 20.545824][ C2] default_idle_call+0x6d/0xb0 [ 20.545826][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 20.545830][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 20.545834][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 20.545839][ C2] do_idle+0xf6/0x160 [ 20.545843][ C2] cpu_startup_entry+0x54/0x60 [ 20.545847][ C2] start_secondary+0x213/0x2a0 [ 20.545850][ C2] ? __pfx_start_secondary+0x10/0x10 [ 20.545855][ C2] common_startup_64+0x13e/0x148 [ 20.545862][ C2] [ 25.624292][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 25.624770][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 25.625169][ C2] preempt_count: 101, expected: 0 [ 25.625401][ C2] RCU nest depth: 0, expected: 0 [ 25.625625][ C2] INFO: lockdep is turned off. [ 25.625830][ C2] Preemption disabled at: [ 25.625832][ C2] [<0000000000000000>] 0x0 [ 25.626241][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 25.626247][ C2] Tainted: [W]=WARN [ 25.626248][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 25.626250][ C2] Call Trace: [ 25.626252][ C2] [ 25.626255][ C2] dump_stack_lvl+0xb0/0xd0 [ 25.626264][ C2] __might_resched+0x360/0x5a0 [ 25.626271][ C2] down_write+0x72/0x210 [ 25.626277][ C2] ? __pfx_down_write+0x10/0x10 [ 25.626281][ C2] ? simple_recursive_removal+0x3a/0x860 [ 25.626287][ C2] ? rcu_is_watching+0x12/0xc0 [ 25.626295][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 25.626300][ C2] simple_recursive_removal+0x166/0x860 [ 25.626303][ C2] ? __pfx_remove_one+0x10/0x10 [ 25.626307][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 25.626311][ C2] debugfs_remove+0x44/0x70 [ 25.626314][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 25.626319][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 25.626322][ C2] ? __sk_destruct+0x383/0x780 [ 25.626326][ C2] ? rcu_do_batch+0x34c/0xf20 [ 25.626330][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 25.626333][ C2] ? irq_exit_rcu+0xe/0x30 [ 25.626336][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 25.626341][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.626344][ C2] ? pv_native_safe_halt+0xf/0x20 [ 25.626347][ C2] ? default_idle+0x9/0x10 [ 25.626349][ C2] ? default_idle_call+0x6d/0xb0 [ 25.626352][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 25.626358][ C2] ? do_idle+0xf6/0x160 [ 25.626362][ C2] ? cpu_startup_entry+0x54/0x60 [ 25.626367][ C2] ? start_secondary+0x213/0x2a0 [ 25.626374][ C2] ? common_startup_64+0x13e/0x148 [ 25.626379][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 25.626382][ C2] ? rcu_is_watching+0x12/0xc0 [ 25.626387][ C2] __put_net+0x19/0x60 [ 25.626391][ C2] __sk_destruct+0x58a/0x780 [ 25.626394][ C2] ? rcu_do_batch+0x34a/0xf20 [ 25.626397][ C2] rcu_do_batch+0x34c/0xf20 [ 25.626403][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 25.626409][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 25.626415][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 25.626424][ C2] rcu_core+0x2bb/0x500 [ 25.626428][ C2] handle_softirqs+0x218/0x620 [ 25.626432][ C2] __irq_exit_rcu+0xfa/0x160 [ 25.626435][ C2] irq_exit_rcu+0xe/0x30 [ 25.626437][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 25.626440][ C2] [ 25.626441][ C2] [ 25.626443][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.626446][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 25.626450][ 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 [ 25.626452][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 25.626456][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff85555a19 [ 25.626458][ C2] RDX: ffffed1006c2667b RSI: ffffffff85850c60 RDI: ffffffff82d84d8f [ 25.626460][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c2667a [ 25.626462][ C2] R10: ffff8880361333d3 R11: ffff888008cca858 R12: 0000000000000000 [ 25.626463][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 25.626467][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 25.626471][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 25.626475][ C2] default_idle+0x9/0x10 [ 25.626477][ C2] default_idle_call+0x6d/0xb0 [ 25.626480][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 25.626483][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 25.626494][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 25.626502][ C2] do_idle+0xf6/0x160 [ 25.626508][ C2] cpu_startup_entry+0x54/0x60 [ 25.626511][ C2] start_secondary+0x213/0x2a0 [ 25.626515][ C2] ? __pfx_start_secondary+0x10/0x10 [ 25.626520][ C2] common_startup_64+0x13e/0x148 [ 25.626526][ C2]