[ 16.447599][ C2] [ 16.447761][ C2] ================================ [ 16.447969][ C2] WARNING: inconsistent lock state [ 16.448196][ C2] 6.15.0-virtme #1 Not tainted [ 16.448394][ C2] -------------------------------- [ 16.448602][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.448849][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.449121][ C2] ffffffff8e9c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.449526][ C2] {SOFTIRQ-ON-W} state was registered at: [ 16.449731][ C2] __lock_acquire+0x20b/0x7e0 [ 16.449945][ C2] lock_acquire.part.0+0xb6/0x240 [ 16.450136][ C2] _raw_spin_lock+0x33/0x40 [ 16.450327][ C2] simple_pin_fs+0x24/0x150 [ 16.450513][ C2] start_creating.part.0+0x52/0x310 [ 16.450702][ C2] debugfs_create_dir+0x6a/0x540 [ 16.450893][ C2] component_debug_init+0x17/0x30 [ 16.451092][ C2] do_one_initcall+0x8f/0x1e0 [ 16.451278][ C2] do_initcalls+0x176/0x280 [ 16.451466][ C2] kernel_init_freeable+0x22d/0x300 [ 16.451660][ C2] kernel_init+0x20/0x200 [ 16.451851][ C2] ret_from_fork+0x240/0x320 [ 16.452050][ C2] ret_from_fork_asm+0x1a/0x30 [ 16.452242][ C2] irq event stamp: 196430 [ 16.452395][ C2] hardirqs last enabled at (196430): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.452781][ C2] hardirqs last disabled at (196429): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.453170][ C2] softirqs last enabled at (195294): [] handle_softirqs+0x358/0x620 [ 16.453524][ C2] softirqs last disabled at (195299): [] run_ksoftirqd+0x3f/0x70 [ 16.453859][ C2] [ 16.453859][ C2] other info that might help us debug this: [ 16.454145][ C2] Possible unsafe locking scenario: [ 16.454145][ C2] [ 16.454429][ C2] CPU0 [ 16.454587][ C2] ---- [ 16.454730][ C2] lock(pin_fs_lock); [ 16.454876][ C2] [ 16.455018][ C2] lock(pin_fs_lock); [ 16.455163][ C2] [ 16.455163][ C2] *** DEADLOCK *** [ 16.455163][ C2] [ 16.455451][ C2] 1 lock held by ksoftirqd/2/27: [ 16.455643][ C2] #0: ffffffff8e7774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.455988][ C2] [ 16.455988][ C2] stack backtrace: [ 16.456233][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.456238][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.456240][ C2] Call Trace: [ 16.456242][ C2] [ 16.456246][ C2] dump_stack_lvl+0x82/0xd0 [ 16.456252][ C2] print_usage_bug.part.0+0x25f/0x360 [ 16.456258][ C2] mark_lock_irq+0x343/0x400 [ 16.456262][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 16.456268][ C2] ? save_trace+0x52/0x170 [ 16.456272][ C2] mark_lock+0x174/0x2f0 [ 16.456276][ C2] mark_usage+0x46/0x150 [ 16.456279][ C2] __lock_acquire+0x20b/0x7e0 [ 16.456283][ C2] ? __lock_acquire+0x44d/0x7e0 [ 16.456287][ C2] lock_acquire.part.0+0xb6/0x240 [ 16.456291][ C2] ? simple_pin_fs+0x24/0x150 [ 16.456295][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.456299][ C2] ? lock_acquire+0x10c/0x170 [ 16.456302][ C2] ? simple_pin_fs+0x24/0x150 [ 16.456306][ C2] _raw_spin_lock+0x33/0x40 [ 16.456309][ C2] ? simple_pin_fs+0x24/0x150 [ 16.456312][ C2] simple_pin_fs+0x24/0x150 [ 16.456315][ C2] debugfs_remove+0x35/0x70 [ 16.456319][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.456324][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.456326][ C2] ? __sk_destruct+0x383/0x780 [ 16.456332][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.456335][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.456337][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 16.456341][ C2] ? kthread+0x37e/0x600 [ 16.456344][ C2] ? ret_from_fork+0x240/0x320 [ 16.456348][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 16.456350][ C2] ? migrate_enable+0x1f2/0x270 [ 16.456355][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 16.456360][ C2] __put_net+0x19/0x60 [ 16.456365][ C2] __sk_destruct+0x58a/0x780 [ 16.456369][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.456372][ C2] rcu_do_batch+0x34c/0xf20 [ 16.456376][ C2] ? __lock_release+0x5d/0x170 [ 16.456380][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.456384][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.456387][ C2] ? note_gp_changes+0x182/0x1e0 [ 16.456390][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.456396][ C2] rcu_core+0x2bb/0x500 [ 16.456401][ C2] handle_softirqs+0x218/0x620 [ 16.456406][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 16.456410][ C2] run_ksoftirqd+0x3f/0x70 [ 16.456413][ C2] smpboot_thread_fn+0x30a/0x960 [ 16.456416][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.456419][ C2] kthread+0x37e/0x600 [ 16.456422][ C2] ? __pfx_kthread+0x10/0x10 [ 16.456425][ C2] ? ret_from_fork+0x1b/0x320 [ 16.456427][ C2] ? __lock_release+0x5d/0x170 [ 16.456431][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.456435][ C2] ? __pfx_kthread+0x10/0x10 [ 16.456438][ C2] ret_from_fork+0x240/0x320 [ 16.456441][ C2] ? __pfx_kthread+0x10/0x10 [ 16.456444][ C2] ret_from_fork_asm+0x1a/0x30 [ 16.456450][ C2] [ 16.467937][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.468335][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 16.468851][ C2] preempt_count: 100, expected: 0 [ 16.469167][ C2] RCU nest depth: 0, expected: 0 [ 16.469462][ C2] INFO: lockdep is turned off. [ 16.469763][ C2] Preemption disabled at: [ 16.469767][ C2] [] handle_softirqs+0xe5/0x620 [ 16.470589][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.470597][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.470601][ C2] Call Trace: [ 16.470604][ C2] [ 16.470609][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.470620][ C2] __might_resched+0x360/0x5a0 [ 16.470630][ C2] down_write+0x72/0x210 [ 16.470636][ C2] ? __pfx_down_write+0x10/0x10 [ 16.470640][ C2] ? simple_recursive_removal+0x33/0x610 [ 16.470646][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.470654][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.470661][ C2] simple_recursive_removal+0x6a/0x610 [ 16.470666][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.470670][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.470680][ C2] debugfs_remove+0x44/0x70 [ 16.470686][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.470693][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.470697][ C2] ? __sk_destruct+0x383/0x780 [ 16.470705][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.470711][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.470716][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 16.470721][ C2] ? kthread+0x37e/0x600 [ 16.470726][ C2] ? ret_from_fork+0x240/0x320 [ 16.470732][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 16.470738][ C2] ? migrate_enable+0x1f2/0x270 [ 16.470745][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 16.470755][ C2] __put_net+0x19/0x60 [ 16.470761][ C2] __sk_destruct+0x58a/0x780 [ 16.470768][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.470773][ C2] rcu_do_batch+0x34c/0xf20 [ 16.470779][ C2] ? __lock_release+0x5d/0x170 [ 16.470788][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.470794][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.470799][ C2] ? note_gp_changes+0x182/0x1e0 [ 16.470805][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.470815][ C2] rcu_core+0x2bb/0x500 [ 16.470823][ C2] handle_softirqs+0x218/0x620 [ 16.470832][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 16.470839][ C2] run_ksoftirqd+0x3f/0x70 [ 16.470844][ C2] smpboot_thread_fn+0x30a/0x960 [ 16.470850][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.470856][ C2] kthread+0x37e/0x600 [ 16.470862][ C2] ? __pfx_kthread+0x10/0x10 [ 16.470866][ C2] ? ret_from_fork+0x1b/0x320 [ 16.470871][ C2] ? __lock_release+0x5d/0x170 [ 16.470877][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.470882][ C2] ? __pfx_kthread+0x10/0x10 [ 16.470888][ C2] ret_from_fork+0x240/0x320 [ 16.470894][ C2] ? __pfx_kthread+0x10/0x10 [ 16.470899][ C2] ret_from_fork_asm+0x1a/0x30 [ 16.470911][ C2]