[ 13.274220][ C0] [ 13.274372][ C0] ================================ [ 13.274563][ C0] WARNING: inconsistent lock state [ 13.274748][ C0] 6.15.0-rc5-virtme #1 Not tainted [ 13.274928][ C0] -------------------------------- [ 13.275110][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.275335][ C0] ksoftirqd/0/14 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.275560][ C0] ffffffffb91bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.275891][ C0] {SOFTIRQ-ON-W} state was registered at: [ 13.276074][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.276262][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.276446][ C0] _raw_spin_lock+0x33/0x40 [ 13.276629][ C0] simple_pin_fs+0x24/0x150 [ 13.276812][ C0] start_creating.part.0+0x3f/0x2f0 [ 13.277004][ C0] debugfs_create_dir+0x6a/0x540 [ 13.277189][ C0] component_debug_init+0x17/0x30 [ 13.277375][ C0] do_one_initcall+0x8c/0x1e0 [ 13.277558][ C0] do_initcalls+0x176/0x280 [ 13.277741][ C0] kernel_init_freeable+0x22d/0x300 [ 13.277927][ C0] kernel_init+0x20/0x200 [ 13.278108][ C0] ret_from_fork+0x31/0x70 [ 13.278294][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.278481][ C0] irq event stamp: 179946 [ 13.278621][ C0] hardirqs last enabled at (179946): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.278983][ C0] hardirqs last disabled at (179945): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.279347][ C0] softirqs last enabled at (179646): [] handle_softirqs+0x358/0x620 [ 13.279669][ C0] softirqs last disabled at (179651): [] run_ksoftirqd+0x3f/0x70 [ 13.279990][ C0] [ 13.279990][ C0] other info that might help us debug this: [ 13.280257][ C0] Possible unsafe locking scenario: [ 13.280257][ C0] [ 13.280525][ C0] CPU0 [ 13.280666][ C0] ---- [ 13.280802][ C0] lock(pin_fs_lock); [ 13.280944][ C0] [ 13.281085][ C0] lock(pin_fs_lock); [ 13.281224][ C0] [ 13.281224][ C0] *** DEADLOCK *** [ 13.281224][ C0] [ 13.281500][ C0] 1 lock held by ksoftirqd/0/14: [ 13.281682][ C0] #0: ffffffffb8f74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.282013][ C0] [ 13.282013][ C0] stack backtrace: [ 13.282242][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.282248][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.282250][ C0] Call Trace: [ 13.282252][ C0] [ 13.282255][ C0] dump_stack_lvl+0x82/0xd0 [ 13.282262][ C0] print_usage_bug.part.0+0x25f/0x360 [ 13.282266][ C0] mark_lock_irq+0x343/0x400 [ 13.282271][ C0] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.282276][ C0] ? save_trace+0x52/0x170 [ 13.282282][ C0] mark_lock+0x174/0x2f0 [ 13.282286][ C0] mark_usage+0x46/0x150 [ 13.282288][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.282293][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.282296][ C0] ? simple_pin_fs+0x24/0x150 [ 13.282299][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.282303][ C0] ? lock_acquire+0x10c/0x170 [ 13.282305][ C0] ? simple_pin_fs+0x24/0x150 [ 13.282309][ C0] _raw_spin_lock+0x33/0x40 [ 13.282311][ C0] ? simple_pin_fs+0x24/0x150 [ 13.282314][ C0] simple_pin_fs+0x24/0x150 [ 13.282317][ C0] debugfs_remove+0x35/0x70 [ 13.282320][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.282327][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.282330][ C0] ? __sk_destruct+0x383/0x780 [ 13.282337][ C0] ? rcu_do_batch+0x34c/0xf20 [ 13.282341][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.282344][ C0] ? smpboot_thread_fn+0x307/0x960 [ 13.282350][ C0] ? kthread+0x37b/0x600 [ 13.282355][ C0] ? ret_from_fork+0x31/0x70 [ 13.282357][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 13.282360][ C0] ? migrate_enable+0x1f2/0x270 [ 13.282364][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 13.282369][ C0] __put_net+0x19/0x60 [ 13.282373][ C0] __sk_destruct+0x58a/0x780 [ 13.282376][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.282379][ C0] rcu_do_batch+0x34c/0xf20 [ 13.282385][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.282389][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.282391][ C0] ? note_gp_changes+0x182/0x1e0 [ 13.282395][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.282401][ C0] rcu_core+0x2bb/0x500 [ 13.282405][ C0] handle_softirqs+0x218/0x620 [ 13.282409][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.282413][ C0] run_ksoftirqd+0x3f/0x70 [ 13.282415][ C0] smpboot_thread_fn+0x307/0x960 [ 13.282419][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.282423][ C0] kthread+0x37b/0x600 [ 13.282427][ C0] ? __pfx_kthread+0x10/0x10 [ 13.282430][ C0] ? ret_from_fork+0x1b/0x70 [ 13.282432][ C0] ? __lock_release+0x5d/0x170 [ 13.282435][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.282438][ C0] ? __pfx_kthread+0x10/0x10 [ 13.282442][ C0] ret_from_fork+0x31/0x70 [ 13.282444][ C0] ? __pfx_kthread+0x10/0x10 [ 13.282448][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.282454][ C0] [ 13.292788][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.293087][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 14, name: ksoftirqd/0 [ 13.293379][ C0] preempt_count: 100, expected: 0 [ 13.293553][ C0] RCU nest depth: 0, expected: 0 [ 13.293729][ C0] INFO: lockdep is turned off. [ 13.293896][ C0] Preemption disabled at: [ 13.293898][ C0] [] handle_softirqs+0xe5/0x620 [ 13.294249][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.294254][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.294256][ C0] Call Trace: [ 13.294258][ C0] [ 13.294260][ C0] dump_stack_lvl+0xb0/0xd0 [ 13.294268][ C0] __might_resched+0x360/0x5a0 [ 13.294274][ C0] down_write+0x72/0x210 [ 13.294278][ C0] ? __pfx_down_write+0x10/0x10 [ 13.294280][ C0] ? simple_recursive_removal+0x3a/0x860 [ 13.294285][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.294290][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.294295][ C0] simple_recursive_removal+0x166/0x860 [ 13.294298][ C0] ? __pfx_remove_one+0x10/0x10 [ 13.294303][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.294308][ C0] debugfs_remove+0x44/0x70 [ 13.294311][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.294317][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.294320][ C0] ? __sk_destruct+0x383/0x780 [ 13.294326][ C0] ? rcu_do_batch+0x34c/0xf20 [ 13.294330][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.294333][ C0] ? smpboot_thread_fn+0x307/0x960 [ 13.294338][ C0] ? kthread+0x37b/0x600 [ 13.294342][ C0] ? ret_from_fork+0x31/0x70 [ 13.294346][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 13.294351][ C0] ? migrate_enable+0x1f2/0x270 [ 13.294355][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 13.294360][ C0] __put_net+0x19/0x60 [ 13.294363][ C0] __sk_destruct+0x58a/0x780 [ 13.294367][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.294370][ C0] rcu_do_batch+0x34c/0xf20 [ 13.294376][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.294380][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.294382][ C0] ? note_gp_changes+0x182/0x1e0 [ 13.294386][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.294391][ C0] rcu_core+0x2bb/0x500 [ 13.294395][ C0] handle_softirqs+0x218/0x620 [ 13.294398][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.294402][ C0] run_ksoftirqd+0x3f/0x70 [ 13.294404][ C0] smpboot_thread_fn+0x307/0x960 [ 13.294408][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.294411][ C0] kthread+0x37b/0x600 [ 13.294415][ C0] ? __pfx_kthread+0x10/0x10 [ 13.294418][ C0] ? ret_from_fork+0x1b/0x70 [ 13.294420][ C0] ? __lock_release+0x5d/0x170 [ 13.294423][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.294426][ C0] ? __pfx_kthread+0x10/0x10 [ 13.294429][ C0] ret_from_fork+0x31/0x70 [ 13.294431][ C0] ? __pfx_kthread+0x10/0x10 [ 13.294435][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.294441][ C0]