[ 15.123296][ C0] [ 15.123515][ C0] ================================ [ 15.123724][ C0] WARNING: inconsistent lock state [ 15.123934][ C0] 6.15.0-virtme #1 Not tainted [ 15.124137][ C0] -------------------------------- [ 15.124341][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.124596][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.124856][ C0] ffffffff8d9c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.125229][ C0] {SOFTIRQ-ON-W} state was registered at: [ 15.125434][ C0] __lock_acquire+0x20b/0x7e0 [ 15.125644][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.125852][ C0] _raw_spin_lock+0x33/0x40 [ 15.126062][ C0] simple_pin_fs+0x24/0x150 [ 15.126267][ C0] start_creating.part.0+0x52/0x310 [ 15.126480][ C0] debugfs_create_dir+0x6a/0x540 [ 15.126686][ C0] component_debug_init+0x17/0x30 [ 15.126895][ C0] do_one_initcall+0x8f/0x1e0 [ 15.127103][ C0] do_initcalls+0x176/0x280 [ 15.127311][ C0] kernel_init_freeable+0x22d/0x300 [ 15.127518][ C0] kernel_init+0x20/0x200 [ 15.127727][ C0] ret_from_fork+0x240/0x320 [ 15.127936][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.128145][ C0] irq event stamp: 413166 [ 15.128308][ C0] hardirqs last enabled at (413166): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.128718][ C0] hardirqs last disabled at (413165): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.129139][ C0] softirqs last enabled at (411098): [] handle_softirqs+0x358/0x620 [ 15.129498][ C0] softirqs last disabled at (411105): [] __irq_exit_rcu+0xfa/0x160 [ 15.129859][ C0] [ 15.129859][ C0] other info that might help us debug this: [ 15.130166][ C0] Possible unsafe locking scenario: [ 15.130166][ C0] [ 15.130474][ C0] CPU0 [ 15.130634][ C0] ---- [ 15.130790][ C0] lock(pin_fs_lock); [ 15.130947][ C0] [ 15.131103][ C0] lock(pin_fs_lock); [ 15.131263][ C0] [ 15.131263][ C0] *** DEADLOCK *** [ 15.131263][ C0] [ 15.131571][ C0] 1 lock held by swapper/0/0: [ 15.131781][ C0] #0: ffffffff8d7774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.132148][ C0] [ 15.132148][ C0] stack backtrace: [ 15.132403][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.132408][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.132410][ C0] Call Trace: [ 15.132412][ C0] [ 15.132414][ C0] dump_stack_lvl+0x82/0xd0 [ 15.132420][ C0] print_usage_bug.part.0+0x25f/0x360 [ 15.132424][ C0] mark_lock_irq+0x343/0x400 [ 15.132427][ C0] ? is_bpf_text_address+0x67/0x120 [ 15.132432][ C0] ? __lock_release+0x5d/0x170 [ 15.132436][ C0] ? save_trace+0x52/0x170 [ 15.132442][ C0] mark_lock+0x174/0x2f0 [ 15.132446][ C0] mark_usage+0x46/0x150 [ 15.132449][ C0] __lock_acquire+0x20b/0x7e0 [ 15.132452][ C0] ? __lock_acquire+0x44d/0x7e0 [ 15.132456][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.132459][ C0] ? simple_pin_fs+0x24/0x150 [ 15.132463][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.132467][ C0] ? lock_acquire+0x10c/0x170 [ 15.132470][ C0] ? simple_pin_fs+0x24/0x150 [ 15.132474][ C0] _raw_spin_lock+0x33/0x40 [ 15.132477][ C0] ? simple_pin_fs+0x24/0x150 [ 15.132481][ C0] simple_pin_fs+0x24/0x150 [ 15.132485][ C0] debugfs_remove+0x35/0x70 [ 15.132488][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.132493][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.132497][ C0] ? __sk_destruct+0x383/0x780 [ 15.132502][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.132505][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.132508][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.132511][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.132515][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.132519][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.132523][ C0] ? default_idle+0x9/0x10 [ 15.132525][ C0] ? default_idle_call+0x6d/0xb0 [ 15.132528][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.132531][ C0] ? do_idle+0xf6/0x160 [ 15.132533][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.132536][ C0] ? rest_init+0x14b/0x260 [ 15.132539][ C0] ? start_kernel+0x350/0x410 [ 15.132544][ C0] __put_net+0x19/0x60 [ 15.132548][ C0] __sk_destruct+0x58a/0x780 [ 15.132552][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.132554][ C0] rcu_do_batch+0x34c/0xf20 [ 15.132558][ C0] ? find_held_lock+0x2b/0x80 [ 15.132562][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.132565][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.132569][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.132572][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.132576][ C0] rcu_core+0x2bb/0x500 [ 15.132581][ C0] handle_softirqs+0x218/0x620 [ 15.132586][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.132589][ C0] irq_exit_rcu+0xe/0x30 [ 15.132591][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.132595][ C0] [ 15.132596][ C0] [ 15.132598][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.132600][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.132604][ C0] Code: 92 b5 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 83 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 15.132607][ C0] RSP: 0018:ffffffff8d407df8 EFLAGS: 00000242 [ 15.132610][ C0] RAX: 00000000000645df RBX: 1ffffffff1a80fc3 RCX: ffffffff8c7905d9 [ 15.132612][ C0] RDX: 0000000000000000 RSI: ffffffff8d28f4e4 RDI: ffffffff8ca53be0 [ 15.132614][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 15.132616][ C0] R10: ffff8880360337d3 R11: ffffffff8d411288 R12: 0000000000000000 [ 15.132617][ C0] R13: ffffffff8d41f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.132621][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.132626][ C0] default_idle+0x9/0x10 [ 15.132629][ C0] default_idle_call+0x6d/0xb0 [ 15.132631][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.132634][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.132638][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.132643][ C0] do_idle+0xf6/0x160 [ 15.132647][ C0] cpu_startup_entry+0x54/0x60 [ 15.132650][ C0] rest_init+0x14b/0x260 [ 15.132653][ C0] start_kernel+0x350/0x410 [ 15.132657][ C0] x86_64_start_reservations+0x18/0x30 [ 15.132661][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.132665][ C0] common_startup_64+0x13e/0x148 [ 15.132675][ C0] [ 15.150153][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.150615][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 15.150951][ C0] preempt_count: 101, expected: 0 [ 15.151143][ C0] RCU nest depth: 0, expected: 0 [ 15.151332][ C0] INFO: lockdep is turned off. [ 15.151646][ C0] Preemption disabled at: [ 15.151648][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 15.152093][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.152098][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.152099][ C0] Call Trace: [ 15.152101][ C0] [ 15.152103][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.152109][ C0] __might_resched+0x360/0x5a0 [ 15.152115][ C0] down_write+0x72/0x210 [ 15.152119][ C0] ? __pfx_down_write+0x10/0x10 [ 15.152122][ C0] ? simple_recursive_removal+0x33/0x610 [ 15.152126][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.152131][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.152136][ C0] simple_recursive_removal+0x6a/0x610 [ 15.152139][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.152142][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.152147][ C0] debugfs_remove+0x44/0x70 [ 15.152150][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.152155][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.152159][ C0] ? __sk_destruct+0x383/0x780 [ 15.152163][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.152167][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.152170][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.152174][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.152179][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.152182][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.152186][ C0] ? default_idle+0x9/0x10 [ 15.152188][ C0] ? default_idle_call+0x6d/0xb0 [ 15.152191][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.152194][ C0] ? do_idle+0xf6/0x160 [ 15.152196][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.152198][ C0] ? rest_init+0x14b/0x260 [ 15.152201][ C0] ? start_kernel+0x350/0x410 [ 15.152208][ C0] __put_net+0x19/0x60 [ 15.152211][ C0] __sk_destruct+0x58a/0x780 [ 15.152216][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.152218][ C0] rcu_do_batch+0x34c/0xf20 [ 15.152221][ C0] ? find_held_lock+0x2b/0x80 [ 15.152226][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.152230][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.152234][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.152237][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.152241][ C0] rcu_core+0x2bb/0x500 [ 15.152246][ C0] handle_softirqs+0x218/0x620 [ 15.152251][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.152254][ C0] irq_exit_rcu+0xe/0x30 [ 15.152257][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.152261][ C0] [ 15.152262][ C0] [ 15.152264][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.152267][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.152271][ C0] Code: 92 b5 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 83 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 15.152274][ C0] RSP: 0018:ffffffff8d407df8 EFLAGS: 00000242 [ 15.152276][ C0] RAX: 00000000000645df RBX: 1ffffffff1a80fc3 RCX: ffffffff8c7905d9 [ 15.152278][ C0] RDX: 0000000000000000 RSI: ffffffff8d28f4e4 RDI: ffffffff8ca53be0 [ 15.152280][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 15.152281][ C0] R10: ffff8880360337d3 R11: ffffffff8d411288 R12: 0000000000000000 [ 15.152283][ C0] R13: ffffffff8d41f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.152287][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.152292][ C0] default_idle+0x9/0x10 [ 15.152294][ C0] default_idle_call+0x6d/0xb0 [ 15.152297][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.152300][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.152304][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.152309][ C0] do_idle+0xf6/0x160 [ 15.152312][ C0] cpu_startup_entry+0x54/0x60 [ 15.152315][ C0] rest_init+0x14b/0x260 [ 15.152319][ C0] start_kernel+0x350/0x410 [ 15.152323][ C0] x86_64_start_reservations+0x18/0x30 [ 15.152327][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.152331][ C0] common_startup_64+0x13e/0x148 [ 15.152339][ C0] [ 16.769372][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.769767][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 16.770116][ C3] preempt_count: 100, expected: 0 [ 16.770317][ C3] RCU nest depth: 0, expected: 0 [ 16.770515][ C3] INFO: lockdep is turned off. [ 16.770722][ C3] Preemption disabled at: [ 16.770724][ C3] [] handle_softirqs+0xe5/0x620 [ 16.771151][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.771157][ C3] Tainted: [W]=WARN [ 16.771158][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.771160][ C3] Call Trace: [ 16.771162][ C3] [ 16.771164][ C3] dump_stack_lvl+0xb0/0xd0 [ 16.771173][ C3] __might_resched+0x360/0x5a0 [ 16.771180][ C3] down_write+0x72/0x210 [ 16.771185][ C3] ? __pfx_down_write+0x10/0x10 [ 16.771188][ C3] ? simple_recursive_removal+0x33/0x610 [ 16.771192][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.771197][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.771203][ C3] simple_recursive_removal+0x6a/0x610 [ 16.771205][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.771209][ C3] ? __pfx_remove_one+0x10/0x10 [ 16.771214][ C3] debugfs_remove+0x44/0x70 [ 16.771217][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 16.771223][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.771227][ C3] ? __sk_destruct+0x383/0x780 [ 16.771233][ C3] ? rcu_do_batch+0x34c/0xf20 [ 16.771236][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.771239][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 16.771243][ C3] ? kthread+0x37e/0x600 [ 16.771246][ C3] ? ret_from_fork+0x240/0x320 [ 16.771250][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 16.771256][ C3] ? migrate_enable+0x1f2/0x270 [ 16.771260][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 16.771263][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.771267][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.771271][ C3] __put_net+0x19/0x60 [ 16.771275][ C3] __sk_destruct+0x58a/0x780 [ 16.771279][ C3] ? rcu_do_batch+0x34a/0xf20 [ 16.771281][ C3] rcu_do_batch+0x34c/0xf20 [ 16.771286][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.771289][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.771292][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.771299][ C3] rcu_core+0x2bb/0x500 [ 16.771304][ C3] handle_softirqs+0x218/0x620 [ 16.771309][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 16.771312][ C3] run_ksoftirqd+0x3f/0x70 [ 16.771315][ C3] smpboot_thread_fn+0x30a/0x960 [ 16.771319][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.771323][ C3] kthread+0x37e/0x600 [ 16.771325][ C3] ? __pfx_kthread+0x10/0x10 [ 16.771328][ C3] ? ret_from_fork+0x1b/0x320 [ 16.771330][ C3] ? __lock_release+0x5d/0x170 [ 16.771334][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.771337][ C3] ? __pfx_kthread+0x10/0x10 [ 16.771340][ C3] ret_from_fork+0x240/0x320 [ 16.771343][ C3] ? __pfx_kthread+0x10/0x10 [ 16.771346][ C3] ret_from_fork_asm+0x1a/0x30 [ 16.771353][ C3]