[ 19.952084][ C1] [ 19.952286][ C1] ================================ [ 19.952466][ C1] WARNING: inconsistent lock state [ 19.952635][ C1] 6.15.0-rc5-virtme #1 Not tainted [ 19.952804][ C1] -------------------------------- [ 19.952971][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 19.953175][ C1] ksoftirqd/1/22 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 19.953383][ C1] ffffffff8d5bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 19.953686][ C1] {SOFTIRQ-ON-W} state was registered at: [ 19.953853][ C1] __lock_acquire+0x3eb/0x9d0 [ 19.954027][ C1] lock_acquire.part.0+0xb6/0x240 [ 19.954194][ C1] _raw_spin_lock+0x33/0x40 [ 19.954362][ C1] simple_pin_fs+0x24/0x150 [ 19.954530][ C1] start_creating.part.0+0x3f/0x2f0 [ 19.954699][ C1] debugfs_create_dir+0x6a/0x540 [ 19.954865][ C1] component_debug_init+0x17/0x30 [ 19.955037][ C1] do_one_initcall+0x8c/0x1e0 [ 19.955209][ C1] do_initcalls+0x176/0x280 [ 19.955382][ C1] kernel_init_freeable+0x22d/0x300 [ 19.955549][ C1] kernel_init+0x20/0x200 [ 19.955717][ C1] ret_from_fork+0x31/0x70 [ 19.955887][ C1] ret_from_fork_asm+0x1a/0x30 [ 19.956054][ C1] irq event stamp: 250966 [ 19.956183][ C1] hardirqs last enabled at (250966): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.956517][ C1] hardirqs last disabled at (250965): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 19.956858][ C1] softirqs last enabled at (249936): [] handle_softirqs+0x358/0x620 [ 19.957149][ C1] softirqs last disabled at (249939): [] run_ksoftirqd+0x3f/0x70 [ 19.957443][ C1] [ 19.957443][ C1] other info that might help us debug this: [ 19.957689][ C1] Possible unsafe locking scenario: [ 19.957689][ C1] [ 19.957933][ C1] CPU0 [ 19.958057][ C1] ---- [ 19.958181][ C1] lock(pin_fs_lock); [ 19.958308][ C1] [ 19.958435][ C1] lock(pin_fs_lock); [ 19.958565][ C1] [ 19.958565][ C1] *** DEADLOCK *** [ 19.958565][ C1] [ 19.958809][ C1] 1 lock held by ksoftirqd/1/22: [ 19.958974][ C1] #0: ffffffff8d374480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 19.959272][ C1] [ 19.959272][ C1] stack backtrace: [ 19.959481][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 19.959486][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.959488][ C1] Call Trace: [ 19.959489][ C1] [ 19.959492][ C1] dump_stack_lvl+0x82/0xd0 [ 19.959497][ C1] print_usage_bug.part.0+0x25f/0x360 [ 19.959502][ C1] mark_lock_irq+0x343/0x400 [ 19.959507][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 19.959512][ C1] ? save_trace+0x52/0x170 [ 19.959516][ C1] mark_lock+0x174/0x2f0 [ 19.959520][ C1] mark_usage+0x46/0x150 [ 19.959524][ C1] __lock_acquire+0x3eb/0x9d0 [ 19.959529][ C1] lock_acquire.part.0+0xb6/0x240 [ 19.959532][ C1] ? simple_pin_fs+0x24/0x150 [ 19.959536][ C1] ? rcu_is_watching+0x12/0xc0 [ 19.959542][ C1] ? lock_acquire+0x10c/0x170 [ 19.959545][ C1] ? simple_pin_fs+0x24/0x150 [ 19.959549][ C1] _raw_spin_lock+0x33/0x40 [ 19.959552][ C1] ? simple_pin_fs+0x24/0x150 [ 19.959555][ C1] simple_pin_fs+0x24/0x150 [ 19.959559][ C1] debugfs_remove+0x35/0x70 [ 19.959562][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 19.959567][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.959570][ C1] ? __sk_destruct+0x383/0x780 [ 19.959575][ C1] ? rcu_do_batch+0x34c/0xf20 [ 19.959578][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.959581][ C1] ? smpboot_thread_fn+0x307/0x960 [ 19.959585][ C1] ? kthread+0x37b/0x600 [ 19.959588][ C1] ? ret_from_fork+0x31/0x70 [ 19.959591][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 19.959594][ C1] ? migrate_enable+0x1f2/0x270 [ 19.959598][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 19.959603][ C1] __put_net+0x19/0x60 [ 19.959607][ C1] __sk_destruct+0x58a/0x780 [ 19.959611][ C1] ? rcu_do_batch+0x34a/0xf20 [ 19.959613][ C1] rcu_do_batch+0x34c/0xf20 [ 19.959618][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.959622][ C1] ? rcu_is_watching+0x12/0xc0 [ 19.959626][ C1] ? note_gp_changes+0x182/0x1e0 [ 19.959629][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.959635][ C1] rcu_core+0x2bb/0x500 [ 19.959638][ C1] handle_softirqs+0x218/0x620 [ 19.959642][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 19.959645][ C1] run_ksoftirqd+0x3f/0x70 [ 19.959647][ C1] smpboot_thread_fn+0x307/0x960 [ 19.959650][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 19.959653][ C1] kthread+0x37b/0x600 [ 19.959657][ C1] ? __pfx_kthread+0x10/0x10 [ 19.959659][ C1] ? ret_from_fork+0x1b/0x70 [ 19.959662][ C1] ? __lock_release+0x5d/0x170 [ 19.959666][ C1] ? rcu_is_watching+0x12/0xc0 [ 19.959669][ C1] ? __pfx_kthread+0x10/0x10 [ 19.959673][ C1] ret_from_fork+0x31/0x70 [ 19.959676][ C1] ? __pfx_kthread+0x10/0x10 [ 19.959679][ C1] ret_from_fork_asm+0x1a/0x30 [ 19.959686][ C1] [ 19.968970][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 19.969253][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 19.969529][ C1] preempt_count: 100, expected: 0 [ 19.969685][ C1] RCU nest depth: 0, expected: 0 [ 19.969839][ C1] INFO: lockdep is turned off. [ 19.970002][ C1] Preemption disabled at: [ 19.970004][ C1] [] handle_softirqs+0xe5/0x620 [ 19.970315][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 19.970319][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.970320][ C1] Call Trace: [ 19.970322][ C1] [ 19.970324][ C1] dump_stack_lvl+0xb0/0xd0 [ 19.970329][ C1] __might_resched+0x360/0x5a0 [ 19.970334][ C1] down_write+0x72/0x210 [ 19.970337][ C1] ? __pfx_down_write+0x10/0x10 [ 19.970340][ C1] ? simple_recursive_removal+0x3a/0x860 [ 19.970343][ C1] ? rcu_is_watching+0x12/0xc0 [ 19.970348][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 19.970352][ C1] simple_recursive_removal+0x166/0x860 [ 19.970354][ C1] ? __pfx_remove_one+0x10/0x10 [ 19.970358][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 19.970362][ C1] debugfs_remove+0x44/0x70 [ 19.970365][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 19.970369][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.970372][ C1] ? __sk_destruct+0x383/0x780 [ 19.970375][ C1] ? rcu_do_batch+0x34c/0xf20 [ 19.970379][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.970382][ C1] ? smpboot_thread_fn+0x307/0x960 [ 19.970385][ C1] ? kthread+0x37b/0x600 [ 19.970388][ C1] ? ret_from_fork+0x31/0x70 [ 19.970392][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 19.970395][ C1] ? migrate_enable+0x1f2/0x270 [ 19.970399][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 19.970406][ C1] __put_net+0x19/0x60 [ 19.970409][ C1] __sk_destruct+0x58a/0x780 [ 19.970413][ C1] ? rcu_do_batch+0x34a/0xf20 [ 19.970416][ C1] rcu_do_batch+0x34c/0xf20 [ 19.970421][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.970425][ C1] ? rcu_is_watching+0x12/0xc0 [ 19.970428][ C1] ? note_gp_changes+0x182/0x1e0 [ 19.970432][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.970438][ C1] rcu_core+0x2bb/0x500 [ 19.970440][ C1] handle_softirqs+0x218/0x620 [ 19.970444][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 19.970447][ C1] run_ksoftirqd+0x3f/0x70 [ 19.970449][ C1] smpboot_thread_fn+0x307/0x960 [ 19.970452][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 19.970456][ C1] kthread+0x37b/0x600 [ 19.970459][ C1] ? __pfx_kthread+0x10/0x10 [ 19.970462][ C1] ? ret_from_fork+0x1b/0x70 [ 19.970466][ C1] ? __lock_release+0x5d/0x170 [ 19.970470][ C1] ? rcu_is_watching+0x12/0xc0 [ 19.970473][ C1] ? __pfx_kthread+0x10/0x10 [ 19.970477][ C1] ret_from_fork+0x31/0x70 [ 19.970480][ C1] ? __pfx_kthread+0x10/0x10 [ 19.970483][ C1] ret_from_fork_asm+0x1a/0x30 [ 19.970489][ C1] [ 25.843457][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 25.843836][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 25.844136][ C2] preempt_count: 101, expected: 0 [ 25.844313][ C2] RCU nest depth: 0, expected: 0 [ 25.844502][ C2] INFO: lockdep is turned off. [ 25.844677][ C2] Preemption disabled at: [ 25.844679][ C2] [<0000000000000000>] 0x0 [ 25.844996][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 25.845002][ C2] Tainted: [W]=WARN [ 25.845003][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 25.845005][ C2] Call Trace: [ 25.845007][ C2] [ 25.845009][ C2] dump_stack_lvl+0xb0/0xd0 [ 25.845016][ C2] __might_resched+0x360/0x5a0 [ 25.845023][ C2] down_write+0x72/0x210 [ 25.845027][ C2] ? __pfx_down_write+0x10/0x10 [ 25.845030][ C2] ? simple_recursive_removal+0x3a/0x860 [ 25.845035][ C2] ? rcu_is_watching+0x12/0xc0 [ 25.845040][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 25.845045][ C2] simple_recursive_removal+0x166/0x860 [ 25.845048][ C2] ? __pfx_remove_one+0x10/0x10 [ 25.845052][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 25.845057][ C2] debugfs_remove+0x44/0x70 [ 25.845059][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 25.845064][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 25.845067][ C2] ? __sk_destruct+0x383/0x780 [ 25.845072][ C2] ? rcu_do_batch+0x34c/0xf20 [ 25.845077][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 25.845080][ C2] ? irq_exit_rcu+0xe/0x30 [ 25.845083][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 25.845088][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.845092][ C2] ? pv_native_safe_halt+0xf/0x20 [ 25.845095][ C2] ? default_idle+0x9/0x10 [ 25.845097][ C2] ? default_idle_call+0x6d/0xb0 [ 25.845099][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 25.845105][ C2] ? do_idle+0xf6/0x160 [ 25.845107][ C2] ? cpu_startup_entry+0x54/0x60 [ 25.845110][ C2] ? start_secondary+0x213/0x2a0 [ 25.845115][ C2] ? common_startup_64+0x13e/0x148 [ 25.845119][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 25.845123][ C2] ? rcu_is_watching+0x12/0xc0 [ 25.845128][ C2] __put_net+0x19/0x60 [ 25.845131][ C2] __sk_destruct+0x58a/0x780 [ 25.845135][ C2] ? rcu_do_batch+0x34a/0xf20 [ 25.845137][ C2] rcu_do_batch+0x34c/0xf20 [ 25.845142][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 25.845147][ C2] ? rcu_is_watching+0x12/0xc0 [ 25.845152][ C2] rcu_core+0x2bb/0x500 [ 25.845155][ C2] handle_softirqs+0x218/0x620 [ 25.845160][ C2] __irq_exit_rcu+0xfa/0x160 [ 25.845162][ C2] irq_exit_rcu+0xe/0x30 [ 25.845164][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 25.845168][ C2] [ 25.845169][ C2] [ 25.845170][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.845173][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 25.845177][ 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 [ 25.845180][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 25.845183][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff8c355a19 [ 25.845185][ C2] RDX: ffffed1006c2667b RSI: ffffffff8c650c60 RDI: ffffffff89b84d8f [ 25.845187][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c2667a [ 25.845189][ C2] R10: ffff8880361333d3 R11: ffff888001b9cb58 R12: 0000000000000000 [ 25.845191][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 25.845194][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 25.845198][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 25.845203][ C2] default_idle+0x9/0x10 [ 25.845205][ C2] default_idle_call+0x6d/0xb0 [ 25.845207][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 25.845211][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 25.845215][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 25.845220][ C2] do_idle+0xf6/0x160 [ 25.845224][ C2] cpu_startup_entry+0x54/0x60 [ 25.845227][ C2] start_secondary+0x213/0x2a0 [ 25.845231][ C2] ? __pfx_start_secondary+0x10/0x10 [ 25.845236][ C2] common_startup_64+0x13e/0x148 [ 25.845242][ C2]