[ 17.748652][ C2] [ 17.748879][ C2] ================================ [ 17.749200][ C2] WARNING: inconsistent lock state [ 17.749495][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 17.749811][ C2] -------------------------------- [ 17.750127][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 17.750523][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 17.750912][ C2] ffffffffb59bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 17.751474][ C2] {SOFTIRQ-ON-W} state was registered at: [ 17.751788][ C2] __lock_acquire+0x3eb/0x9d0 [ 17.752125][ C2] lock_acquire.part.0+0xb6/0x240 [ 17.752441][ C2] _raw_spin_lock+0x33/0x40 [ 17.752757][ C2] simple_pin_fs+0x24/0x150 [ 17.753078][ C2] start_creating.part.0+0x3f/0x2f0 [ 17.753366][ C2] debugfs_create_dir+0x6a/0x540 [ 17.753659][ C2] component_debug_init+0x17/0x30 [ 17.753972][ C2] do_one_initcall+0x8c/0x1e0 [ 17.754283][ C2] do_initcalls+0x176/0x280 [ 17.754602][ C2] kernel_init_freeable+0x22d/0x300 [ 17.754919][ C2] kernel_init+0x20/0x200 [ 17.755223][ C2] ret_from_fork+0x31/0x70 [ 17.755546][ C2] ret_from_fork_asm+0x1a/0x30 [ 17.755853][ C2] irq event stamp: 293530 [ 17.756091][ C2] hardirqs last enabled at (293530): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.756728][ C2] hardirqs last disabled at (293529): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 17.757364][ C2] softirqs last enabled at (291498): [] handle_softirqs+0x358/0x620 [ 17.757924][ C2] softirqs last disabled at (291559): [] __irq_exit_rcu+0xfa/0x160 [ 17.758474][ C2] [ 17.758474][ C2] other info that might help us debug this: [ 17.758949][ C2] Possible unsafe locking scenario: [ 17.758949][ C2] [ 17.759400][ C2] CPU0 [ 17.759633][ C2] ---- [ 17.759864][ C2] lock(pin_fs_lock); [ 17.760096][ C2] [ 17.760333][ C2] lock(pin_fs_lock); [ 17.760577][ C2] [ 17.760577][ C2] *** DEADLOCK *** [ 17.760577][ C2] [ 17.761037][ C2] 1 lock held by swapper/2/0: [ 17.761378][ C2] #0: ffffffffb5774480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 17.761930][ C2] [ 17.761930][ C2] stack backtrace: [ 17.762288][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 17.762295][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.762298][ C2] Call Trace: [ 17.762300][ C2] [ 17.762304][ C2] dump_stack_lvl+0x82/0xd0 [ 17.762315][ C2] print_usage_bug.part.0+0x25f/0x360 [ 17.762325][ C2] mark_lock_irq+0x343/0x400 [ 17.762333][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 17.762341][ C2] ? save_trace+0x52/0x170 [ 17.762348][ C2] mark_lock+0x174/0x2f0 [ 17.762355][ C2] mark_usage+0x46/0x150 [ 17.762361][ C2] __lock_acquire+0x3eb/0x9d0 [ 17.762368][ C2] lock_acquire.part.0+0xb6/0x240 [ 17.762373][ C2] ? simple_pin_fs+0x24/0x150 [ 17.762381][ C2] ? rcu_is_watching+0x12/0xc0 [ 17.762388][ C2] ? lock_acquire+0x10c/0x170 [ 17.762393][ C2] ? simple_pin_fs+0x24/0x150 [ 17.762400][ C2] _raw_spin_lock+0x33/0x40 [ 17.762406][ C2] ? simple_pin_fs+0x24/0x150 [ 17.762411][ C2] simple_pin_fs+0x24/0x150 [ 17.762416][ C2] debugfs_remove+0x35/0x70 [ 17.762422][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 17.762430][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.762434][ C2] ? __sk_destruct+0x383/0x780 [ 17.762441][ C2] ? rcu_do_batch+0x34c/0xf20 [ 17.762446][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.762450][ C2] ? irq_exit_rcu+0xe/0x30 [ 17.762454][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.762461][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.762466][ C2] ? pv_native_safe_halt+0xf/0x20 [ 17.762471][ C2] ? default_idle+0x9/0x10 [ 17.762475][ C2] ? default_idle_call+0x6d/0xb0 [ 17.762479][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.762485][ C2] ? do_idle+0xf6/0x160 [ 17.762490][ C2] ? cpu_startup_entry+0x54/0x60 [ 17.762495][ C2] ? start_secondary+0x213/0x2a0 [ 17.762502][ C2] ? common_startup_64+0x13e/0x148 [ 17.762511][ C2] __put_net+0x19/0x60 [ 17.762516][ C2] __sk_destruct+0x58a/0x780 [ 17.762522][ C2] ? rcu_do_batch+0x34a/0xf20 [ 17.762527][ C2] rcu_do_batch+0x34c/0xf20 [ 17.762532][ C2] ? find_held_lock+0x2b/0x80 [ 17.762536][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.762542][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.762547][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.762552][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.762559][ C2] rcu_core+0x2bb/0x500 [ 17.762564][ C2] handle_softirqs+0x218/0x620 [ 17.762572][ C2] __irq_exit_rcu+0xfa/0x160 [ 17.762577][ C2] irq_exit_rcu+0xe/0x30 [ 17.762581][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.762586][ C2] [ 17.762588][ C2] [ 17.762591][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.762596][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.762602][ 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 [ 17.762607][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 17.762612][ C2] RAX: 00000000000472e5 RBX: 1ffff92000028fc1 RCX: ffffffffb4755a19 [ 17.762616][ C2] RDX: 0000000000000000 RSI: ffffffffb5285f31 RDI: ffffffffb4a50ce0 [ 17.762619][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 17.762621][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 17.762624][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 17.762630][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.762638][ C2] default_idle+0x9/0x10 [ 17.762642][ C2] default_idle_call+0x6d/0xb0 [ 17.762646][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 17.762652][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.762659][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.762667][ C2] do_idle+0xf6/0x160 [ 17.762673][ C2] cpu_startup_entry+0x54/0x60 [ 17.762679][ C2] start_secondary+0x213/0x2a0 [ 17.762685][ C2] ? __pfx_start_secondary+0x10/0x10 [ 17.762694][ C2] common_startup_64+0x13e/0x148 [ 17.762706][ C2] [ 17.784109][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.784422][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 17.784975][ C2] preempt_count: 101, expected: 0 [ 17.785161][ C2] RCU nest depth: 0, expected: 0 [ 17.785341][ C2] INFO: lockdep is turned off. [ 17.785543][ C2] Preemption disabled at: [ 17.785545][ C2] [<0000000000000000>] 0x0 [ 17.785869][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 17.785874][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.785876][ C2] Call Trace: [ 17.785877][ C2] [ 17.785880][ C2] dump_stack_lvl+0xb0/0xd0 [ 17.785889][ C2] __might_resched+0x360/0x5a0 [ 17.785895][ C2] down_write+0x72/0x210 [ 17.785900][ C2] ? __pfx_down_write+0x10/0x10 [ 17.785902][ C2] ? simple_recursive_removal+0x3a/0x860 [ 17.785907][ C2] ? rcu_is_watching+0x12/0xc0 [ 17.785913][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 17.785917][ C2] simple_recursive_removal+0x166/0x860 [ 17.785920][ C2] ? __pfx_remove_one+0x10/0x10 [ 17.785924][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 17.785928][ C2] debugfs_remove+0x44/0x70 [ 17.785931][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 17.785936][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.785939][ C2] ? __sk_destruct+0x383/0x780 [ 17.785945][ C2] ? rcu_do_batch+0x34c/0xf20 [ 17.785949][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.785952][ C2] ? irq_exit_rcu+0xe/0x30 [ 17.785956][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.785961][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.785965][ C2] ? pv_native_safe_halt+0xf/0x20 [ 17.785968][ C2] ? default_idle+0x9/0x10 [ 17.785970][ C2] ? default_idle_call+0x6d/0xb0 [ 17.785972][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.785977][ C2] ? do_idle+0xf6/0x160 [ 17.785980][ C2] ? cpu_startup_entry+0x54/0x60 [ 17.785983][ C2] ? start_secondary+0x213/0x2a0 [ 17.785988][ C2] ? common_startup_64+0x13e/0x148 [ 17.785994][ C2] __put_net+0x19/0x60 [ 17.785998][ C2] __sk_destruct+0x58a/0x780 [ 17.786001][ C2] ? rcu_do_batch+0x34a/0xf20 [ 17.786005][ C2] rcu_do_batch+0x34c/0xf20 [ 17.786008][ C2] ? find_held_lock+0x2b/0x80 [ 17.786014][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.786017][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.786021][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.786025][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.786029][ C2] rcu_core+0x2bb/0x500 [ 17.786033][ C2] handle_softirqs+0x218/0x620 [ 17.786037][ C2] __irq_exit_rcu+0xfa/0x160 [ 17.786040][ C2] irq_exit_rcu+0xe/0x30 [ 17.786042][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.786045][ C2] [ 17.786046][ C2] [ 17.786048][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.786050][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.786054][ 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 [ 17.786057][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 17.786060][ C2] RAX: 00000000000472e5 RBX: 1ffff92000028fc1 RCX: ffffffffb4755a19 [ 17.786062][ C2] RDX: 0000000000000000 RSI: ffffffffb5285f31 RDI: ffffffffb4a50ce0 [ 17.786064][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 17.786066][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 17.786068][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 17.786071][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.786077][ C2] default_idle+0x9/0x10 [ 17.786079][ C2] default_idle_call+0x6d/0xb0 [ 17.786081][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 17.786085][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.786089][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.786094][ C2] do_idle+0xf6/0x160 [ 17.786098][ C2] cpu_startup_entry+0x54/0x60 [ 17.786102][ C2] start_secondary+0x213/0x2a0 [ 17.786105][ C2] ? __pfx_start_secondary+0x10/0x10 [ 17.786110][ C2] common_startup_64+0x13e/0x148 [ 17.786116][ C2] [ 20.400607][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 20.401160][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 20.401682][ C0] preempt_count: 101, expected: 0 [ 20.401981][ C0] RCU nest depth: 0, expected: 0 [ 20.402260][ C0] INFO: lockdep is turned off. [ 20.402559][ C0] Preemption disabled at: [ 20.402561][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 20.403221][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 20.403227][ C0] Tainted: [W]=WARN [ 20.403228][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.403230][ C0] Call Trace: [ 20.403232][ C0] [ 20.403234][ C0] dump_stack_lvl+0xb0/0xd0 [ 20.403240][ C0] __might_resched+0x360/0x5a0 [ 20.403246][ C0] down_write+0x72/0x210 [ 20.403250][ C0] ? __pfx_down_write+0x10/0x10 [ 20.403252][ C0] ? simple_recursive_removal+0x3a/0x860 [ 20.403257][ C0] ? rcu_is_watching+0x12/0xc0 [ 20.403263][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 20.403268][ C0] simple_recursive_removal+0x166/0x860 [ 20.403270][ C0] ? __pfx_remove_one+0x10/0x10 [ 20.403275][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 20.403279][ C0] debugfs_remove+0x44/0x70 [ 20.403283][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 20.403289][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.403293][ C0] ? __sk_destruct+0x383/0x780 [ 20.403300][ C0] ? rcu_do_batch+0x34c/0xf20 [ 20.403306][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.403310][ C0] ? irq_exit_rcu+0xe/0x30 [ 20.403314][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.403320][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.403325][ C0] ? pv_native_safe_halt+0xf/0x20 [ 20.403329][ C0] ? default_idle+0x9/0x10 [ 20.403331][ C0] ? default_idle_call+0x6d/0xb0 [ 20.403334][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 20.403338][ C0] ? do_idle+0xf6/0x160 [ 20.403341][ C0] ? cpu_startup_entry+0x54/0x60 [ 20.403344][ C0] ? rest_init+0x14b/0x260 [ 20.403347][ C0] ? start_kernel+0x350/0x410 [ 20.403352][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 20.403356][ C0] ? rcu_is_watching+0x12/0xc0 [ 20.403361][ C0] __put_net+0x19/0x60 [ 20.403364][ C0] __sk_destruct+0x58a/0x780 [ 20.403368][ C0] ? rcu_do_batch+0x34a/0xf20 [ 20.403371][ C0] rcu_do_batch+0x34c/0xf20 [ 20.403376][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.403379][ C0] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 20.403385][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 20.403390][ C0] rcu_core+0x2bb/0x500 [ 20.403394][ C0] handle_softirqs+0x218/0x620 [ 20.403398][ C0] __irq_exit_rcu+0xfa/0x160 [ 20.403401][ C0] irq_exit_rcu+0xe/0x30 [ 20.403403][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.403406][ C0] [ 20.403407][ C0] [ 20.403409][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.403411][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 20.403416][ C0] 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.403419][ C0] RSP: 0018:ffffffffb5407df8 EFLAGS: 00000246 [ 20.403422][ C0] RAX: 0000000000000000 RBX: 1ffffffff6a80fc3 RCX: ffffffffb4755a19 [ 20.403424][ C0] RDX: ffffed1006c0667b RSI: ffffffffb4a50c60 RDI: ffffffffb1f84d8f [ 20.403426][ C0] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c0667a [ 20.403428][ C0] R10: ffff8880360333d3 R11: ffffffffb80cf568 R12: 0000000000000000 [ 20.403430][ C0] R13: ffffffffb541f240 R14: dffffc0000000000 R15: 0000000000014770 [ 20.403434][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 20.403438][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 20.403442][ C0] default_idle+0x9/0x10 [ 20.403444][ C0] default_idle_call+0x6d/0xb0 [ 20.403447][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 20.403450][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 20.403454][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 20.403461][ C0] do_idle+0xf6/0x160 [ 20.403465][ C0] cpu_startup_entry+0x54/0x60 [ 20.403469][ C0] rest_init+0x14b/0x260 [ 20.403472][ C0] start_kernel+0x350/0x410 [ 20.403477][ C0] x86_64_start_reservations+0x18/0x30 [ 20.403482][ C0] x86_64_start_kernel+0xba/0x110 [ 20.403485][ C0] common_startup_64+0x13e/0x148 [ 20.403496][ C0]