[ 14.528006][ C3] [ 14.528141][ C3] ================================ [ 14.528330][ C3] WARNING: inconsistent lock state [ 14.528515][ C3] 6.15.0-virtme #1 Not tainted [ 14.528704][ C3] -------------------------------- [ 14.528891][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.529121][ C3] ksoftirqd/3/32 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.529353][ C3] ffffffffb09c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.529685][ C3] {SOFTIRQ-ON-W} state was registered at: [ 14.529873][ C3] __lock_acquire+0x20b/0x7e0 [ 14.530066][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.530253][ C3] _raw_spin_lock+0x33/0x40 [ 14.530443][ C3] simple_pin_fs+0x24/0x150 [ 14.530630][ C3] start_creating.part.0+0x52/0x310 [ 14.530813][ C3] debugfs_create_dir+0x6a/0x540 [ 14.530997][ C3] component_debug_init+0x17/0x30 [ 14.531186][ C3] do_one_initcall+0x8f/0x1e0 [ 14.531373][ C3] do_initcalls+0x176/0x280 [ 14.531558][ C3] kernel_init_freeable+0x22d/0x300 [ 14.531743][ C3] kernel_init+0x20/0x200 [ 14.531928][ C3] ret_from_fork+0x240/0x320 [ 14.532117][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.532303][ C3] irq event stamp: 197248 [ 14.532442][ C3] hardirqs last enabled at (197248): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.532807][ C3] hardirqs last disabled at (197247): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.533169][ C3] softirqs last enabled at (196158): [] handle_softirqs+0x358/0x620 [ 14.533489][ C3] softirqs last disabled at (196169): [] run_ksoftirqd+0x3f/0x70 [ 14.533808][ C3] [ 14.533808][ C3] other info that might help us debug this: [ 14.534074][ C3] Possible unsafe locking scenario: [ 14.534074][ C3] [ 14.534342][ C3] CPU0 [ 14.534479][ C3] ---- [ 14.534615][ C3] lock(pin_fs_lock); [ 14.534754][ C3] [ 14.534891][ C3] lock(pin_fs_lock); [ 14.535030][ C3] [ 14.535030][ C3] *** DEADLOCK *** [ 14.535030][ C3] [ 14.535304][ C3] 1 lock held by ksoftirqd/3/32: [ 14.535489][ C3] #0: ffffffffb07774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.535817][ C3] [ 14.535817][ C3] stack backtrace: [ 14.536045][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.536050][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.536052][ C3] Call Trace: [ 14.536054][ C3] [ 14.536056][ C3] dump_stack_lvl+0x82/0xd0 [ 14.536062][ C3] print_usage_bug.part.0+0x25f/0x360 [ 14.536066][ C3] mark_lock_irq+0x343/0x400 [ 14.536070][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.536075][ C3] ? save_trace+0x52/0x170 [ 14.536081][ C3] mark_lock+0x174/0x2f0 [ 14.536084][ C3] mark_usage+0x46/0x150 [ 14.536087][ C3] __lock_acquire+0x20b/0x7e0 [ 14.536091][ C3] ? __lock_acquire+0x44d/0x7e0 [ 14.536095][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.536098][ C3] ? simple_pin_fs+0x24/0x150 [ 14.536102][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.536106][ C3] ? lock_acquire+0x10c/0x170 [ 14.536109][ C3] ? simple_pin_fs+0x24/0x150 [ 14.536114][ C3] _raw_spin_lock+0x33/0x40 [ 14.536117][ C3] ? simple_pin_fs+0x24/0x150 [ 14.536120][ C3] simple_pin_fs+0x24/0x150 [ 14.536125][ C3] debugfs_remove+0x35/0x70 [ 14.536127][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.536133][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.536137][ C3] ? __sk_destruct+0x383/0x780 [ 14.536142][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.536145][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.536148][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 14.536153][ C3] ? kthread+0x37e/0x600 [ 14.536156][ C3] ? ret_from_fork+0x240/0x320 [ 14.536158][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 14.536161][ C3] ? migrate_enable+0x1f2/0x270 [ 14.536164][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 14.536170][ C3] __put_net+0x19/0x60 [ 14.536173][ C3] __sk_destruct+0x58a/0x780 [ 14.536177][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.536179][ C3] rcu_do_batch+0x34c/0xf20 [ 14.536184][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.536187][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.536190][ C3] ? note_gp_changes+0x182/0x1e0 [ 14.536193][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.536197][ C3] rcu_core+0x2bb/0x500 [ 14.536201][ C3] handle_softirqs+0x218/0x620 [ 14.536205][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.536208][ C3] run_ksoftirqd+0x3f/0x70 [ 14.536211][ C3] smpboot_thread_fn+0x30a/0x960 [ 14.536215][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.536219][ C3] kthread+0x37e/0x600 [ 14.536222][ C3] ? __pfx_kthread+0x10/0x10 [ 14.536224][ C3] ? ret_from_fork+0x1b/0x320 [ 14.536226][ C3] ? __lock_release+0x5d/0x170 [ 14.536230][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.536233][ C3] ? __pfx_kthread+0x10/0x10 [ 14.536236][ C3] ret_from_fork+0x240/0x320 [ 14.536238][ C3] ? __pfx_kthread+0x10/0x10 [ 14.536241][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.536248][ C3] [ 14.546674][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.546974][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 14.547274][ C3] preempt_count: 100, expected: 0 [ 14.547450][ C3] RCU nest depth: 0, expected: 0 [ 14.547620][ C3] INFO: lockdep is turned off. [ 14.547789][ C3] Preemption disabled at: [ 14.547791][ C3] [] handle_softirqs+0xe5/0x620 [ 14.548140][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.548144][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.548146][ C3] Call Trace: [ 14.548147][ C3] [ 14.548149][ C3] dump_stack_lvl+0xb0/0xd0 [ 14.548154][ C3] __might_resched+0x360/0x5a0 [ 14.548160][ C3] down_write+0x72/0x210 [ 14.548164][ C3] ? __pfx_down_write+0x10/0x10 [ 14.548167][ C3] ? simple_recursive_removal+0x33/0x610 [ 14.548170][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.548173][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.548179][ C3] simple_recursive_removal+0x6a/0x610 [ 14.548181][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.548184][ C3] ? __pfx_remove_one+0x10/0x10 [ 14.548189][ C3] debugfs_remove+0x44/0x70 [ 14.548192][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.548196][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.548200][ C3] ? __sk_destruct+0x383/0x780 [ 14.548203][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.548206][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.548209][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 14.548213][ C3] ? kthread+0x37e/0x600 [ 14.548215][ C3] ? ret_from_fork+0x240/0x320 [ 14.548217][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 14.548221][ C3] ? migrate_enable+0x1f2/0x270 [ 14.548224][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 14.548230][ C3] __put_net+0x19/0x60 [ 14.548233][ C3] __sk_destruct+0x58a/0x780 [ 14.548237][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.548239][ C3] rcu_do_batch+0x34c/0xf20 [ 14.548244][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.548247][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.548250][ C3] ? note_gp_changes+0x182/0x1e0 [ 14.548253][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.548257][ C3] rcu_core+0x2bb/0x500 [ 14.548260][ C3] handle_softirqs+0x218/0x620 [ 14.548264][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.548268][ C3] run_ksoftirqd+0x3f/0x70 [ 14.548271][ C3] smpboot_thread_fn+0x30a/0x960 [ 14.548274][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.548278][ C3] kthread+0x37e/0x600 [ 14.548281][ C3] ? __pfx_kthread+0x10/0x10 [ 14.548283][ C3] ? ret_from_fork+0x1b/0x320 [ 14.548286][ C3] ? __lock_release+0x5d/0x170 [ 14.548289][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.548292][ C3] ? __pfx_kthread+0x10/0x10 [ 14.548295][ C3] ret_from_fork+0x240/0x320 [ 14.548298][ C3] ? __pfx_kthread+0x10/0x10 [ 14.548300][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.548310][ C3] [ 16.110947][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.111344][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 16.111689][ C2] preempt_count: 101, expected: 0 [ 16.111891][ C2] RCU nest depth: 0, expected: 0 [ 16.112098][ C2] INFO: lockdep is turned off. [ 16.112297][ C2] Preemption disabled at: [ 16.112299][ C2] [<0000000000000000>] 0x0 [ 16.112665][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.112671][ C2] Tainted: [W]=WARN [ 16.112672][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.112674][ C2] Call Trace: [ 16.112676][ C2] [ 16.112678][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.112687][ C2] __might_resched+0x360/0x5a0 [ 16.112694][ C2] down_write+0x72/0x210 [ 16.112699][ C2] ? __pfx_down_write+0x10/0x10 [ 16.112702][ C2] ? simple_recursive_removal+0x33/0x610 [ 16.112706][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.112711][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.112717][ C2] simple_recursive_removal+0x6a/0x610 [ 16.112719][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.112723][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.112728][ C2] debugfs_remove+0x44/0x70 [ 16.112731][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.112737][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.112741][ C2] ? __sk_destruct+0x383/0x780 [ 16.112746][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.112749][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.112753][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.112757][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.112762][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.112766][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.112770][ C2] ? default_idle+0x9/0x10 [ 16.112772][ C2] ? default_idle_call+0x6d/0xb0 [ 16.112775][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.112778][ C2] ? do_idle+0xf6/0x160 [ 16.112780][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.112783][ C2] ? start_secondary+0x213/0x2a0 [ 16.112786][ C2] ? common_startup_64+0x13e/0x148 [ 16.112792][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.112796][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.112800][ C2] __put_net+0x19/0x60 [ 16.112804][ C2] __sk_destruct+0x58a/0x780 [ 16.112808][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.112810][ C2] rcu_do_batch+0x34c/0xf20 [ 16.112815][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.112818][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.112825][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.112831][ C2] rcu_core+0x2bb/0x500 [ 16.112835][ C2] handle_softirqs+0x218/0x620 [ 16.112840][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.112844][ C2] irq_exit_rcu+0xe/0x30 [ 16.112846][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.112850][ C2] [ 16.112851][ C2] [ 16.112853][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.112856][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.112860][ C2] 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 [ 16.112863][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 16.112866][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffffaf7905d9 [ 16.112868][ C2] RDX: ffffed1006c266fb RSI: ffffffffafa53b60 RDI: ffffffffacf8d18f [ 16.112870][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c266fa [ 16.112872][ C2] R10: ffff8880361337d3 R11: ffffffffb31108d8 R12: 0000000000000000 [ 16.112873][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 16.112877][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.112881][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.112884][ C2] default_idle+0x9/0x10 [ 16.112887][ C2] default_idle_call+0x6d/0xb0 [ 16.112890][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.112893][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.112897][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.112902][ C2] do_idle+0xf6/0x160 [ 16.112905][ C2] cpu_startup_entry+0x54/0x60 [ 16.112908][ C2] start_secondary+0x213/0x2a0 [ 16.112911][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.112915][ C2] common_startup_64+0x13e/0x148 [ 16.112922][ C2]