[ 14.293547][ C3] [ 14.293701][ C3] ================================ [ 14.294009][ C3] WARNING: inconsistent lock state [ 14.294187][ C3] 6.15.0-rc7-virtme #1 Not tainted [ 14.294367][ C3] -------------------------------- [ 14.294542][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.294768][ C3] ksoftirqd/3/32 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.295022][ C3] ffffffff99dbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.295364][ C3] {SOFTIRQ-ON-W} state was registered at: [ 14.295542][ C3] __lock_acquire+0x3eb/0x9d0 [ 14.295736][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.295927][ C3] _raw_spin_lock+0x33/0x40 [ 14.296120][ C3] simple_pin_fs+0x24/0x150 [ 14.296297][ C3] start_creating.part.0+0x3f/0x2f0 [ 14.296474][ C3] debugfs_create_dir+0x6a/0x540 [ 14.296669][ C3] component_debug_init+0x17/0x30 [ 14.296852][ C3] do_one_initcall+0x8f/0x1e0 [ 14.297037][ C3] do_initcalls+0x176/0x280 [ 14.297224][ C3] kernel_init_freeable+0x22d/0x300 [ 14.297406][ C3] kernel_init+0x20/0x200 [ 14.297596][ C3] ret_from_fork+0x31/0x70 [ 14.297788][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.297972][ C3] irq event stamp: 186540 [ 14.298109][ C3] hardirqs last enabled at (186540): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.298481][ C3] hardirqs last disabled at (186539): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.298862][ C3] softirqs last enabled at (186200): [] handle_softirqs+0x358/0x620 [ 14.299181][ C3] softirqs last disabled at (186205): [] run_ksoftirqd+0x3f/0x70 [ 14.299506][ C3] [ 14.299506][ C3] other info that might help us debug this: [ 14.299794][ C3] Possible unsafe locking scenario: [ 14.299794][ C3] [ 14.300058][ C3] CPU0 [ 14.300216][ C3] ---- [ 14.300346][ C3] lock(pin_fs_lock); [ 14.300482][ C3] [ 14.300624][ C3] lock(pin_fs_lock); [ 14.300766][ C3] [ 14.300766][ C3] *** DEADLOCK *** [ 14.300766][ C3] [ 14.301041][ C3] 1 lock held by ksoftirqd/3/32: [ 14.301226][ C3] #0: ffffffff99b749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.301547][ C3] [ 14.301547][ C3] stack backtrace: [ 14.301783][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 14.301788][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.301790][ C3] Call Trace: [ 14.301792][ C3] [ 14.301794][ C3] dump_stack_lvl+0x82/0xd0 [ 14.301801][ C3] print_usage_bug.part.0+0x25f/0x360 [ 14.301805][ C3] mark_lock_irq+0x343/0x400 [ 14.301809][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.301814][ C3] ? save_trace+0x52/0x170 [ 14.301820][ C3] mark_lock+0x174/0x2f0 [ 14.301823][ C3] mark_usage+0x46/0x150 [ 14.301826][ C3] __lock_acquire+0x3eb/0x9d0 [ 14.301831][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.301833][ C3] ? simple_pin_fs+0x24/0x150 [ 14.301838][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.301841][ C3] ? lock_acquire+0x10c/0x170 [ 14.301843][ C3] ? simple_pin_fs+0x24/0x150 [ 14.301847][ C3] _raw_spin_lock+0x33/0x40 [ 14.301850][ C3] ? simple_pin_fs+0x24/0x150 [ 14.301853][ C3] simple_pin_fs+0x24/0x150 [ 14.301856][ C3] debugfs_remove+0x35/0x70 [ 14.301860][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.301866][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.301870][ C3] ? __sk_destruct+0x383/0x780 [ 14.301875][ C3] ? rcu_do_batch+0x34f/0xf20 [ 14.301878][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.301882][ C3] ? smpboot_thread_fn+0x307/0x960 [ 14.301887][ C3] ? kthread+0x37b/0x600 [ 14.301892][ C3] ? ret_from_fork+0x31/0x70 [ 14.301894][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 14.301898][ C3] ? migrate_enable+0x1f2/0x270 [ 14.301901][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 14.301906][ C3] __put_net+0x19/0x60 [ 14.301910][ C3] __sk_destruct+0x58a/0x780 [ 14.301914][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.301917][ C3] rcu_do_batch+0x34f/0xf20 [ 14.301923][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.301927][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.301930][ C3] ? note_gp_changes+0x182/0x1e0 [ 14.301933][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.301938][ C3] rcu_core+0x2bb/0x500 [ 14.301943][ C3] handle_softirqs+0x218/0x620 [ 14.301947][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.301951][ C3] run_ksoftirqd+0x3f/0x70 [ 14.301953][ C3] smpboot_thread_fn+0x307/0x960 [ 14.301957][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.301961][ C3] kthread+0x37b/0x600 [ 14.301965][ C3] ? __pfx_kthread+0x10/0x10 [ 14.301968][ C3] ? ret_from_fork+0x1b/0x70 [ 14.301970][ C3] ? __lock_release+0x5d/0x170 [ 14.301973][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.301976][ C3] ? __pfx_kthread+0x10/0x10 [ 14.301980][ C3] ret_from_fork+0x31/0x70 [ 14.301982][ C3] ? __pfx_kthread+0x10/0x10 [ 14.301986][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.301993][ C3] [ 14.312743][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.313025][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 14.313315][ C3] preempt_count: 100, expected: 0 [ 14.313482][ C3] RCU nest depth: 0, expected: 0 [ 14.313655][ C3] INFO: lockdep is turned off. [ 14.313827][ C3] Preemption disabled at: [ 14.313829][ C3] [] handle_softirqs+0xe5/0x620 [ 14.314174][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 14.314179][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.314181][ C3] Call Trace: [ 14.314183][ C3] [ 14.314186][ C3] dump_stack_lvl+0xb0/0xd0 [ 14.314193][ C3] __might_resched+0x360/0x5a0 [ 14.314199][ C3] down_write+0x72/0x210 [ 14.314203][ C3] ? __pfx_down_write+0x10/0x10 [ 14.314205][ C3] ? simple_recursive_removal+0x3a/0x860 [ 14.314211][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.314215][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.314220][ C3] simple_recursive_removal+0x166/0x860 [ 14.314223][ C3] ? __pfx_remove_one+0x10/0x10 [ 14.314228][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.314233][ C3] debugfs_remove+0x44/0x70 [ 14.314236][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.314241][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.314245][ C3] ? __sk_destruct+0x383/0x780 [ 14.314250][ C3] ? rcu_do_batch+0x34f/0xf20 [ 14.314255][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.314258][ C3] ? smpboot_thread_fn+0x307/0x960 [ 14.314262][ C3] ? kthread+0x37b/0x600 [ 14.314267][ C3] ? ret_from_fork+0x31/0x70 [ 14.314270][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 14.314275][ C3] ? migrate_enable+0x1f2/0x270 [ 14.314279][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 14.314284][ C3] __put_net+0x19/0x60 [ 14.314287][ C3] __sk_destruct+0x58a/0x780 [ 14.314291][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.314295][ C3] rcu_do_batch+0x34f/0xf20 [ 14.314301][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.314305][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.314307][ C3] ? note_gp_changes+0x182/0x1e0 [ 14.314310][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.314316][ C3] rcu_core+0x2bb/0x500 [ 14.314319][ C3] handle_softirqs+0x218/0x620 [ 14.314323][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.314327][ C3] run_ksoftirqd+0x3f/0x70 [ 14.314330][ C3] smpboot_thread_fn+0x307/0x960 [ 14.314333][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.314337][ C3] kthread+0x37b/0x600 [ 14.314341][ C3] ? __pfx_kthread+0x10/0x10 [ 14.314344][ C3] ? ret_from_fork+0x1b/0x70 [ 14.314346][ C3] ? __lock_release+0x5d/0x170 [ 14.314349][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.314352][ C3] ? __pfx_kthread+0x10/0x10 [ 14.314356][ C3] ret_from_fork+0x31/0x70 [ 14.314358][ C3] ? __pfx_kthread+0x10/0x10 [ 14.314362][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.314369][ C3]