[ 15.123464][ C2] [ 15.123626][ C2] ================================ [ 15.123861][ C2] WARNING: inconsistent lock state [ 15.124091][ C2] 6.15.0-virtme #1 Not tainted [ 15.124303][ C2] -------------------------------- [ 15.124512][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.124772][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.125035][ C2] ffffffff8bbc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.125430][ C2] {SOFTIRQ-ON-W} state was registered at: [ 15.125640][ C2] __lock_acquire+0x20b/0x7e0 [ 15.125868][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.126074][ C2] _raw_spin_lock+0x33/0x40 [ 15.126312][ C2] simple_pin_fs+0x24/0x150 [ 15.126545][ C2] start_creating.part.0+0x52/0x310 [ 15.126750][ C2] debugfs_create_dir+0x6a/0x540 [ 15.126969][ C2] component_debug_init+0x17/0x30 [ 15.127186][ C2] do_one_initcall+0x8f/0x1e0 [ 15.127440][ C2] do_initcalls+0x176/0x280 [ 15.127650][ C2] kernel_init_freeable+0x22d/0x300 [ 15.127888][ C2] kernel_init+0x20/0x200 [ 15.128184][ C2] ret_from_fork+0x240/0x320 [ 15.128457][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.128675][ C2] irq event stamp: 154346 [ 15.128874][ C2] hardirqs last enabled at (154346): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.129339][ C2] hardirqs last disabled at (154345): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.129766][ C2] softirqs last enabled at (154058): [] handle_softirqs+0x358/0x620 [ 15.130156][ C2] softirqs last disabled at (154065): [] run_ksoftirqd+0x3f/0x70 [ 15.130634][ C2] [ 15.130634][ C2] other info that might help us debug this: [ 15.131033][ C2] Possible unsafe locking scenario: [ 15.131033][ C2] [ 15.131489][ C2] CPU0 [ 15.131727][ C2] ---- [ 15.131965][ C2] lock(pin_fs_lock); [ 15.132181][ C2] [ 15.132337][ C2] lock(pin_fs_lock); [ 15.132496][ C2] [ 15.132496][ C2] *** DEADLOCK *** [ 15.132496][ C2] [ 15.132799][ C2] 1 lock held by ksoftirqd/2/27: [ 15.133037][ C2] #0: ffffffff8b9774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.133445][ C2] [ 15.133445][ C2] stack backtrace: [ 15.133724][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.133730][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.133734][ C2] Call Trace: [ 15.133737][ C2] [ 15.133741][ C2] dump_stack_lvl+0x82/0xd0 [ 15.133753][ C2] print_usage_bug.part.0+0x25f/0x360 [ 15.133764][ C2] mark_lock_irq+0x343/0x400 [ 15.133771][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.133781][ C2] ? save_trace+0x52/0x170 [ 15.133787][ C2] mark_lock+0x174/0x2f0 [ 15.133794][ C2] mark_usage+0x46/0x150 [ 15.133800][ C2] __lock_acquire+0x20b/0x7e0 [ 15.133805][ C2] ? __lock_acquire+0x44d/0x7e0 [ 15.133812][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.133817][ C2] ? simple_pin_fs+0x24/0x150 [ 15.133825][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.133834][ C2] ? lock_acquire+0x10c/0x170 [ 15.133837][ C2] ? simple_pin_fs+0x24/0x150 [ 15.133841][ C2] _raw_spin_lock+0x33/0x40 [ 15.133846][ C2] ? simple_pin_fs+0x24/0x150 [ 15.133848][ C2] simple_pin_fs+0x24/0x150 [ 15.133852][ C2] debugfs_remove+0x35/0x70 [ 15.133857][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.133864][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.133867][ C2] ? __sk_destruct+0x383/0x780 [ 15.133873][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.133877][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.133880][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 15.133883][ C2] ? kthread+0x37e/0x600 [ 15.133888][ C2] ? ret_from_fork+0x240/0x320 [ 15.133894][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 15.133899][ C2] ? migrate_enable+0x1f2/0x270 [ 15.133904][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 15.133910][ C2] __put_net+0x19/0x60 [ 15.133915][ C2] __sk_destruct+0x58a/0x780 [ 15.133922][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.133926][ C2] rcu_do_batch+0x34c/0xf20 [ 15.133932][ C2] ? __schedule+0x87b/0x1b00 [ 15.133942][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.133948][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.133953][ C2] ? note_gp_changes+0x182/0x1e0 [ 15.133958][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.133967][ C2] rcu_core+0x2bb/0x500 [ 15.133975][ C2] handle_softirqs+0x218/0x620 [ 15.133985][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.133992][ C2] run_ksoftirqd+0x3f/0x70 [ 15.133997][ C2] smpboot_thread_fn+0x30a/0x960 [ 15.134002][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.134005][ C2] kthread+0x37e/0x600 [ 15.134009][ C2] ? __pfx_kthread+0x10/0x10 [ 15.134011][ C2] ? ret_from_fork+0x1b/0x320 [ 15.134014][ C2] ? __lock_release+0x5d/0x170 [ 15.134018][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.134022][ C2] ? __pfx_kthread+0x10/0x10 [ 15.134025][ C2] ret_from_fork+0x240/0x320 [ 15.134029][ C2] ? __pfx_kthread+0x10/0x10 [ 15.134032][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.134038][ C2] [ 15.147684][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.148071][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 15.148430][ C2] preempt_count: 100, expected: 0 [ 15.148657][ C2] RCU nest depth: 0, expected: 0 [ 15.148908][ C2] INFO: lockdep is turned off. [ 15.149100][ C2] Preemption disabled at: [ 15.149102][ C2] [] handle_softirqs+0xe5/0x620 [ 15.149514][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.149520][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.149522][ C2] Call Trace: [ 15.149524][ C2] [ 15.149528][ C2] dump_stack_lvl+0xb0/0xd0 [ 15.149538][ C2] __might_resched+0x360/0x5a0 [ 15.149547][ C2] down_write+0x72/0x210 [ 15.149553][ C2] ? __pfx_down_write+0x10/0x10 [ 15.149556][ C2] ? simple_recursive_removal+0x33/0x610 [ 15.149563][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.149571][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.149575][ C2] simple_recursive_removal+0x6a/0x610 [ 15.149579][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.149581][ C2] ? __pfx_remove_one+0x10/0x10 [ 15.149589][ C2] debugfs_remove+0x44/0x70 [ 15.149594][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.149601][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.149605][ C2] ? __sk_destruct+0x383/0x780 [ 15.149613][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.149620][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.149624][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 15.149629][ C2] ? kthread+0x37e/0x600 [ 15.149633][ C2] ? ret_from_fork+0x240/0x320 [ 15.149640][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 15.149644][ C2] ? migrate_enable+0x1f2/0x270 [ 15.149649][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 15.149655][ C2] __put_net+0x19/0x60 [ 15.149660][ C2] __sk_destruct+0x58a/0x780 [ 15.149665][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.149668][ C2] rcu_do_batch+0x34c/0xf20 [ 15.149671][ C2] ? __schedule+0x87b/0x1b00 [ 15.149679][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.149683][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.149687][ C2] ? note_gp_changes+0x182/0x1e0 [ 15.149690][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.149697][ C2] rcu_core+0x2bb/0x500 [ 15.149703][ C2] handle_softirqs+0x218/0x620 [ 15.149708][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.149712][ C2] run_ksoftirqd+0x3f/0x70 [ 15.149715][ C2] smpboot_thread_fn+0x30a/0x960 [ 15.149718][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.149721][ C2] kthread+0x37e/0x600 [ 15.149724][ C2] ? __pfx_kthread+0x10/0x10 [ 15.149727][ C2] ? ret_from_fork+0x1b/0x320 [ 15.149730][ C2] ? __lock_release+0x5d/0x170 [ 15.149735][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.149738][ C2] ? __pfx_kthread+0x10/0x10 [ 15.149742][ C2] ret_from_fork+0x240/0x320 [ 15.149745][ C2] ? __pfx_kthread+0x10/0x10 [ 15.149747][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.149754][ C2]