[ 14.201540][ C1] [ 14.201675][ C1] ================================ [ 14.201852][ C1] WARNING: inconsistent lock state [ 14.202029][ C1] 6.15.0-rc5-virtme #1 Not tainted [ 14.202208][ C1] -------------------------------- [ 14.202379][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.202594][ C1] ksoftirqd/1/22 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.202817][ C1] ffffffff873bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.203130][ C1] {SOFTIRQ-ON-W} state was registered at: [ 14.203300][ C1] __lock_acquire+0x3eb/0x9d0 [ 14.203476][ C1] lock_acquire.part.0+0xb6/0x240 [ 14.203652][ C1] _raw_spin_lock+0x33/0x40 [ 14.203831][ C1] simple_pin_fs+0x24/0x150 [ 14.204006][ C1] start_creating.part.0+0x3f/0x2f0 [ 14.204182][ C1] debugfs_create_dir+0x6a/0x540 [ 14.204360][ C1] component_debug_init+0x17/0x30 [ 14.204536][ C1] do_one_initcall+0x8c/0x1e0 [ 14.204717][ C1] do_initcalls+0x176/0x280 [ 14.204891][ C1] kernel_init_freeable+0x22d/0x300 [ 14.205067][ C1] kernel_init+0x20/0x200 [ 14.205247][ C1] ret_from_fork+0x31/0x70 [ 14.205426][ C1] ret_from_fork_asm+0x1a/0x30 [ 14.205622][ C1] irq event stamp: 230726 [ 14.205758][ C1] hardirqs last enabled at (230726): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.206104][ C1] hardirqs last disabled at (230725): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.206460][ C1] softirqs last enabled at (230012): [] handle_softirqs+0x358/0x620 [ 14.206773][ C1] softirqs last disabled at (230017): [] run_ksoftirqd+0x3f/0x70 [ 14.207081][ C1] [ 14.207081][ C1] other info that might help us debug this: [ 14.207342][ C1] Possible unsafe locking scenario: [ 14.207342][ C1] [ 14.207606][ C1] CPU0 [ 14.207737][ C1] ---- [ 14.207871][ C1] lock(pin_fs_lock); [ 14.208008][ C1] [ 14.208141][ C1] lock(pin_fs_lock); [ 14.208279][ C1] [ 14.208279][ C1] *** DEADLOCK *** [ 14.208279][ C1] [ 14.208538][ C1] 1 lock held by ksoftirqd/1/22: [ 14.208716][ C1] #0: ffffffff87174480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.209034][ C1] [ 14.209034][ C1] stack backtrace: [ 14.209257][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.209262][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.209264][ C1] Call Trace: [ 14.209266][ C1] [ 14.209270][ C1] dump_stack_lvl+0x82/0xd0 [ 14.209277][ C1] print_usage_bug.part.0+0x25f/0x360 [ 14.209281][ C1] mark_lock_irq+0x343/0x400 [ 14.209285][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.209289][ C1] ? save_trace+0x52/0x170 [ 14.209295][ C1] mark_lock+0x174/0x2f0 [ 14.209298][ C1] mark_usage+0x46/0x150 [ 14.209301][ C1] __lock_acquire+0x3eb/0x9d0 [ 14.209305][ C1] lock_acquire.part.0+0xb6/0x240 [ 14.209308][ C1] ? simple_pin_fs+0x24/0x150 [ 14.209311][ C1] ? rcu_is_watching+0x12/0xc0 [ 14.209314][ C1] ? lock_acquire+0x10c/0x170 [ 14.209316][ C1] ? simple_pin_fs+0x24/0x150 [ 14.209320][ C1] _raw_spin_lock+0x33/0x40 [ 14.209323][ C1] ? simple_pin_fs+0x24/0x150 [ 14.209325][ C1] simple_pin_fs+0x24/0x150 [ 14.209328][ C1] debugfs_remove+0x35/0x70 [ 14.209332][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 14.209338][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.209341][ C1] ? __sk_destruct+0x383/0x780 [ 14.209346][ C1] ? rcu_do_batch+0x34c/0xf20 [ 14.209349][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.209353][ C1] ? smpboot_thread_fn+0x307/0x960 [ 14.209358][ C1] ? kthread+0x37b/0x600 [ 14.209362][ C1] ? ret_from_fork+0x31/0x70 [ 14.209364][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 14.209368][ C1] ? migrate_enable+0x1f2/0x270 [ 14.209371][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 14.209376][ C1] __put_net+0x19/0x60 [ 14.209380][ C1] __sk_destruct+0x58a/0x780 [ 14.209384][ C1] ? rcu_do_batch+0x34a/0xf20 [ 14.209387][ C1] rcu_do_batch+0x34c/0xf20 [ 14.209392][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.209396][ C1] ? rcu_is_watching+0x12/0xc0 [ 14.209399][ C1] ? note_gp_changes+0x182/0x1e0 [ 14.209402][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.209407][ C1] rcu_core+0x2bb/0x500 [ 14.209411][ C1] handle_softirqs+0x218/0x620 [ 14.209415][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.209418][ C1] run_ksoftirqd+0x3f/0x70 [ 14.209421][ C1] smpboot_thread_fn+0x307/0x960 [ 14.209424][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.209428][ C1] kthread+0x37b/0x600 [ 14.209432][ C1] ? __pfx_kthread+0x10/0x10 [ 14.209435][ C1] ? ret_from_fork+0x1b/0x70 [ 14.209437][ C1] ? __lock_release+0x5d/0x170 [ 14.209440][ C1] ? rcu_is_watching+0x12/0xc0 [ 14.209443][ C1] ? __pfx_kthread+0x10/0x10 [ 14.209447][ C1] ret_from_fork+0x31/0x70 [ 14.209449][ C1] ? __pfx_kthread+0x10/0x10 [ 14.209452][ C1] ret_from_fork_asm+0x1a/0x30 [ 14.209459][ C1] [ 14.219440][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.219732][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 14.220006][ C1] preempt_count: 100, expected: 0 [ 14.220168][ C1] RCU nest depth: 0, expected: 0 [ 14.220326][ C1] INFO: lockdep is turned off. [ 14.220524][ C1] Preemption disabled at: [ 14.220526][ C1] [] handle_softirqs+0xe5/0x620 [ 14.220852][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.220857][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.220859][ C1] Call Trace: [ 14.220860][ C1] [ 14.220863][ C1] dump_stack_lvl+0xb0/0xd0 [ 14.220869][ C1] __might_resched+0x360/0x5a0 [ 14.220875][ C1] down_write+0x72/0x210 [ 14.220879][ C1] ? __pfx_down_write+0x10/0x10 [ 14.220881][ C1] ? simple_recursive_removal+0x3a/0x860 [ 14.220886][ C1] ? rcu_is_watching+0x12/0xc0 [ 14.220890][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 14.220895][ C1] simple_recursive_removal+0x166/0x860 [ 14.220897][ C1] ? __pfx_remove_one+0x10/0x10 [ 14.220902][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 14.220906][ C1] debugfs_remove+0x44/0x70 [ 14.220910][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 14.220915][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.220918][ C1] ? __sk_destruct+0x383/0x780 [ 14.220924][ C1] ? rcu_do_batch+0x34c/0xf20 [ 14.220928][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.220931][ C1] ? smpboot_thread_fn+0x307/0x960 [ 14.220935][ C1] ? kthread+0x37b/0x600 [ 14.220939][ C1] ? ret_from_fork+0x31/0x70 [ 14.220942][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 14.220947][ C1] ? migrate_enable+0x1f2/0x270 [ 14.220950][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 14.220955][ C1] __put_net+0x19/0x60 [ 14.220958][ C1] __sk_destruct+0x58a/0x780 [ 14.220962][ C1] ? rcu_do_batch+0x34a/0xf20 [ 14.220965][ C1] rcu_do_batch+0x34c/0xf20 [ 14.220970][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.220974][ C1] ? rcu_is_watching+0x12/0xc0 [ 14.220977][ C1] ? note_gp_changes+0x182/0x1e0 [ 14.220980][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.220985][ C1] rcu_core+0x2bb/0x500 [ 14.220989][ C1] handle_softirqs+0x218/0x620 [ 14.220993][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.220996][ C1] run_ksoftirqd+0x3f/0x70 [ 14.220999][ C1] smpboot_thread_fn+0x307/0x960 [ 14.221003][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.221007][ C1] kthread+0x37b/0x600 [ 14.221010][ C1] ? __pfx_kthread+0x10/0x10 [ 14.221014][ C1] ? ret_from_fork+0x1b/0x70 [ 14.221016][ C1] ? __lock_release+0x5d/0x170 [ 14.221019][ C1] ? rcu_is_watching+0x12/0xc0 [ 14.221021][ C1] ? __pfx_kthread+0x10/0x10 [ 14.221025][ C1] ret_from_fork+0x31/0x70 [ 14.221027][ C1] ? __pfx_kthread+0x10/0x10 [ 14.221031][ C1] ret_from_fork_asm+0x1a/0x30 [ 14.221037][ C1] [ 15.802387][ T228] restore_ipv4 (228) used greatest stack depth: 24216 bytes left