[ 13.217353][ C1] [ 13.217493][ C1] ================================ [ 13.217677][ C1] WARNING: inconsistent lock state [ 13.217867][ C1] 6.15.0-rc5-virtme #1 Not tainted [ 13.218048][ C1] -------------------------------- [ 13.218229][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.218450][ C1] ksoftirqd/1/22 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.218671][ C1] ffffffffbadbf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.219002][ C1] {SOFTIRQ-ON-W} state was registered at: [ 13.219170][ C1] __lock_acquire+0x3eb/0x9d0 [ 13.219355][ C1] lock_acquire.part.0+0xb6/0x240 [ 13.219527][ C1] _raw_spin_lock+0x33/0x40 [ 13.219704][ C1] simple_pin_fs+0x24/0x150 [ 13.219871][ C1] start_creating.part.0+0x3f/0x2f0 [ 13.220042][ C1] debugfs_create_dir+0x6a/0x540 [ 13.220225][ C1] component_debug_init+0x17/0x30 [ 13.220412][ C1] do_one_initcall+0x8c/0x1e0 [ 13.220593][ C1] do_initcalls+0x176/0x280 [ 13.220773][ C1] kernel_init_freeable+0x22d/0x300 [ 13.220944][ C1] kernel_init+0x20/0x200 [ 13.221120][ C1] ret_from_fork+0x31/0x70 [ 13.221298][ C1] ret_from_fork_asm+0x1a/0x30 [ 13.221464][ C1] irq event stamp: 235640 [ 13.221589][ C1] hardirqs last enabled at (235640): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.221930][ C1] hardirqs last disabled at (235639): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.222251][ C1] softirqs last enabled at (235078): [] handle_softirqs+0x358/0x620 [ 13.222541][ C1] softirqs last disabled at (235083): [] run_ksoftirqd+0x3f/0x70 [ 13.222828][ C1] [ 13.222828][ C1] other info that might help us debug this: [ 13.223072][ C1] Possible unsafe locking scenario: [ 13.223072][ C1] [ 13.223310][ C1] CPU0 [ 13.223442][ C1] ---- [ 13.223564][ C1] lock(pin_fs_lock); [ 13.223694][ C1] [ 13.223816][ C1] lock(pin_fs_lock); [ 13.223952][ C1] [ 13.223952][ C1] *** DEADLOCK *** [ 13.223952][ C1] [ 13.224192][ C1] 1 lock held by ksoftirqd/1/22: [ 13.224358][ C1] #0: ffffffffbab74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.224654][ C1] [ 13.224654][ C1] stack backtrace: [ 13.224858][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.224864][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.224866][ C1] Call Trace: [ 13.224868][ C1] [ 13.224871][ C1] dump_stack_lvl+0x82/0xd0 [ 13.224878][ C1] print_usage_bug.part.0+0x25f/0x360 [ 13.224882][ C1] mark_lock_irq+0x343/0x400 [ 13.224886][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.224891][ C1] ? save_trace+0x52/0x170 [ 13.224898][ C1] mark_lock+0x174/0x2f0 [ 13.224901][ C1] mark_usage+0x46/0x150 [ 13.224904][ C1] __lock_acquire+0x3eb/0x9d0 [ 13.224908][ C1] lock_acquire.part.0+0xb6/0x240 [ 13.224911][ C1] ? simple_pin_fs+0x24/0x150 [ 13.224914][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.224918][ C1] ? lock_acquire+0x10c/0x170 [ 13.224921][ C1] ? simple_pin_fs+0x24/0x150 [ 13.224924][ C1] _raw_spin_lock+0x33/0x40 [ 13.224927][ C1] ? simple_pin_fs+0x24/0x150 [ 13.224929][ C1] simple_pin_fs+0x24/0x150 [ 13.224932][ C1] debugfs_remove+0x35/0x70 [ 13.224935][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 13.224942][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.224945][ C1] ? __sk_destruct+0x383/0x780 [ 13.224952][ C1] ? rcu_do_batch+0x34c/0xf20 [ 13.224955][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.224958][ C1] ? smpboot_thread_fn+0x307/0x960 [ 13.224964][ C1] ? kthread+0x37b/0x600 [ 13.224969][ C1] ? ret_from_fork+0x31/0x70 [ 13.224971][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 13.224974][ C1] ? migrate_enable+0x1f2/0x270 [ 13.224978][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 13.224983][ C1] __put_net+0x19/0x60 [ 13.224987][ C1] __sk_destruct+0x58a/0x780 [ 13.224991][ C1] ? rcu_do_batch+0x34a/0xf20 [ 13.224994][ C1] rcu_do_batch+0x34c/0xf20 [ 13.224999][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.225003][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.225006][ C1] ? note_gp_changes+0x182/0x1e0 [ 13.225009][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.225015][ C1] rcu_core+0x2bb/0x500 [ 13.225019][ C1] handle_softirqs+0x218/0x620 [ 13.225023][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.225027][ C1] run_ksoftirqd+0x3f/0x70 [ 13.225030][ C1] smpboot_thread_fn+0x307/0x960 [ 13.225033][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.225037][ C1] kthread+0x37b/0x600 [ 13.225041][ C1] ? __pfx_kthread+0x10/0x10 [ 13.225044][ C1] ? ret_from_fork+0x1b/0x70 [ 13.225047][ C1] ? __lock_release+0x5d/0x170 [ 13.225050][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.225052][ C1] ? __pfx_kthread+0x10/0x10 [ 13.225056][ C1] ret_from_fork+0x31/0x70 [ 13.225058][ C1] ? __pfx_kthread+0x10/0x10 [ 13.225061][ C1] ret_from_fork_asm+0x1a/0x30 [ 13.225068][ C1] [ 13.234342][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.234610][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 13.234881][ C1] preempt_count: 100, expected: 0 [ 13.235030][ C1] RCU nest depth: 0, expected: 0 [ 13.235185][ C1] INFO: lockdep is turned off. [ 13.235348][ C1] Preemption disabled at: [ 13.235350][ C1] [] handle_softirqs+0xe5/0x620 [ 13.235661][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.235665][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.235667][ C1] Call Trace: [ 13.235668][ C1] [ 13.235670][ C1] dump_stack_lvl+0xb0/0xd0 [ 13.235677][ C1] __might_resched+0x360/0x5a0 [ 13.235683][ C1] down_write+0x72/0x210 [ 13.235687][ C1] ? __pfx_down_write+0x10/0x10 [ 13.235689][ C1] ? simple_recursive_removal+0x3a/0x860 [ 13.235694][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.235698][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 13.235702][ C1] simple_recursive_removal+0x166/0x860 [ 13.235705][ C1] ? __pfx_remove_one+0x10/0x10 [ 13.235710][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 13.235715][ C1] debugfs_remove+0x44/0x70 [ 13.235718][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 13.235724][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.235727][ C1] ? __sk_destruct+0x383/0x780 [ 13.235731][ C1] ? rcu_do_batch+0x34c/0xf20 [ 13.235736][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.235739][ C1] ? smpboot_thread_fn+0x307/0x960 [ 13.235743][ C1] ? kthread+0x37b/0x600 [ 13.235747][ C1] ? ret_from_fork+0x31/0x70 [ 13.235750][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 13.235754][ C1] ? migrate_enable+0x1f2/0x270 [ 13.235758][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 13.235763][ C1] __put_net+0x19/0x60 [ 13.235767][ C1] __sk_destruct+0x58a/0x780 [ 13.235771][ C1] ? rcu_do_batch+0x34a/0xf20 [ 13.235774][ C1] rcu_do_batch+0x34c/0xf20 [ 13.235780][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.235784][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.235786][ C1] ? note_gp_changes+0x182/0x1e0 [ 13.235790][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.235796][ C1] rcu_core+0x2bb/0x500 [ 13.235799][ C1] handle_softirqs+0x218/0x620 [ 13.235803][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.235806][ C1] run_ksoftirqd+0x3f/0x70 [ 13.235809][ C1] smpboot_thread_fn+0x307/0x960 [ 13.235813][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.235817][ C1] kthread+0x37b/0x600 [ 13.235820][ C1] ? __pfx_kthread+0x10/0x10 [ 13.235824][ C1] ? ret_from_fork+0x1b/0x70 [ 13.235826][ C1] ? __lock_release+0x5d/0x170 [ 13.235830][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.235833][ C1] ? __pfx_kthread+0x10/0x10 [ 13.235837][ C1] ret_from_fork+0x31/0x70 [ 13.235839][ C1] ? __pfx_kthread+0x10/0x10 [ 13.235842][ C1] ret_from_fork_asm+0x1a/0x30 [ 13.235849][ C1]