[ 13.204343][ C2] [ 13.204476][ C2] ================================ [ 13.204655][ C2] WARNING: inconsistent lock state [ 13.204827][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 13.204996][ C2] -------------------------------- [ 13.205166][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.205379][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.205599][ C2] ffffffff9d5bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.205906][ C2] {SOFTIRQ-ON-W} state was registered at: [ 13.206078][ C2] __lock_acquire+0x3eb/0x9d0 [ 13.206255][ C2] lock_acquire.part.0+0xb6/0x240 [ 13.206428][ C2] _raw_spin_lock+0x33/0x40 [ 13.206606][ C2] simple_pin_fs+0x24/0x150 [ 13.206780][ C2] start_creating.part.0+0x3f/0x2f0 [ 13.206950][ C2] debugfs_create_dir+0x6a/0x540 [ 13.207119][ C2] component_debug_init+0x17/0x30 [ 13.207297][ C2] do_one_initcall+0x8c/0x1e0 [ 13.207470][ C2] do_initcalls+0x176/0x280 [ 13.207641][ C2] kernel_init_freeable+0x22d/0x300 [ 13.207811][ C2] kernel_init+0x20/0x200 [ 13.207983][ C2] ret_from_fork+0x31/0x70 [ 13.208156][ C2] ret_from_fork_asm+0x1a/0x30 [ 13.208326][ C2] irq event stamp: 177512 [ 13.208459][ C2] hardirqs last enabled at (177512): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.208798][ C2] hardirqs last disabled at (177511): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.209149][ C2] softirqs last enabled at (177396): [] handle_softirqs+0x358/0x620 [ 13.209454][ C2] softirqs last disabled at (177401): [] run_ksoftirqd+0x3f/0x70 [ 13.209752][ C2] [ 13.209752][ C2] other info that might help us debug this: [ 13.210007][ C2] Possible unsafe locking scenario: [ 13.210007][ C2] [ 13.210262][ C2] CPU0 [ 13.210391][ C2] ---- [ 13.210525][ C2] lock(pin_fs_lock); [ 13.210656][ C2] [ 13.210788][ C2] lock(pin_fs_lock); [ 13.210919][ C2] [ 13.210919][ C2] *** DEADLOCK *** [ 13.210919][ C2] [ 13.211169][ C2] 1 lock held by ksoftirqd/2/27: [ 13.211350][ C2] #0: ffffffff9d374480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.211652][ C2] [ 13.211652][ C2] stack backtrace: [ 13.211860][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.211865][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.211867][ C2] Call Trace: [ 13.211869][ C2] [ 13.211871][ C2] dump_stack_lvl+0x82/0xd0 [ 13.211877][ C2] print_usage_bug.part.0+0x25f/0x360 [ 13.211881][ C2] mark_lock_irq+0x343/0x400 [ 13.211885][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.211889][ C2] ? save_trace+0x52/0x170 [ 13.211895][ C2] mark_lock+0x174/0x2f0 [ 13.211898][ C2] mark_usage+0x46/0x150 [ 13.211901][ C2] __lock_acquire+0x3eb/0x9d0 [ 13.211905][ C2] lock_acquire.part.0+0xb6/0x240 [ 13.211908][ C2] ? simple_pin_fs+0x24/0x150 [ 13.211911][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.211914][ C2] ? lock_acquire+0x10c/0x170 [ 13.211916][ C2] ? simple_pin_fs+0x24/0x150 [ 13.211920][ C2] _raw_spin_lock+0x33/0x40 [ 13.211923][ C2] ? simple_pin_fs+0x24/0x150 [ 13.211925][ C2] simple_pin_fs+0x24/0x150 [ 13.211928][ C2] debugfs_remove+0x35/0x70 [ 13.211931][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 13.211937][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.211940][ C2] ? __sk_destruct+0x383/0x780 [ 13.211945][ C2] ? rcu_do_batch+0x34c/0xf20 [ 13.211949][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.211952][ C2] ? smpboot_thread_fn+0x307/0x960 [ 13.211956][ C2] ? kthread+0x37b/0x600 [ 13.211960][ C2] ? ret_from_fork+0x31/0x70 [ 13.211963][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 13.211966][ C2] ? migrate_enable+0x1f2/0x270 [ 13.211969][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 13.211974][ C2] __put_net+0x19/0x60 [ 13.211977][ C2] __sk_destruct+0x58a/0x780 [ 13.211981][ C2] ? rcu_do_batch+0x34a/0xf20 [ 13.211984][ C2] rcu_do_batch+0x34c/0xf20 [ 13.211989][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.211993][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.211996][ C2] ? note_gp_changes+0x182/0x1e0 [ 13.211999][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.212005][ C2] rcu_core+0x2bb/0x500 [ 13.212009][ C2] handle_softirqs+0x218/0x620 [ 13.212013][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.212016][ C2] run_ksoftirqd+0x3f/0x70 [ 13.212018][ C2] smpboot_thread_fn+0x307/0x960 [ 13.212022][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.212026][ C2] kthread+0x37b/0x600 [ 13.212029][ C2] ? __pfx_kthread+0x10/0x10 [ 13.212032][ C2] ? ret_from_fork+0x1b/0x70 [ 13.212034][ C2] ? __lock_release+0x5d/0x170 [ 13.212037][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.212040][ C2] ? __pfx_kthread+0x10/0x10 [ 13.212044][ C2] ret_from_fork+0x31/0x70 [ 13.212046][ C2] ? __pfx_kthread+0x10/0x10 [ 13.212050][ C2] ret_from_fork_asm+0x1a/0x30 [ 13.212056][ C2] [ 13.221263][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.221544][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 13.221824][ C2] preempt_count: 100, expected: 0 [ 13.221998][ C2] RCU nest depth: 0, expected: 0 [ 13.222162][ C2] INFO: lockdep is turned off. [ 13.222322][ C2] Preemption disabled at: [ 13.222324][ C2] [] handle_softirqs+0xe5/0x620 [ 13.222657][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.222661][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.222663][ C2] Call Trace: [ 13.222665][ C2] [ 13.222667][ C2] dump_stack_lvl+0xb0/0xd0 [ 13.222673][ C2] __might_resched+0x360/0x5a0 [ 13.222678][ C2] down_write+0x72/0x210 [ 13.222681][ C2] ? __pfx_down_write+0x10/0x10 [ 13.222684][ C2] ? simple_recursive_removal+0x3a/0x860 [ 13.222687][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.222691][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 13.222696][ C2] simple_recursive_removal+0x166/0x860 [ 13.222699][ C2] ? __pfx_remove_one+0x10/0x10 [ 13.222702][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 13.222707][ C2] debugfs_remove+0x44/0x70 [ 13.222710][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 13.222715][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.222718][ C2] ? __sk_destruct+0x383/0x780 [ 13.222722][ C2] ? rcu_do_batch+0x34c/0xf20 [ 13.222726][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.222729][ C2] ? smpboot_thread_fn+0x307/0x960 [ 13.222733][ C2] ? kthread+0x37b/0x600 [ 13.222736][ C2] ? ret_from_fork+0x31/0x70 [ 13.222738][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 13.222742][ C2] ? migrate_enable+0x1f2/0x270 [ 13.222745][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 13.222750][ C2] __put_net+0x19/0x60 [ 13.222753][ C2] __sk_destruct+0x58a/0x780 [ 13.222757][ C2] ? rcu_do_batch+0x34a/0xf20 [ 13.222760][ C2] rcu_do_batch+0x34c/0xf20 [ 13.222765][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.222770][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.222772][ C2] ? note_gp_changes+0x182/0x1e0 [ 13.222776][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.222781][ C2] rcu_core+0x2bb/0x500 [ 13.222784][ C2] handle_softirqs+0x218/0x620 [ 13.222788][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.222791][ C2] run_ksoftirqd+0x3f/0x70 [ 13.222794][ C2] smpboot_thread_fn+0x307/0x960 [ 13.222797][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.222801][ C2] kthread+0x37b/0x600 [ 13.222805][ C2] ? __pfx_kthread+0x10/0x10 [ 13.222808][ C2] ? ret_from_fork+0x1b/0x70 [ 13.222810][ C2] ? __lock_release+0x5d/0x170 [ 13.222813][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.222816][ C2] ? __pfx_kthread+0x10/0x10 [ 13.222819][ C2] ret_from_fork+0x31/0x70 [ 13.222822][ C2] ? __pfx_kthread+0x10/0x10 [ 13.222825][ C2] ret_from_fork_asm+0x1a/0x30 [ 13.222832][ C2]