[ 13.379239][ C3] [ 13.379390][ C3] ================================ [ 13.379579][ C3] WARNING: inconsistent lock state [ 13.379767][ C3] 6.15.0-rc5-virtme #1 Not tainted [ 13.379958][ C3] -------------------------------- [ 13.380143][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.380381][ C3] ksoftirqd/3/32 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.380631][ C3] ffffffff881bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.380971][ C3] {SOFTIRQ-ON-W} state was registered at: [ 13.381160][ C3] __lock_acquire+0x3eb/0x9d0 [ 13.381357][ C3] lock_acquire.part.0+0xb6/0x240 [ 13.381542][ C3] _raw_spin_lock+0x33/0x40 [ 13.381734][ C3] simple_pin_fs+0x24/0x150 [ 13.381919][ C3] start_creating.part.0+0x3f/0x2f0 [ 13.382112][ C3] debugfs_create_dir+0x6a/0x540 [ 13.382304][ C3] component_debug_init+0x17/0x30 [ 13.382505][ C3] do_one_initcall+0x8c/0x1e0 [ 13.382709][ C3] do_initcalls+0x176/0x280 [ 13.382895][ C3] kernel_init_freeable+0x22d/0x300 [ 13.383084][ C3] kernel_init+0x20/0x200 [ 13.383282][ C3] ret_from_fork+0x31/0x70 [ 13.383466][ C3] ret_from_fork_asm+0x1a/0x30 [ 13.383656][ C3] irq event stamp: 177128 [ 13.383814][ C3] hardirqs last enabled at (177128): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.384195][ C3] hardirqs last disabled at (177127): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.384571][ C3] softirqs last enabled at (176358): [] handle_softirqs+0x358/0x620 [ 13.384924][ C3] softirqs last disabled at (176363): [] run_ksoftirqd+0x3f/0x70 [ 13.385259][ C3] [ 13.385259][ C3] other info that might help us debug this: [ 13.385551][ C3] Possible unsafe locking scenario: [ 13.385551][ C3] [ 13.385836][ C3] CPU0 [ 13.385987][ C3] ---- [ 13.386138][ C3] lock(pin_fs_lock); [ 13.386288][ C3] [ 13.386440][ C3] lock(pin_fs_lock); [ 13.386589][ C3] [ 13.386589][ C3] *** DEADLOCK *** [ 13.386589][ C3] [ 13.386878][ C3] 1 lock held by ksoftirqd/3/32: [ 13.387077][ C3] #0: ffffffff87f74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.387417][ C3] [ 13.387417][ C3] stack backtrace: [ 13.387654][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.387660][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.387663][ C3] Call Trace: [ 13.387665][ C3] [ 13.387668][ C3] dump_stack_lvl+0x82/0xd0 [ 13.387675][ C3] print_usage_bug.part.0+0x25f/0x360 [ 13.387680][ C3] mark_lock_irq+0x343/0x400 [ 13.387684][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.387689][ C3] ? save_trace+0x52/0x170 [ 13.387695][ C3] mark_lock+0x174/0x2f0 [ 13.387699][ C3] mark_usage+0x46/0x150 [ 13.387702][ C3] __lock_acquire+0x3eb/0x9d0 [ 13.387706][ C3] lock_acquire.part.0+0xb6/0x240 [ 13.387709][ C3] ? simple_pin_fs+0x24/0x150 [ 13.387713][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.387716][ C3] ? lock_acquire+0x10c/0x170 [ 13.387719][ C3] ? simple_pin_fs+0x24/0x150 [ 13.387722][ C3] _raw_spin_lock+0x33/0x40 [ 13.387726][ C3] ? simple_pin_fs+0x24/0x150 [ 13.387728][ C3] simple_pin_fs+0x24/0x150 [ 13.387731][ C3] debugfs_remove+0x35/0x70 [ 13.387735][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 13.387742][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.387745][ C3] ? __sk_destruct+0x383/0x780 [ 13.387751][ C3] ? rcu_do_batch+0x34c/0xf20 [ 13.387755][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.387758][ C3] ? smpboot_thread_fn+0x307/0x960 [ 13.387764][ C3] ? kthread+0x37b/0x600 [ 13.387769][ C3] ? ret_from_fork+0x31/0x70 [ 13.387772][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 13.387775][ C3] ? migrate_enable+0x1f2/0x270 [ 13.387779][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 13.387783][ C3] __put_net+0x19/0x60 [ 13.387788][ C3] __sk_destruct+0x58a/0x780 [ 13.387792][ C3] ? rcu_do_batch+0x34a/0xf20 [ 13.387795][ C3] rcu_do_batch+0x34c/0xf20 [ 13.387800][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.387804][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.387807][ C3] ? note_gp_changes+0x182/0x1e0 [ 13.387810][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.387817][ C3] rcu_core+0x2bb/0x500 [ 13.387821][ C3] handle_softirqs+0x218/0x620 [ 13.387825][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.387828][ C3] run_ksoftirqd+0x3f/0x70 [ 13.387831][ C3] smpboot_thread_fn+0x307/0x960 [ 13.387835][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.387839][ C3] kthread+0x37b/0x600 [ 13.387842][ C3] ? __pfx_kthread+0x10/0x10 [ 13.387845][ C3] ? ret_from_fork+0x1b/0x70 [ 13.387848][ C3] ? __lock_release+0x5d/0x170 [ 13.387851][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.387853][ C3] ? __pfx_kthread+0x10/0x10 [ 13.387857][ C3] ret_from_fork+0x31/0x70 [ 13.387859][ C3] ? __pfx_kthread+0x10/0x10 [ 13.387863][ C3] ret_from_fork_asm+0x1a/0x30 [ 13.387869][ C3] [ 13.398596][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.399011][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 13.399320][ C3] preempt_count: 100, expected: 0 [ 13.399498][ C3] RCU nest depth: 0, expected: 0 [ 13.399698][ C3] INFO: lockdep is turned off. [ 13.399884][ C3] Preemption disabled at: [ 13.399886][ C3] [] handle_softirqs+0xe5/0x620 [ 13.400250][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.400254][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.400257][ C3] Call Trace: [ 13.400259][ C3] [ 13.400261][ C3] dump_stack_lvl+0xb0/0xd0 [ 13.400268][ C3] __might_resched+0x360/0x5a0 [ 13.400276][ C3] down_write+0x72/0x210 [ 13.400279][ C3] ? __pfx_down_write+0x10/0x10 [ 13.400282][ C3] ? simple_recursive_removal+0x3a/0x860 [ 13.400286][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.400291][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 13.400296][ C3] simple_recursive_removal+0x166/0x860 [ 13.400299][ C3] ? __pfx_remove_one+0x10/0x10 [ 13.400305][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 13.400309][ C3] debugfs_remove+0x44/0x70 [ 13.400313][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 13.400318][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.400322][ C3] ? __sk_destruct+0x383/0x780 [ 13.400327][ C3] ? rcu_do_batch+0x34c/0xf20 [ 13.400331][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.400334][ C3] ? smpboot_thread_fn+0x307/0x960 [ 13.400338][ C3] ? kthread+0x37b/0x600 [ 13.400342][ C3] ? ret_from_fork+0x31/0x70 [ 13.400346][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 13.400351][ C3] ? migrate_enable+0x1f2/0x270 [ 13.400354][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 13.400359][ C3] __put_net+0x19/0x60 [ 13.400363][ C3] __sk_destruct+0x58a/0x780 [ 13.400367][ C3] ? rcu_do_batch+0x34a/0xf20 [ 13.400370][ C3] rcu_do_batch+0x34c/0xf20 [ 13.400376][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.400380][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.400382][ C3] ? note_gp_changes+0x182/0x1e0 [ 13.400386][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.400392][ C3] rcu_core+0x2bb/0x500 [ 13.400395][ C3] handle_softirqs+0x218/0x620 [ 13.400399][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.400402][ C3] run_ksoftirqd+0x3f/0x70 [ 13.400411][ C3] smpboot_thread_fn+0x307/0x960 [ 13.400415][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.400419][ C3] kthread+0x37b/0x600 [ 13.400422][ C3] ? __pfx_kthread+0x10/0x10 [ 13.400426][ C3] ? ret_from_fork+0x1b/0x70 [ 13.400428][ C3] ? __lock_release+0x5d/0x170 [ 13.400431][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.400434][ C3] ? __pfx_kthread+0x10/0x10 [ 13.400438][ C3] ret_from_fork+0x31/0x70 [ 13.400441][ C3] ? __pfx_kthread+0x10/0x10 [ 13.400444][ C3] ret_from_fork_asm+0x1a/0x30 [ 13.400451][ C3]