[ 17.099797][ C0] [ 17.099990][ C0] ================================ [ 17.100209][ C0] WARNING: inconsistent lock state [ 17.100419][ C0] 6.15.0-rc5-virtme #1 Not tainted [ 17.100630][ C0] -------------------------------- [ 17.100839][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 17.101096][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 17.101354][ C0] ffffffff8a5caa78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 17.101723][ C0] {SOFTIRQ-ON-W} state was registered at: [ 17.101931][ C0] __lock_acquire+0x3eb/0x9d0 [ 17.102145][ C0] lock_acquire.part.0+0xb6/0x240 [ 17.102359][ C0] _raw_spin_lock+0x33/0x40 [ 17.102569][ C0] simple_pin_fs+0x24/0x150 [ 17.102778][ C0] start_creating.part.0+0x3f/0x2f0 [ 17.102992][ C0] debugfs_create_dir+0x6a/0x570 [ 17.103197][ C0] component_debug_init+0x17/0x30 [ 17.103416][ C0] do_one_initcall+0x8c/0x1e0 [ 17.103624][ C0] do_initcalls+0x176/0x280 [ 17.103836][ C0] kernel_init_freeable+0x22d/0x300 [ 17.104044][ C0] kernel_init+0x20/0x200 [ 17.104251][ C0] ret_from_fork+0x31/0x70 [ 17.104459][ C0] ret_from_fork_asm+0x1a/0x30 [ 17.104665][ C0] irq event stamp: 460518 [ 17.104822][ C0] hardirqs last enabled at (460518): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.105236][ C0] hardirqs last disabled at (460517): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 17.105661][ C0] softirqs last enabled at (458618): [] handle_softirqs+0x358/0x620 [ 17.106021][ C0] softirqs last disabled at (458631): [] __irq_exit_rcu+0xfa/0x160 [ 17.106381][ C0] [ 17.106381][ C0] other info that might help us debug this: [ 17.106701][ C0] Possible unsafe locking scenario: [ 17.106701][ C0] [ 17.107012][ C0] CPU0 [ 17.107167][ C0] ---- [ 17.107330][ C0] lock(pin_fs_lock); [ 17.107493][ C0] [ 17.107653][ C0] lock(pin_fs_lock); [ 17.107811][ C0] [ 17.107811][ C0] *** DEADLOCK *** [ 17.107811][ C0] [ 17.108116][ C0] 1 lock held by swapper/0/0: [ 17.108328][ C0] #0: ffffffff8a374c00 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 17.108696][ C0] [ 17.108696][ C0] stack backtrace: [ 17.108954][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 17.108959][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.108961][ C0] Call Trace: [ 17.108963][ C0] [ 17.108965][ C0] dump_stack_lvl+0x82/0xd0 [ 17.108971][ C0] print_usage_bug.part.0+0x25f/0x360 [ 17.108976][ C0] mark_lock_irq+0x343/0x400 [ 17.108980][ C0] ? is_bpf_text_address+0x67/0x120 [ 17.108985][ C0] ? __lock_release+0x5d/0x170 [ 17.108989][ C0] ? save_trace+0x52/0x170 [ 17.108996][ C0] mark_lock+0x174/0x2f0 [ 17.108999][ C0] mark_usage+0x46/0x150 [ 17.109002][ C0] __lock_acquire+0x3eb/0x9d0 [ 17.109007][ C0] lock_acquire.part.0+0xb6/0x240 [ 17.109010][ C0] ? simple_pin_fs+0x24/0x150 [ 17.109013][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.109017][ C0] ? lock_acquire+0x10c/0x170 [ 17.109020][ C0] ? simple_pin_fs+0x24/0x150 [ 17.109023][ C0] _raw_spin_lock+0x33/0x40 [ 17.109026][ C0] ? simple_pin_fs+0x24/0x150 [ 17.109028][ C0] simple_pin_fs+0x24/0x150 [ 17.109031][ C0] debugfs_remove+0x35/0x70 [ 17.109035][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 17.109040][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.109043][ C0] ? __sk_destruct+0x383/0x780 [ 17.109048][ C0] ? rcu_do_batch+0x34c/0xf20 [ 17.109051][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.109053][ C0] ? irq_exit_rcu+0xe/0x30 [ 17.109056][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.109061][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.109065][ C0] ? pv_native_safe_halt+0xf/0x20 [ 17.109068][ C0] ? default_idle+0x9/0x10 [ 17.109071][ C0] ? default_idle_call+0x6d/0xb0 [ 17.109073][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.109078][ C0] ? do_idle+0xf6/0x160 [ 17.109080][ C0] ? cpu_startup_entry+0x54/0x60 [ 17.109082][ C0] ? rest_init+0x14b/0x260 [ 17.109085][ C0] ? start_kernel+0x350/0x410 [ 17.109090][ C0] __put_net+0x19/0x60 [ 17.109093][ C0] __sk_destruct+0x58a/0x780 [ 17.109097][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.109099][ C0] rcu_do_batch+0x34c/0xf20 [ 17.109102][ C0] ? find_held_lock+0x2b/0x80 [ 17.109106][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.109109][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.109113][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.109116][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.109120][ C0] rcu_core+0x2bb/0x500 [ 17.109125][ C0] handle_softirqs+0x218/0x620 [ 17.109130][ C0] __irq_exit_rcu+0xfa/0x160 [ 17.109133][ C0] irq_exit_rcu+0xe/0x30 [ 17.109136][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.109139][ C0] [ 17.109140][ C0] [ 17.109141][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.109144][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.109148][ C0] Code: 00 b2 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 b0 0b 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.109151][ C0] RSP: 0018:ffffffff8a007df8 EFLAGS: 00000242 [ 17.109155][ C0] RAX: 000000000006ff85 RBX: 1ffffffff1400fc3 RCX: ffffffff893d7a19 [ 17.109157][ C0] RDX: 0000000000000000 RSI: ffffffff89e9c7ba RDI: ffffffff89655ce0 [ 17.109159][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 17.109160][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 17.109162][ C0] R13: ffffffff8a01f240 R14: dffffc0000000000 R15: 0000000000014770 [ 17.109166][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.109171][ C0] default_idle+0x9/0x10 [ 17.109174][ C0] default_idle_call+0x6d/0xb0 [ 17.109176][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 17.109179][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.109183][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.109188][ C0] do_idle+0xf6/0x160 [ 17.109191][ C0] cpu_startup_entry+0x54/0x60 [ 17.109194][ C0] rest_init+0x14b/0x260 [ 17.109197][ C0] start_kernel+0x350/0x410 [ 17.109201][ C0] x86_64_start_reservations+0x18/0x30 [ 17.109205][ C0] x86_64_start_kernel+0xba/0x110 [ 17.109209][ C0] common_startup_64+0x13e/0x148 [ 17.109218][ C0] [ 17.125734][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.126054][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 17.126371][ C0] preempt_count: 101, expected: 0 [ 17.126555][ C0] RCU nest depth: 0, expected: 0 [ 17.126740][ C0] INFO: lockdep is turned off. [ 17.126919][ C0] Preemption disabled at: [ 17.126921][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 17.127451][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 17.127455][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.127458][ C0] Call Trace: [ 17.127459][ C0] [ 17.127461][ C0] dump_stack_lvl+0xb0/0xd0 [ 17.127467][ C0] __might_resched+0x360/0x5a0 [ 17.127474][ C0] down_write+0x72/0x210 [ 17.127477][ C0] ? __pfx_down_write+0x10/0x10 [ 17.127479][ C0] ? simple_recursive_removal+0x3a/0x860 [ 17.127483][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.127488][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.127493][ C0] simple_recursive_removal+0x166/0x860 [ 17.127496][ C0] ? __pfx_remove_one+0x10/0x10 [ 17.127500][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.127505][ C0] debugfs_remove+0x44/0x70 [ 17.127508][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 17.127512][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.127516][ C0] ? __sk_destruct+0x383/0x780 [ 17.127520][ C0] ? rcu_do_batch+0x34c/0xf20 [ 17.127524][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.127526][ C0] ? irq_exit_rcu+0xe/0x30 [ 17.127532][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.127537][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.127540][ C0] ? pv_native_safe_halt+0xf/0x20 [ 17.127543][ C0] ? default_idle+0x9/0x10 [ 17.127546][ C0] ? default_idle_call+0x6d/0xb0 [ 17.127549][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.127552][ C0] ? do_idle+0xf6/0x160 [ 17.127554][ C0] ? cpu_startup_entry+0x54/0x60 [ 17.127557][ C0] ? rest_init+0x14b/0x260 [ 17.127559][ C0] ? start_kernel+0x350/0x410 [ 17.127566][ C0] __put_net+0x19/0x60 [ 17.127569][ C0] __sk_destruct+0x58a/0x780 [ 17.127572][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.127575][ C0] rcu_do_batch+0x34c/0xf20 [ 17.127578][ C0] ? find_held_lock+0x2b/0x80 [ 17.127583][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.127586][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.127590][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.127593][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.127598][ C0] rcu_core+0x2bb/0x500 [ 17.127602][ C0] handle_softirqs+0x218/0x620 [ 17.127608][ C0] __irq_exit_rcu+0xfa/0x160 [ 17.127611][ C0] irq_exit_rcu+0xe/0x30 [ 17.127614][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.127617][ C0] [ 17.127618][ C0] [ 17.127619][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.127622][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.127625][ C0] Code: 00 b2 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 b0 0b 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.127628][ C0] RSP: 0018:ffffffff8a007df8 EFLAGS: 00000242 [ 17.127631][ C0] RAX: 000000000006ff85 RBX: 1ffffffff1400fc3 RCX: ffffffff893d7a19 [ 17.127633][ C0] RDX: 0000000000000000 RSI: ffffffff89e9c7ba RDI: ffffffff89655ce0 [ 17.127635][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 17.127637][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 17.127638][ C0] R13: ffffffff8a01f240 R14: dffffc0000000000 R15: 0000000000014770 [ 17.127642][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.127647][ C0] default_idle+0x9/0x10 [ 17.127650][ C0] default_idle_call+0x6d/0xb0 [ 17.127653][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 17.127656][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.127659][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.127664][ C0] do_idle+0xf6/0x160 [ 17.127668][ C0] cpu_startup_entry+0x54/0x60 [ 17.127670][ C0] rest_init+0x14b/0x260 [ 17.127673][ C0] start_kernel+0x350/0x410 [ 17.127677][ C0] x86_64_start_reservations+0x18/0x30 [ 17.127680][ C0] x86_64_start_kernel+0xba/0x110 [ 17.127684][ C0] common_startup_64+0x13e/0x148 [ 17.127692][ C0]