[ 20.205615][ C2] [ 20.205754][ C2] ================================ [ 20.205936][ C2] WARNING: inconsistent lock state [ 20.206116][ C2] 6.15.0-virtme #1 Not tainted [ 20.206294][ C2] -------------------------------- [ 20.206467][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 20.206688][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 20.206915][ C2] ffffffff913c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 20.207243][ C2] {SOFTIRQ-ON-W} state was registered at: [ 20.207422][ C2] __lock_acquire+0x20b/0x7e0 [ 20.207608][ C2] lock_acquire.part.0+0xb6/0x240 [ 20.207781][ C2] _raw_spin_lock+0x33/0x40 [ 20.207962][ C2] simple_pin_fs+0x24/0x150 [ 20.208138][ C2] start_creating.part.0+0x52/0x310 [ 20.208318][ C2] debugfs_create_dir+0x6a/0x540 [ 20.208491][ C2] component_debug_init+0x17/0x30 [ 20.208700][ C2] do_one_initcall+0x8f/0x1e0 [ 20.208880][ C2] do_initcalls+0x176/0x280 [ 20.209059][ C2] kernel_init_freeable+0x22d/0x300 [ 20.209230][ C2] kernel_init+0x20/0x200 [ 20.209418][ C2] ret_from_fork+0x240/0x320 [ 20.209591][ C2] ret_from_fork_asm+0x1a/0x30 [ 20.209769][ C2] irq event stamp: 223676 [ 20.209902][ C2] hardirqs last enabled at (223676): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.210263][ C2] hardirqs last disabled at (223675): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 20.210611][ C2] softirqs last enabled at (222494): [] handle_softirqs+0x358/0x620 [ 20.210918][ C2] softirqs last disabled at (222497): [] run_ksoftirqd+0x3f/0x70 [ 20.211243][ C2] [ 20.211243][ C2] other info that might help us debug this: [ 20.211505][ C2] Possible unsafe locking scenario: [ 20.211505][ C2] [ 20.211759][ C2] CPU0 [ 20.211886][ C2] ---- [ 20.212017][ C2] lock(pin_fs_lock); [ 20.212149][ C2] [ 20.212278][ C2] lock(pin_fs_lock); [ 20.212412][ C2] [ 20.212412][ C2] *** DEADLOCK *** [ 20.212412][ C2] [ 20.212666][ C2] 1 lock held by ksoftirqd/2/27: [ 20.212857][ C2] #0: ffffffff911774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 20.213176][ C2] [ 20.213176][ C2] stack backtrace: [ 20.213406][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 20.213411][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.213414][ C2] Call Trace: [ 20.213416][ C2] [ 20.213420][ C2] dump_stack_lvl+0x82/0xd0 [ 20.213428][ C2] print_usage_bug.part.0+0x25f/0x360 [ 20.213433][ C2] mark_lock_irq+0x343/0x400 [ 20.213438][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 20.213443][ C2] ? save_trace+0x52/0x170 [ 20.213450][ C2] mark_lock+0x174/0x2f0 [ 20.213453][ C2] mark_usage+0x46/0x150 [ 20.213456][ C2] __lock_acquire+0x20b/0x7e0 [ 20.213460][ C2] ? __lock_acquire+0x44d/0x7e0 [ 20.213464][ C2] lock_acquire.part.0+0xb6/0x240 [ 20.213467][ C2] ? simple_pin_fs+0x24/0x150 [ 20.213472][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.213477][ C2] ? lock_acquire+0x10c/0x170 [ 20.213480][ C2] ? simple_pin_fs+0x24/0x150 [ 20.213484][ C2] _raw_spin_lock+0x33/0x40 [ 20.213488][ C2] ? simple_pin_fs+0x24/0x150 [ 20.213491][ C2] simple_pin_fs+0x24/0x150 [ 20.213495][ C2] debugfs_remove+0x35/0x70 [ 20.213498][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 20.213506][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.213509][ C2] ? __sk_destruct+0x383/0x780 [ 20.213517][ C2] ? rcu_do_batch+0x34c/0xf20 [ 20.213520][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.213523][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 20.213529][ C2] ? kthread+0x37e/0x600 [ 20.213533][ C2] ? ret_from_fork+0x240/0x320 [ 20.213537][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 20.213540][ C2] ? migrate_enable+0x1f2/0x270 [ 20.213545][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 20.213550][ C2] __put_net+0x19/0x60 [ 20.213555][ C2] __sk_destruct+0x58a/0x780 [ 20.213559][ C2] ? rcu_do_batch+0x34a/0xf20 [ 20.213562][ C2] rcu_do_batch+0x34c/0xf20 [ 20.213566][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.213570][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.213573][ C2] ? note_gp_changes+0x182/0x1e0 [ 20.213576][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.213581][ C2] rcu_core+0x2bb/0x500 [ 20.213585][ C2] handle_softirqs+0x218/0x620 [ 20.213589][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 20.213593][ C2] run_ksoftirqd+0x3f/0x70 [ 20.213596][ C2] smpboot_thread_fn+0x30a/0x960 [ 20.213600][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 20.213604][ C2] kthread+0x37e/0x600 [ 20.213606][ C2] ? __pfx_kthread+0x10/0x10 [ 20.213608][ C2] ? ret_from_fork+0x1b/0x320 [ 20.213611][ C2] ? __lock_release+0x5d/0x170 [ 20.213615][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.213618][ C2] ? __pfx_kthread+0x10/0x10 [ 20.213621][ C2] ret_from_fork+0x240/0x320 [ 20.213624][ C2] ? __pfx_kthread+0x10/0x10 [ 20.213626][ C2] ret_from_fork_asm+0x1a/0x30 [ 20.213634][ C2] [ 20.223679][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 20.224022][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 20.224317][ C2] preempt_count: 100, expected: 0 [ 20.224493][ C2] RCU nest depth: 0, expected: 0 [ 20.224664][ C2] INFO: lockdep is turned off. [ 20.224844][ C2] Preemption disabled at: [ 20.224846][ C2] [] handle_softirqs+0xe5/0x620 [ 20.225241][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 20.225246][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.225248][ C2] Call Trace: [ 20.225251][ C2] [ 20.225253][ C2] dump_stack_lvl+0xb0/0xd0 [ 20.225262][ C2] __might_resched+0x360/0x5a0 [ 20.225269][ C2] down_write+0x72/0x210 [ 20.225274][ C2] ? __pfx_down_write+0x10/0x10 [ 20.225277][ C2] ? simple_recursive_removal+0x33/0x610 [ 20.225282][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.225288][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 20.225295][ C2] simple_recursive_removal+0x6a/0x610 [ 20.225298][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 20.225301][ C2] ? __pfx_remove_one+0x10/0x10 [ 20.225307][ C2] debugfs_remove+0x44/0x70 [ 20.225310][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 20.225317][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.225321][ C2] ? __sk_destruct+0x383/0x780 [ 20.225327][ C2] ? rcu_do_batch+0x34c/0xf20 [ 20.225331][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.225334][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 20.225339][ C2] ? kthread+0x37e/0x600 [ 20.225342][ C2] ? ret_from_fork+0x240/0x320 [ 20.225347][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 20.225353][ C2] ? migrate_enable+0x1f2/0x270 [ 20.225358][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 20.225363][ C2] __put_net+0x19/0x60 [ 20.225368][ C2] __sk_destruct+0x58a/0x780 [ 20.225372][ C2] ? rcu_do_batch+0x34a/0xf20 [ 20.225375][ C2] rcu_do_batch+0x34c/0xf20 [ 20.225380][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.225383][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.225386][ C2] ? note_gp_changes+0x182/0x1e0 [ 20.225390][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.225395][ C2] rcu_core+0x2bb/0x500 [ 20.225399][ C2] handle_softirqs+0x218/0x620 [ 20.225403][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 20.225407][ C2] run_ksoftirqd+0x3f/0x70 [ 20.225410][ C2] smpboot_thread_fn+0x30a/0x960 [ 20.225413][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 20.225417][ C2] kthread+0x37e/0x600 [ 20.225420][ C2] ? __pfx_kthread+0x10/0x10 [ 20.225422][ C2] ? ret_from_fork+0x1b/0x320 [ 20.225425][ C2] ? __lock_release+0x5d/0x170 [ 20.225428][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.225431][ C2] ? __pfx_kthread+0x10/0x10 [ 20.225434][ C2] ret_from_fork+0x240/0x320 [ 20.225437][ C2] ? __pfx_kthread+0x10/0x10 [ 20.225440][ C2] ret_from_fork_asm+0x1a/0x30 [ 20.225447][ C2] [ 25.522274][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 25.522636][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 25.523031][ C3] preempt_count: 101, expected: 0 [ 25.523231][ C3] RCU nest depth: 0, expected: 0 [ 25.523437][ C3] INFO: lockdep is turned off. [ 25.523631][ C3] Preemption disabled at: [ 25.523633][ C3] [<0000000000000000>] 0x0 [ 25.524000][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 25.524007][ C3] Tainted: [W]=WARN [ 25.524009][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 25.524011][ C3] Call Trace: [ 25.524013][ C3] [ 25.524016][ C3] dump_stack_lvl+0xb0/0xd0 [ 25.524027][ C3] __might_resched+0x360/0x5a0 [ 25.524036][ C3] down_write+0x72/0x210 [ 25.524042][ C3] ? __pfx_down_write+0x10/0x10 [ 25.524045][ C3] ? simple_recursive_removal+0x33/0x610 [ 25.524051][ C3] ? rcu_is_watching+0x12/0xc0 [ 25.524058][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 25.524065][ C3] simple_recursive_removal+0x6a/0x610 [ 25.524068][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 25.524072][ C3] ? __pfx_remove_one+0x10/0x10 [ 25.524078][ C3] debugfs_remove+0x44/0x70 [ 25.524082][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 25.524090][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 25.524093][ C3] ? __sk_destruct+0x383/0x780 [ 25.524101][ C3] ? rcu_do_batch+0x34c/0xf20 [ 25.524105][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 25.524108][ C3] ? irq_exit_rcu+0xe/0x30 [ 25.524115][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 25.524121][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.524126][ C3] ? pv_native_safe_halt+0xf/0x20 [ 25.524129][ C3] ? default_idle+0x9/0x10 [ 25.524132][ C3] ? default_idle_call+0x6d/0xb0 [ 25.524135][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 25.524139][ C3] ? do_idle+0xf6/0x160 [ 25.524142][ C3] ? cpu_startup_entry+0x54/0x60 [ 25.524144][ C3] ? start_secondary+0x213/0x2a0 [ 25.524149][ C3] ? common_startup_64+0x13e/0x148 [ 25.524156][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 25.524162][ C3] ? rcu_is_watching+0x12/0xc0 [ 25.524167][ C3] __put_net+0x19/0x60 [ 25.524171][ C3] __sk_destruct+0x58a/0x780 [ 25.524175][ C3] ? rcu_do_batch+0x34a/0xf20 [ 25.524178][ C3] rcu_do_batch+0x34c/0xf20 [ 25.524182][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 25.524186][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 25.524193][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 25.524200][ C3] rcu_core+0x2bb/0x500 [ 25.524206][ C3] handle_softirqs+0x218/0x620 [ 25.524211][ C3] __irq_exit_rcu+0xfa/0x160 [ 25.524214][ C3] irq_exit_rcu+0xe/0x30 [ 25.524218][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 25.524222][ C3] [ 25.524223][ C3] [ 25.524225][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.524227][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 25.524234][ C3] Code: a2 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 47 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 [ 25.524238][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 25.524244][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffff9018f5d9 [ 25.524248][ C3] RDX: ffffed1006c366fb RSI: ffffffff90453b60 RDI: ffffffff8d98d18f [ 25.524251][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c366fa [ 25.524254][ C3] R10: ffff8880361b37d3 R11: ffff888005ff2818 R12: 0000000000000000 [ 25.524257][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 25.524261][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 25.524264][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 25.524269][ C3] default_idle+0x9/0x10 [ 25.524271][ C3] default_idle_call+0x6d/0xb0 [ 25.524274][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 25.524277][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 25.524281][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 25.524286][ C3] do_idle+0xf6/0x160 [ 25.524289][ C3] cpu_startup_entry+0x54/0x60 [ 25.524292][ C3] start_secondary+0x213/0x2a0 [ 25.524295][ C3] ? __pfx_start_secondary+0x10/0x10 [ 25.524299][ C3] common_startup_64+0x13e/0x148 [ 25.524307][ C3]