[ 15.106893][ C3] [ 15.107089][ C3] ================================ [ 15.107268][ C3] WARNING: inconsistent lock state [ 15.107443][ C3] 6.15.0-rc7-virtme #1 Not tainted [ 15.107615][ C3] -------------------------------- [ 15.107790][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.108006][ C3] ksoftirqd/3/32 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.108227][ C3] ffffffff891bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.108543][ C3] {SOFTIRQ-ON-W} state was registered at: [ 15.108716][ C3] __lock_acquire+0x3eb/0x9d0 [ 15.108899][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.109078][ C3] _raw_spin_lock+0x33/0x40 [ 15.109256][ C3] simple_pin_fs+0x24/0x150 [ 15.109430][ C3] start_creating.part.0+0x3f/0x2f0 [ 15.109605][ C3] debugfs_create_dir+0x6a/0x540 [ 15.109779][ C3] component_debug_init+0x17/0x30 [ 15.109956][ C3] do_one_initcall+0x8f/0x1e0 [ 15.110133][ C3] do_initcalls+0x176/0x280 [ 15.110309][ C3] kernel_init_freeable+0x22d/0x300 [ 15.110483][ C3] kernel_init+0x20/0x200 [ 15.110663][ C3] ret_from_fork+0x31/0x70 [ 15.110841][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.111017][ C3] irq event stamp: 199352 [ 15.111149][ C3] hardirqs last enabled at (199352): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.111497][ C3] hardirqs last disabled at (199351): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.111845][ C3] softirqs last enabled at (198048): [] handle_softirqs+0x358/0x620 [ 15.112151][ C3] softirqs last disabled at (198057): [] run_ksoftirqd+0x3f/0x70 [ 15.112456][ C3] [ 15.112456][ C3] other info that might help us debug this: [ 15.112711][ C3] Possible unsafe locking scenario: [ 15.112711][ C3] [ 15.112969][ C3] CPU0 [ 15.113099][ C3] ---- [ 15.113229][ C3] lock(pin_fs_lock); [ 15.113366][ C3] [ 15.113498][ C3] lock(pin_fs_lock); [ 15.113630][ C3] [ 15.113630][ C3] *** DEADLOCK *** [ 15.113630][ C3] [ 15.113885][ C3] 1 lock held by ksoftirqd/3/32: [ 15.114059][ C3] #0: ffffffff88f749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.114371][ C3] [ 15.114371][ C3] stack backtrace: [ 15.114585][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.114590][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.114591][ C3] Call Trace: [ 15.114593][ C3] [ 15.114595][ C3] dump_stack_lvl+0x82/0xd0 [ 15.114601][ C3] print_usage_bug.part.0+0x25f/0x360 [ 15.114606][ C3] mark_lock_irq+0x343/0x400 [ 15.114611][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.114616][ C3] ? save_trace+0x52/0x170 [ 15.114621][ C3] mark_lock+0x174/0x2f0 [ 15.114625][ C3] mark_usage+0x46/0x150 [ 15.114629][ C3] __lock_acquire+0x3eb/0x9d0 [ 15.114634][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.114637][ C3] ? simple_pin_fs+0x24/0x150 [ 15.114640][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.114645][ C3] ? lock_acquire+0x10c/0x170 [ 15.114647][ C3] ? simple_pin_fs+0x24/0x150 [ 15.114650][ C3] _raw_spin_lock+0x33/0x40 [ 15.114653][ C3] ? simple_pin_fs+0x24/0x150 [ 15.114656][ C3] simple_pin_fs+0x24/0x150 [ 15.114659][ C3] debugfs_remove+0x35/0x70 [ 15.114662][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.114667][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.114670][ C3] ? __sk_destruct+0x383/0x780 [ 15.114675][ C3] ? rcu_do_batch+0x34f/0xf20 [ 15.114678][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.114681][ C3] ? smpboot_thread_fn+0x307/0x960 [ 15.114685][ C3] ? kthread+0x37b/0x600 [ 15.114689][ C3] ? ret_from_fork+0x31/0x70 [ 15.114691][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 15.114694][ C3] ? migrate_enable+0x1f2/0x270 [ 15.114698][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 15.114712][ C3] __put_net+0x19/0x60 [ 15.114716][ C3] __sk_destruct+0x58a/0x780 [ 15.114720][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.114723][ C3] rcu_do_batch+0x34f/0xf20 [ 15.114728][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.114732][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.114735][ C3] ? note_gp_changes+0x182/0x1e0 [ 15.114739][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.114745][ C3] rcu_core+0x2bb/0x500 [ 15.114749][ C3] handle_softirqs+0x218/0x620 [ 15.114752][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.114756][ C3] run_ksoftirqd+0x3f/0x70 [ 15.114758][ C3] smpboot_thread_fn+0x307/0x960 [ 15.114762][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.114765][ C3] kthread+0x37b/0x600 [ 15.114769][ C3] ? __pfx_kthread+0x10/0x10 [ 15.114771][ C3] ? ret_from_fork+0x1b/0x70 [ 15.114773][ C3] ? __lock_release+0x5d/0x170 [ 15.114776][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.114780][ C3] ? __pfx_kthread+0x10/0x10 [ 15.114784][ C3] ret_from_fork+0x31/0x70 [ 15.114786][ C3] ? __pfx_kthread+0x10/0x10 [ 15.114789][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.114796][ C3] [ 15.124502][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.124831][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 15.125144][ C3] preempt_count: 100, expected: 0 [ 15.125309][ C3] RCU nest depth: 0, expected: 0 [ 15.125473][ C3] INFO: lockdep is turned off. [ 15.125637][ C3] Preemption disabled at: [ 15.125639][ C3] [] handle_softirqs+0xe5/0x620 [ 15.125978][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.125982][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.125984][ C3] Call Trace: [ 15.125986][ C3] [ 15.125988][ C3] dump_stack_lvl+0xb0/0xd0 [ 15.125995][ C3] __might_resched+0x360/0x5a0 [ 15.126001][ C3] down_write+0x72/0x210 [ 15.126005][ C3] ? __pfx_down_write+0x10/0x10 [ 15.126008][ C3] ? simple_recursive_removal+0x3a/0x860 [ 15.126012][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.126018][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.126022][ C3] simple_recursive_removal+0x166/0x860 [ 15.126025][ C3] ? __pfx_remove_one+0x10/0x10 [ 15.126029][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.126034][ C3] debugfs_remove+0x44/0x70 [ 15.126036][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.126041][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.126044][ C3] ? __sk_destruct+0x383/0x780 [ 15.126049][ C3] ? rcu_do_batch+0x34f/0xf20 [ 15.126053][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.126055][ C3] ? smpboot_thread_fn+0x307/0x960 [ 15.126059][ C3] ? kthread+0x37b/0x600 [ 15.126063][ C3] ? ret_from_fork+0x31/0x70 [ 15.126065][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 15.126070][ C3] ? migrate_enable+0x1f2/0x270 [ 15.126074][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 15.126081][ C3] __put_net+0x19/0x60 [ 15.126084][ C3] __sk_destruct+0x58a/0x780 [ 15.126088][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.126091][ C3] rcu_do_batch+0x34f/0xf20 [ 15.126096][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.126100][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.126104][ C3] ? note_gp_changes+0x182/0x1e0 [ 15.126108][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.126113][ C3] rcu_core+0x2bb/0x500 [ 15.126117][ C3] handle_softirqs+0x218/0x620 [ 15.126121][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.126124][ C3] run_ksoftirqd+0x3f/0x70 [ 15.126126][ C3] smpboot_thread_fn+0x307/0x960 [ 15.126130][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.126134][ C3] kthread+0x37b/0x600 [ 15.126137][ C3] ? __pfx_kthread+0x10/0x10 [ 15.126140][ C3] ? ret_from_fork+0x1b/0x70 [ 15.126142][ C3] ? __lock_release+0x5d/0x170 [ 15.126145][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.126148][ C3] ? __pfx_kthread+0x10/0x10 [ 15.126152][ C3] ret_from_fork+0x31/0x70 [ 15.126154][ C3] ? __pfx_kthread+0x10/0x10 [ 15.126157][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.126164][ C3] [ 16.779212][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.779625][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 16.779976][ C2] preempt_count: 101, expected: 0 [ 16.780179][ C2] RCU nest depth: 0, expected: 0 [ 16.780379][ C2] INFO: lockdep is turned off. [ 16.780589][ C2] Preemption disabled at: [ 16.780591][ C2] [<0000000000000000>] 0x0 [ 16.780969][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 16.780975][ C2] Tainted: [W]=WARN [ 16.780977][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.780979][ C2] Call Trace: [ 16.780981][ C2] [ 16.780984][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.780994][ C2] __might_resched+0x360/0x5a0 [ 16.781003][ C2] down_write+0x72/0x210 [ 16.781008][ C2] ? __pfx_down_write+0x10/0x10 [ 16.781012][ C2] ? simple_recursive_removal+0x3a/0x860 [ 16.781018][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.781025][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.781031][ C2] simple_recursive_removal+0x166/0x860 [ 16.781034][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.781040][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.781044][ C2] debugfs_remove+0x44/0x70 [ 16.781047][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.781053][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.781056][ C2] ? __sk_destruct+0x383/0x780 [ 16.781063][ C2] ? rcu_do_batch+0x34f/0xf20 [ 16.781068][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.781071][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.781077][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.781083][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.781087][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.781091][ C2] ? default_idle+0x9/0x10 [ 16.781093][ C2] ? default_idle_call+0x6d/0xb0 [ 16.781096][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.781102][ C2] ? do_idle+0xf6/0x160 [ 16.781105][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.781108][ C2] ? start_secondary+0x213/0x2a0 [ 16.781114][ C2] ? common_startup_64+0x13e/0x148 [ 16.781119][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.781124][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.781129][ C2] __put_net+0x19/0x60 [ 16.781133][ C2] __sk_destruct+0x58a/0x780 [ 16.781137][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.781140][ C2] rcu_do_batch+0x34f/0xf20 [ 16.781146][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.781150][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.781156][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.781163][ C2] rcu_core+0x2bb/0x500 [ 16.781167][ C2] handle_softirqs+0x218/0x620 [ 16.781172][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.781175][ C2] irq_exit_rcu+0xe/0x30 [ 16.781177][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.781181][ C2] [ 16.781182][ C2] [ 16.781183][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.781186][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.781190][ C2] 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 [ 16.781193][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 16.781198][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff87f5ba19 [ 16.781200][ C2] RDX: ffffed1006c2667b RSI: ffffffff882511e0 RDI: ffffffff8578633f [ 16.781202][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c2667a [ 16.781204][ C2] R10: ffff8880361333d3 R11: ffff888001edcb58 R12: 0000000000000000 [ 16.781206][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 16.781210][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.781214][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.781218][ C2] default_idle+0x9/0x10 [ 16.781221][ C2] default_idle_call+0x6d/0xb0 [ 16.781223][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.781227][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.781232][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.781237][ C2] do_idle+0xf6/0x160 [ 16.781241][ C2] cpu_startup_entry+0x54/0x60 [ 16.781245][ C2] start_secondary+0x213/0x2a0 [ 16.781248][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.781254][ C2] common_startup_64+0x13e/0x148 [ 16.781260][ C2]