[ 14.268595][ C3] [ 14.268714][ C3] ================================ [ 14.268880][ C3] WARNING: inconsistent lock state [ 14.269047][ C3] 6.15.0-rc5-virtme #1 Not tainted [ 14.269212][ C3] -------------------------------- [ 14.269374][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.269576][ C3] ksoftirqd/3/32 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.269780][ C3] ffffffff9d7bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.270073][ C3] {SOFTIRQ-ON-W} state was registered at: [ 14.270235][ C3] __lock_acquire+0x3eb/0x9d0 [ 14.270404][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.270568][ C3] _raw_spin_lock+0x33/0x40 [ 14.270735][ C3] simple_pin_fs+0x24/0x150 [ 14.270897][ C3] start_creating.part.0+0x3f/0x2f0 [ 14.271064][ C3] debugfs_create_dir+0x6a/0x540 [ 14.271229][ C3] component_debug_init+0x17/0x30 [ 14.271395][ C3] do_one_initcall+0x8c/0x1e0 [ 14.271559][ C3] do_initcalls+0x176/0x280 [ 14.271721][ C3] kernel_init_freeable+0x22d/0x300 [ 14.271889][ C3] kernel_init+0x20/0x200 [ 14.272053][ C3] ret_from_fork+0x31/0x70 [ 14.272218][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.272380][ C3] irq event stamp: 194310 [ 14.272505][ C3] hardirqs last enabled at (194310): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.272830][ C3] hardirqs last disabled at (194309): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.273152][ C3] softirqs last enabled at (193092): [] handle_softirqs+0x358/0x620 [ 14.273434][ C3] softirqs last disabled at (193095): [] run_ksoftirqd+0x3f/0x70 [ 14.273716][ C3] [ 14.273716][ C3] other info that might help us debug this: [ 14.273956][ C3] Possible unsafe locking scenario: [ 14.273956][ C3] [ 14.274192][ C3] CPU0 [ 14.274313][ C3] ---- [ 14.274437][ C3] lock(pin_fs_lock); [ 14.274562][ C3] [ 14.274683][ C3] lock(pin_fs_lock); [ 14.274809][ C3] [ 14.274809][ C3] *** DEADLOCK *** [ 14.274809][ C3] [ 14.275048][ C3] 1 lock held by ksoftirqd/3/32: [ 14.275209][ C3] #0: ffffffff9d574480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.275497][ C3] [ 14.275497][ C3] stack backtrace: [ 14.275698][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.275702][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.275704][ C3] Call Trace: [ 14.275706][ C3] [ 14.275708][ C3] dump_stack_lvl+0x82/0xd0 [ 14.275714][ C3] print_usage_bug.part.0+0x25f/0x360 [ 14.275719][ C3] mark_lock_irq+0x343/0x400 [ 14.275724][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.275729][ C3] ? save_trace+0x52/0x170 [ 14.275733][ C3] mark_lock+0x174/0x2f0 [ 14.275737][ C3] mark_usage+0x46/0x150 [ 14.275741][ C3] __lock_acquire+0x3eb/0x9d0 [ 14.275746][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.275749][ C3] ? simple_pin_fs+0x24/0x150 [ 14.275753][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.275759][ C3] ? lock_acquire+0x10c/0x170 [ 14.275762][ C3] ? simple_pin_fs+0x24/0x150 [ 14.275767][ C3] _raw_spin_lock+0x33/0x40 [ 14.275769][ C3] ? simple_pin_fs+0x24/0x150 [ 14.275773][ C3] simple_pin_fs+0x24/0x150 [ 14.275776][ C3] debugfs_remove+0x35/0x70 [ 14.275779][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.275784][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.275787][ C3] ? __sk_destruct+0x383/0x780 [ 14.275792][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.275795][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.275798][ C3] ? smpboot_thread_fn+0x307/0x960 [ 14.275802][ C3] ? kthread+0x37b/0x600 [ 14.275806][ C3] ? ret_from_fork+0x31/0x70 [ 14.275809][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 14.275812][ C3] ? migrate_enable+0x1f2/0x270 [ 14.275816][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 14.275822][ C3] __put_net+0x19/0x60 [ 14.275825][ C3] __sk_destruct+0x58a/0x780 [ 14.275829][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.275832][ C3] rcu_do_batch+0x34c/0xf20 [ 14.275837][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.275841][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.275844][ C3] ? note_gp_changes+0x182/0x1e0 [ 14.275847][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.275852][ C3] rcu_core+0x2bb/0x500 [ 14.275855][ C3] handle_softirqs+0x218/0x620 [ 14.275859][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.275862][ C3] run_ksoftirqd+0x3f/0x70 [ 14.275864][ C3] smpboot_thread_fn+0x307/0x960 [ 14.275867][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.275870][ C3] kthread+0x37b/0x600 [ 14.275873][ C3] ? __pfx_kthread+0x10/0x10 [ 14.275876][ C3] ? ret_from_fork+0x1b/0x70 [ 14.275879][ C3] ? __lock_release+0x5d/0x170 [ 14.275883][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.275886][ C3] ? __pfx_kthread+0x10/0x10 [ 14.275890][ C3] ret_from_fork+0x31/0x70 [ 14.275893][ C3] ? __pfx_kthread+0x10/0x10 [ 14.275896][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.275902][ C3] [ 14.285005][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.285271][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 14.285529][ C3] preempt_count: 100, expected: 0 [ 14.285679][ C3] RCU nest depth: 0, expected: 0 [ 14.285834][ C3] INFO: lockdep is turned off. [ 14.285994][ C3] Preemption disabled at: [ 14.285996][ C3] [] handle_softirqs+0xe5/0x620 [ 14.286300][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.286304][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.286305][ C3] Call Trace: [ 14.286307][ C3] [ 14.286309][ C3] dump_stack_lvl+0xb0/0xd0 [ 14.286313][ C3] __might_resched+0x360/0x5a0 [ 14.286319][ C3] down_write+0x72/0x210 [ 14.286322][ C3] ? __pfx_down_write+0x10/0x10 [ 14.286324][ C3] ? simple_recursive_removal+0x3a/0x860 [ 14.286328][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.286334][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.286338][ C3] simple_recursive_removal+0x166/0x860 [ 14.286340][ C3] ? __pfx_remove_one+0x10/0x10 [ 14.286344][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.286348][ C3] debugfs_remove+0x44/0x70 [ 14.286351][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.286355][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.286357][ C3] ? __sk_destruct+0x383/0x780 [ 14.286362][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.286365][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.286368][ C3] ? smpboot_thread_fn+0x307/0x960 [ 14.286371][ C3] ? kthread+0x37b/0x600 [ 14.286374][ C3] ? ret_from_fork+0x31/0x70 [ 14.286378][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 14.286381][ C3] ? migrate_enable+0x1f2/0x270 [ 14.286385][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 14.286390][ C3] __put_net+0x19/0x60 [ 14.286393][ C3] __sk_destruct+0x58a/0x780 [ 14.286397][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.286400][ C3] rcu_do_batch+0x34c/0xf20 [ 14.286405][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.286408][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.286412][ C3] ? note_gp_changes+0x182/0x1e0 [ 14.286415][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.286420][ C3] rcu_core+0x2bb/0x500 [ 14.286423][ C3] handle_softirqs+0x218/0x620 [ 14.286427][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.286430][ C3] run_ksoftirqd+0x3f/0x70 [ 14.286432][ C3] smpboot_thread_fn+0x307/0x960 [ 14.286435][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.286439][ C3] kthread+0x37b/0x600 [ 14.286442][ C3] ? __pfx_kthread+0x10/0x10 [ 14.286445][ C3] ? ret_from_fork+0x1b/0x70 [ 14.286448][ C3] ? __lock_release+0x5d/0x170 [ 14.286452][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.286455][ C3] ? __pfx_kthread+0x10/0x10 [ 14.286459][ C3] ret_from_fork+0x31/0x70 [ 14.286462][ C3] ? __pfx_kthread+0x10/0x10 [ 14.286465][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.286471][ C3] [ 15.849150][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.849576][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 15.849881][ C2] preempt_count: 101, expected: 0 [ 15.850072][ C2] RCU nest depth: 0, expected: 0 [ 15.850246][ C2] INFO: lockdep is turned off. [ 15.850431][ C2] Preemption disabled at: [ 15.850432][ C2] [<0000000000000000>] 0x0 [ 15.850750][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 15.850756][ C2] Tainted: [W]=WARN [ 15.850757][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.850760][ C2] Call Trace: [ 15.850762][ C2] [ 15.850764][ C2] dump_stack_lvl+0xb0/0xd0 [ 15.850772][ C2] __might_resched+0x360/0x5a0 [ 15.850778][ C2] down_write+0x72/0x210 [ 15.850781][ C2] ? __pfx_down_write+0x10/0x10 [ 15.850784][ C2] ? simple_recursive_removal+0x3a/0x860 [ 15.850788][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.850795][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.850799][ C2] simple_recursive_removal+0x166/0x860 [ 15.850802][ C2] ? __pfx_remove_one+0x10/0x10 [ 15.850806][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.850810][ C2] debugfs_remove+0x44/0x70 [ 15.850813][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.850818][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.850821][ C2] ? __sk_destruct+0x383/0x780 [ 15.850827][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.850831][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.850833][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.850837][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.850842][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.850845][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.850849][ C2] ? default_idle+0x9/0x10 [ 15.850851][ C2] ? default_idle_call+0x6d/0xb0 [ 15.850853][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.850858][ C2] ? do_idle+0xf6/0x160 [ 15.850860][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.850864][ C2] ? start_secondary+0x213/0x2a0 [ 15.850868][ C2] ? common_startup_64+0x13e/0x148 [ 15.850873][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 15.850877][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.850881][ C2] __put_net+0x19/0x60 [ 15.850884][ C2] __sk_destruct+0x58a/0x780 [ 15.850888][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.850891][ C2] rcu_do_batch+0x34c/0xf20 [ 15.850896][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.850900][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 15.850908][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.850913][ C2] rcu_core+0x2bb/0x500 [ 15.850917][ C2] handle_softirqs+0x218/0x620 [ 15.850922][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.850924][ C2] irq_exit_rcu+0xe/0x30 [ 15.850926][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.850929][ C2] [ 15.850930][ C2] [ 15.850932][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.850935][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.850939][ 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 [ 15.850941][ C2] RSP: 0000:ffffc90000147de8 EFLAGS: 00000246 [ 15.850945][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff9c555a19 [ 15.850947][ C2] RDX: ffffed1006c2667b RSI: ffffffff9c850c60 RDI: ffffffff99d84d8f [ 15.850949][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c2667a [ 15.850950][ C2] R10: ffff8880361333d3 R11: ffff888001d5a858 R12: 0000000000000000 [ 15.850952][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 15.850956][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.850960][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.850964][ C2] default_idle+0x9/0x10 [ 15.850966][ C2] default_idle_call+0x6d/0xb0 [ 15.850969][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.850972][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.850977][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.850982][ C2] do_idle+0xf6/0x160 [ 15.850986][ C2] cpu_startup_entry+0x54/0x60 [ 15.850989][ C2] start_secondary+0x213/0x2a0 [ 15.850993][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.850997][ C2] common_startup_64+0x13e/0x148 [ 15.851004][ C2]