[ 13.268680][ C0] [ 13.268896][ C0] ================================ [ 13.269209][ C0] WARNING: inconsistent lock state [ 13.269496][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 13.269805][ C0] -------------------------------- [ 13.270114][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.270504][ C0] ksoftirqd/0/14 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.270895][ C0] ffffffffa57bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.271441][ C0] {SOFTIRQ-ON-W} state was registered at: [ 13.271747][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.272059][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.272336][ C0] _raw_spin_lock+0x33/0x40 [ 13.272653][ C0] simple_pin_fs+0x24/0x150 [ 13.272961][ C0] start_creating.part.0+0x3f/0x2f0 [ 13.273261][ C0] debugfs_create_dir+0x6a/0x540 [ 13.273559][ C0] component_debug_init+0x17/0x30 [ 13.273858][ C0] do_one_initcall+0x8f/0x1e0 [ 13.274171][ C0] do_initcalls+0x176/0x280 [ 13.274471][ C0] kernel_init_freeable+0x22d/0x300 [ 13.274770][ C0] kernel_init+0x20/0x200 [ 13.275029][ C0] ret_from_fork+0x31/0x70 [ 13.275261][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.275530][ C0] irq event stamp: 193024 [ 13.275751][ C0] hardirqs last enabled at (193024): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.276246][ C0] hardirqs last disabled at (193023): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.276650][ C0] softirqs last enabled at (192412): [] handle_softirqs+0x358/0x620 [ 13.276990][ C0] softirqs last disabled at (192417): [] run_ksoftirqd+0x3f/0x70 [ 13.277342][ C0] [ 13.277342][ C0] other info that might help us debug this: [ 13.277797][ C0] Possible unsafe locking scenario: [ 13.277797][ C0] [ 13.278108][ C0] CPU0 [ 13.278252][ C0] ---- [ 13.278412][ C0] lock(pin_fs_lock); [ 13.278564][ C0] [ 13.278709][ C0] lock(pin_fs_lock); [ 13.278857][ C0] [ 13.278857][ C0] *** DEADLOCK *** [ 13.278857][ C0] [ 13.279133][ C0] 1 lock held by ksoftirqd/0/14: [ 13.279329][ C0] #0: ffffffffa55749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.279676][ C0] [ 13.279676][ C0] stack backtrace: [ 13.279915][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.279920][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.279923][ C0] Call Trace: [ 13.279925][ C0] [ 13.279928][ C0] dump_stack_lvl+0x82/0xd0 [ 13.279936][ C0] print_usage_bug.part.0+0x25f/0x360 [ 13.279942][ C0] mark_lock_irq+0x343/0x400 [ 13.279946][ C0] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.279952][ C0] ? save_trace+0x52/0x170 [ 13.279959][ C0] mark_lock+0x174/0x2f0 [ 13.279962][ C0] mark_usage+0x46/0x150 [ 13.279965][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.279970][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.279973][ C0] ? simple_pin_fs+0x24/0x150 [ 13.279979][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.279983][ C0] ? lock_acquire+0x10c/0x170 [ 13.279985][ C0] ? simple_pin_fs+0x24/0x150 [ 13.279989][ C0] _raw_spin_lock+0x33/0x40 [ 13.279992][ C0] ? simple_pin_fs+0x24/0x150 [ 13.279995][ C0] simple_pin_fs+0x24/0x150 [ 13.279998][ C0] debugfs_remove+0x35/0x70 [ 13.280003][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.280011][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.280015][ C0] ? __sk_destruct+0x383/0x780 [ 13.280021][ C0] ? rcu_do_batch+0x34f/0xf20 [ 13.280025][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.280028][ C0] ? smpboot_thread_fn+0x307/0x960 [ 13.280034][ C0] ? kthread+0x37b/0x600 [ 13.280040][ C0] ? ret_from_fork+0x31/0x70 [ 13.280045][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 13.280049][ C0] ? migrate_enable+0x1f2/0x270 [ 13.280053][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 13.280058][ C0] __put_net+0x19/0x60 [ 13.280063][ C0] __sk_destruct+0x58a/0x780 [ 13.280067][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.280070][ C0] rcu_do_batch+0x34f/0xf20 [ 13.280075][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.280080][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.280083][ C0] ? note_gp_changes+0x182/0x1e0 [ 13.280085][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.280091][ C0] rcu_core+0x2bb/0x500 [ 13.280095][ C0] handle_softirqs+0x218/0x620 [ 13.280099][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.280102][ C0] run_ksoftirqd+0x3f/0x70 [ 13.280105][ C0] smpboot_thread_fn+0x307/0x960 [ 13.280108][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.280112][ C0] kthread+0x37b/0x600 [ 13.280116][ C0] ? __pfx_kthread+0x10/0x10 [ 13.280119][ C0] ? ret_from_fork+0x1b/0x70 [ 13.280121][ C0] ? __lock_release+0x5d/0x170 [ 13.280124][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.280127][ C0] ? __pfx_kthread+0x10/0x10 [ 13.280131][ C0] ret_from_fork+0x31/0x70 [ 13.280134][ C0] ? __pfx_kthread+0x10/0x10 [ 13.280137][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.280144][ C0] [ 13.294249][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.294714][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 14, name: ksoftirqd/0 [ 13.295298][ C0] preempt_count: 100, expected: 0 [ 13.295547][ C0] RCU nest depth: 0, expected: 0 [ 13.295790][ C0] INFO: lockdep is turned off. [ 13.295969][ C0] Preemption disabled at: [ 13.295971][ C0] [] handle_softirqs+0xe5/0x620 [ 13.296484][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.296492][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.296495][ C0] Call Trace: [ 13.296498][ C0] [ 13.296502][ C0] dump_stack_lvl+0xb0/0xd0 [ 13.296511][ C0] __might_resched+0x360/0x5a0 [ 13.296523][ C0] down_write+0x72/0x210 [ 13.296529][ C0] ? __pfx_down_write+0x10/0x10 [ 13.296534][ C0] ? simple_recursive_removal+0x3a/0x860 [ 13.296541][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.296549][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.296558][ C0] simple_recursive_removal+0x166/0x860 [ 13.296565][ C0] ? __pfx_remove_one+0x10/0x10 [ 13.296572][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.296581][ C0] debugfs_remove+0x44/0x70 [ 13.296587][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.296595][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.296601][ C0] ? __sk_destruct+0x383/0x780 [ 13.296609][ C0] ? rcu_do_batch+0x34f/0xf20 [ 13.296617][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.296622][ C0] ? smpboot_thread_fn+0x307/0x960 [ 13.296629][ C0] ? kthread+0x37b/0x600 [ 13.296636][ C0] ? ret_from_fork+0x31/0x70 [ 13.296642][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 13.296648][ C0] ? migrate_enable+0x1f2/0x270 [ 13.296654][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 13.296665][ C0] __put_net+0x19/0x60 [ 13.296670][ C0] __sk_destruct+0x58a/0x780 [ 13.296678][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.296683][ C0] rcu_do_batch+0x34f/0xf20 [ 13.296693][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.296702][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.296707][ C0] ? note_gp_changes+0x182/0x1e0 [ 13.296711][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.296722][ C0] rcu_core+0x2bb/0x500 [ 13.296729][ C0] handle_softirqs+0x218/0x620 [ 13.296736][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.296743][ C0] run_ksoftirqd+0x3f/0x70 [ 13.296748][ C0] smpboot_thread_fn+0x307/0x960 [ 13.296754][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.296761][ C0] kthread+0x37b/0x600 [ 13.296768][ C0] ? __pfx_kthread+0x10/0x10 [ 13.296773][ C0] ? ret_from_fork+0x1b/0x70 [ 13.296777][ C0] ? __lock_release+0x5d/0x170 [ 13.296784][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.296789][ C0] ? __pfx_kthread+0x10/0x10 [ 13.296796][ C0] ret_from_fork+0x31/0x70 [ 13.296801][ C0] ? __pfx_kthread+0x10/0x10 [ 13.296807][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.296821][ C0]