[ 18.552592][ C2] [ 18.552735][ C2] ================================ [ 18.552918][ C2] WARNING: inconsistent lock state [ 18.553102][ C2] 6.15.0-rc7-virtme #1 Not tainted [ 18.553296][ C2] -------------------------------- [ 18.553496][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 18.553743][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 18.553998][ C2] ffffffff9cdbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 18.554364][ C2] {SOFTIRQ-ON-W} state was registered at: [ 18.554537][ C2] __lock_acquire+0x3eb/0x9d0 [ 18.554733][ C2] lock_acquire.part.0+0xb6/0x240 [ 18.554925][ C2] _raw_spin_lock+0x33/0x40 [ 18.555141][ C2] simple_pin_fs+0x24/0x150 [ 18.555331][ C2] start_creating.part.0+0x3f/0x2f0 [ 18.555520][ C2] debugfs_create_dir+0x6a/0x540 [ 18.555708][ C2] component_debug_init+0x17/0x30 [ 18.555898][ C2] do_one_initcall+0x8f/0x1e0 [ 18.556086][ C2] do_initcalls+0x176/0x280 [ 18.556276][ C2] kernel_init_freeable+0x22d/0x300 [ 18.556468][ C2] kernel_init+0x20/0x200 [ 18.556657][ C2] ret_from_fork+0x31/0x70 [ 18.556846][ C2] ret_from_fork_asm+0x1a/0x30 [ 18.557021][ C2] irq event stamp: 237522 [ 18.557151][ C2] hardirqs last enabled at (237522): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 18.557520][ C2] hardirqs last disabled at (237521): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 18.557914][ C2] softirqs last enabled at (236302): [] handle_softirqs+0x358/0x620 [ 18.558290][ C2] softirqs last disabled at (236305): [] run_ksoftirqd+0x3f/0x70 [ 18.558622][ C2] [ 18.558622][ C2] other info that might help us debug this: [ 18.558894][ C2] Possible unsafe locking scenario: [ 18.558894][ C2] [ 18.559162][ C2] CPU0 [ 18.559312][ C2] ---- [ 18.559452][ C2] lock(pin_fs_lock); [ 18.559607][ C2] [ 18.559748][ C2] lock(pin_fs_lock); [ 18.559893][ C2] [ 18.559893][ C2] *** DEADLOCK *** [ 18.559893][ C2] [ 18.560201][ C2] 1 lock held by ksoftirqd/2/27: [ 18.560398][ C2] #0: ffffffff9cb749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 18.560747][ C2] [ 18.560747][ C2] stack backtrace: [ 18.560994][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 18.560999][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.561001][ C2] Call Trace: [ 18.561003][ C2] [ 18.561006][ C2] dump_stack_lvl+0x82/0xd0 [ 18.561013][ C2] print_usage_bug.part.0+0x25f/0x360 [ 18.561019][ C2] mark_lock_irq+0x343/0x400 [ 18.561026][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 18.561035][ C2] ? save_trace+0x52/0x170 [ 18.561040][ C2] mark_lock+0x174/0x2f0 [ 18.561044][ C2] mark_usage+0x46/0x150 [ 18.561048][ C2] __lock_acquire+0x3eb/0x9d0 [ 18.561053][ C2] lock_acquire.part.0+0xb6/0x240 [ 18.561056][ C2] ? simple_pin_fs+0x24/0x150 [ 18.561060][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.561066][ C2] ? lock_acquire+0x10c/0x170 [ 18.561068][ C2] ? simple_pin_fs+0x24/0x150 [ 18.561074][ C2] _raw_spin_lock+0x33/0x40 [ 18.561080][ C2] ? simple_pin_fs+0x24/0x150 [ 18.561082][ C2] simple_pin_fs+0x24/0x150 [ 18.561085][ C2] debugfs_remove+0x35/0x70 [ 18.561089][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 18.561094][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.561097][ C2] ? __sk_destruct+0x383/0x780 [ 18.561103][ C2] ? rcu_do_batch+0x34f/0xf20 [ 18.561106][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.561109][ C2] ? smpboot_thread_fn+0x307/0x960 [ 18.561114][ C2] ? kthread+0x37b/0x600 [ 18.561119][ C2] ? ret_from_fork+0x31/0x70 [ 18.561124][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 18.561128][ C2] ? migrate_enable+0x1f2/0x270 [ 18.561133][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 18.561139][ C2] __put_net+0x19/0x60 [ 18.561143][ C2] __sk_destruct+0x58a/0x780 [ 18.561147][ C2] ? rcu_do_batch+0x34a/0xf20 [ 18.561150][ C2] rcu_do_batch+0x34f/0xf20 [ 18.561155][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.561161][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.561166][ C2] ? note_gp_changes+0x182/0x1e0 [ 18.561170][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 18.561177][ C2] rcu_core+0x2bb/0x500 [ 18.561181][ C2] handle_softirqs+0x218/0x620 [ 18.561185][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 18.561188][ C2] run_ksoftirqd+0x3f/0x70 [ 18.561191][ C2] smpboot_thread_fn+0x307/0x960 [ 18.561194][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 18.561198][ C2] kthread+0x37b/0x600 [ 18.561201][ C2] ? __pfx_kthread+0x10/0x10 [ 18.561204][ C2] ? ret_from_fork+0x1b/0x70 [ 18.561207][ C2] ? __lock_release+0x5d/0x170 [ 18.561212][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.561217][ C2] ? __pfx_kthread+0x10/0x10 [ 18.561220][ C2] ret_from_fork+0x31/0x70 [ 18.561223][ C2] ? __pfx_kthread+0x10/0x10 [ 18.561226][ C2] ret_from_fork_asm+0x1a/0x30 [ 18.561232][ C2] [ 18.572574][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.572986][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 18.573322][ C2] preempt_count: 100, expected: 0 [ 18.573535][ C2] RCU nest depth: 0, expected: 0 [ 18.573761][ C2] INFO: lockdep is turned off. [ 18.573963][ C2] Preemption disabled at: [ 18.573966][ C2] [] handle_softirqs+0xe5/0x620 [ 18.574406][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 18.574411][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.574413][ C2] Call Trace: [ 18.574415][ C2] [ 18.574418][ C2] dump_stack_lvl+0xb0/0xd0 [ 18.574427][ C2] __might_resched+0x360/0x5a0 [ 18.574433][ C2] down_write+0x72/0x210 [ 18.574437][ C2] ? __pfx_down_write+0x10/0x10 [ 18.574441][ C2] ? simple_recursive_removal+0x3a/0x860 [ 18.574445][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.574452][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 18.574459][ C2] simple_recursive_removal+0x166/0x860 [ 18.574463][ C2] ? __pfx_remove_one+0x10/0x10 [ 18.574468][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 18.574473][ C2] debugfs_remove+0x44/0x70 [ 18.574476][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 18.574481][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.574484][ C2] ? __sk_destruct+0x383/0x780 [ 18.574489][ C2] ? rcu_do_batch+0x34f/0xf20 [ 18.574494][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.574497][ C2] ? smpboot_thread_fn+0x307/0x960 [ 18.574500][ C2] ? kthread+0x37b/0x600 [ 18.574504][ C2] ? ret_from_fork+0x31/0x70 [ 18.574508][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 18.574512][ C2] ? migrate_enable+0x1f2/0x270 [ 18.574517][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 18.574523][ C2] __put_net+0x19/0x60 [ 18.574527][ C2] __sk_destruct+0x58a/0x780 [ 18.574531][ C2] ? rcu_do_batch+0x34a/0xf20 [ 18.574534][ C2] rcu_do_batch+0x34f/0xf20 [ 18.574540][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.574544][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.574547][ C2] ? note_gp_changes+0x182/0x1e0 [ 18.574551][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 18.574557][ C2] rcu_core+0x2bb/0x500 [ 18.574561][ C2] handle_softirqs+0x218/0x620 [ 18.574564][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 18.574567][ C2] run_ksoftirqd+0x3f/0x70 [ 18.574570][ C2] smpboot_thread_fn+0x307/0x960 [ 18.574573][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 18.574577][ C2] kthread+0x37b/0x600 [ 18.574580][ C2] ? __pfx_kthread+0x10/0x10 [ 18.574583][ C2] ? ret_from_fork+0x1b/0x70 [ 18.574585][ C2] ? __lock_release+0x5d/0x170 [ 18.574588][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.574592][ C2] ? __pfx_kthread+0x10/0x10 [ 18.574596][ C2] ret_from_fork+0x31/0x70 [ 18.574598][ C2] ? __pfx_kthread+0x10/0x10 [ 18.574601][ C2] ret_from_fork_asm+0x1a/0x30 [ 18.574608][ C2] [ 21.438959][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 21.439402][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 21.439794][ C0] preempt_count: 101, expected: 0 [ 21.440002][ C0] RCU nest depth: 0, expected: 0 [ 21.440208][ C0] INFO: lockdep is turned off. [ 21.440413][ C0] Preemption disabled at: [ 21.440414][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 21.440898][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 21.440904][ C0] Tainted: [W]=WARN [ 21.440905][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.440907][ C0] Call Trace: [ 21.440909][ C0] [ 21.440910][ C0] dump_stack_lvl+0xb0/0xd0 [ 21.440917][ C0] __might_resched+0x360/0x5a0 [ 21.440923][ C0] down_write+0x72/0x210 [ 21.440927][ C0] ? __pfx_down_write+0x10/0x10 [ 21.440930][ C0] ? simple_recursive_removal+0x3a/0x860 [ 21.440935][ C0] ? rcu_is_watching+0x12/0xc0 [ 21.440941][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 21.440946][ C0] simple_recursive_removal+0x166/0x860 [ 21.440949][ C0] ? __pfx_remove_one+0x10/0x10 [ 21.440953][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 21.440958][ C0] debugfs_remove+0x44/0x70 [ 21.440961][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 21.440966][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 21.440969][ C0] ? __sk_destruct+0x383/0x780 [ 21.440975][ C0] ? rcu_do_batch+0x34f/0xf20 [ 21.440979][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 21.440982][ C0] ? irq_exit_rcu+0xe/0x30 [ 21.440985][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 21.440990][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 21.440994][ C0] ? pv_native_safe_halt+0xf/0x20 [ 21.440997][ C0] ? default_idle+0x9/0x10 [ 21.441000][ C0] ? default_idle_call+0x6d/0xb0 [ 21.441002][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 21.441007][ C0] ? do_idle+0xf6/0x160 [ 21.441010][ C0] ? cpu_startup_entry+0x54/0x60 [ 21.441013][ C0] ? rest_init+0x14b/0x260 [ 21.441016][ C0] ? start_kernel+0x350/0x410 [ 21.441021][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 21.441027][ C0] ? rcu_is_watching+0x12/0xc0 [ 21.441032][ C0] __put_net+0x19/0x60 [ 21.441035][ C0] __sk_destruct+0x58a/0x780 [ 21.441039][ C0] ? rcu_do_batch+0x34a/0xf20 [ 21.441042][ C0] rcu_do_batch+0x34f/0xf20 [ 21.441047][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 21.441051][ C0] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 21.441057][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 21.441063][ C0] rcu_core+0x2bb/0x500 [ 21.441067][ C0] handle_softirqs+0x218/0x620 [ 21.441072][ C0] __irq_exit_rcu+0xfa/0x160 [ 21.441074][ C0] irq_exit_rcu+0xe/0x30 [ 21.441077][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 21.441080][ C0] [ 21.441081][ C0] [ 21.441083][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 21.441086][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 21.441090][ C0] Code: 60 b8 00 e9 c3 57 02 00 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 c3 75 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 [ 21.441092][ C0] RSP: 0018:ffffffff9c807df8 EFLAGS: 00000246 [ 21.441096][ C0] RAX: 0000000000000000 RBX: 1ffffffff3900fc3 RCX: ffffffff9bb5ba19 [ 21.441098][ C0] RDX: ffffed1006c0667b RSI: ffffffff9be511e0 RDI: ffffffff9938633f [ 21.441100][ C0] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c0667a [ 21.441102][ C0] R10: ffff8880360333d3 R11: ffff888001becb58 R12: 0000000000000000 [ 21.441104][ C0] R13: ffffffff9c81f240 R14: dffffc0000000000 R15: 0000000000014770 [ 21.441108][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 21.441111][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 21.441116][ C0] default_idle+0x9/0x10 [ 21.441119][ C0] default_idle_call+0x6d/0xb0 [ 21.441121][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 21.441125][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 21.441129][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 21.441136][ C0] do_idle+0xf6/0x160 [ 21.441140][ C0] cpu_startup_entry+0x54/0x60 [ 21.441144][ C0] rest_init+0x14b/0x260 [ 21.441147][ C0] start_kernel+0x350/0x410 [ 21.441151][ C0] x86_64_start_reservations+0x18/0x30 [ 21.441155][ C0] x86_64_start_kernel+0xba/0x110 [ 21.441159][ C0] common_startup_64+0x13e/0x148 [ 21.441168][ C0]