[ 12.493593][ C2] [ 12.493718][ C2] ================================ [ 12.493912][ C2] WARNING: inconsistent lock state [ 12.494083][ C2] 6.15.0-virtme #1 Not tainted [ 12.494256][ C2] -------------------------------- [ 12.494428][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.494638][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.494849][ C2] ffffffff881c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.495164][ C2] {SOFTIRQ-ON-W} state was registered at: [ 12.495333][ C2] __lock_acquire+0x20b/0x7e0 [ 12.495509][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.495690][ C2] _raw_spin_lock+0x33/0x40 [ 12.495869][ C2] simple_pin_fs+0x24/0x150 [ 12.496037][ C2] start_creating.part.0+0x52/0x310 [ 12.496209][ C2] debugfs_create_dir+0x6a/0x540 [ 12.496399][ C2] component_debug_init+0x17/0x30 [ 12.496569][ C2] do_one_initcall+0x8f/0x1e0 [ 12.496739][ C2] do_initcalls+0x176/0x280 [ 12.496910][ C2] kernel_init_freeable+0x22d/0x300 [ 12.497080][ C2] kernel_init+0x20/0x200 [ 12.497250][ C2] ret_from_fork+0x240/0x320 [ 12.497445][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.497619][ C2] irq event stamp: 200412 [ 12.497763][ C2] hardirqs last enabled at (200412): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.498109][ C2] hardirqs last disabled at (200411): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.498476][ C2] softirqs last enabled at (200264): [] handle_softirqs+0x358/0x620 [ 12.498779][ C2] softirqs last disabled at (200269): [] run_ksoftirqd+0x3f/0x70 [ 12.499094][ C2] [ 12.499094][ C2] other info that might help us debug this: [ 12.499344][ C2] Possible unsafe locking scenario: [ 12.499344][ C2] [ 12.499606][ C2] CPU0 [ 12.499735][ C2] ---- [ 12.499860][ C2] lock(pin_fs_lock); [ 12.499989][ C2] [ 12.500116][ C2] lock(pin_fs_lock); [ 12.500247][ C2] [ 12.500247][ C2] *** DEADLOCK *** [ 12.500247][ C2] [ 12.500496][ C2] 1 lock held by ksoftirqd/2/27: [ 12.500668][ C2] #0: ffffffff87f774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.500976][ C2] [ 12.500976][ C2] stack backtrace: [ 12.501190][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.501195][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.501197][ C2] Call Trace: [ 12.501198][ C2] [ 12.501201][ C2] dump_stack_lvl+0x82/0xd0 [ 12.501207][ C2] print_usage_bug.part.0+0x25f/0x360 [ 12.501213][ C2] mark_lock_irq+0x343/0x400 [ 12.501218][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 12.501223][ C2] ? save_trace+0x52/0x170 [ 12.501227][ C2] mark_lock+0x174/0x2f0 [ 12.501231][ C2] mark_usage+0x46/0x150 [ 12.501234][ C2] __lock_acquire+0x20b/0x7e0 [ 12.501238][ C2] ? __lock_acquire+0x44d/0x7e0 [ 12.501242][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.501245][ C2] ? simple_pin_fs+0x24/0x150 [ 12.501250][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.501255][ C2] ? lock_acquire+0x10c/0x170 [ 12.501258][ C2] ? simple_pin_fs+0x24/0x150 [ 12.501262][ C2] _raw_spin_lock+0x33/0x40 [ 12.501265][ C2] ? simple_pin_fs+0x24/0x150 [ 12.501268][ C2] simple_pin_fs+0x24/0x150 [ 12.501271][ C2] debugfs_remove+0x35/0x70 [ 12.501275][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.501280][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.501283][ C2] ? __sk_destruct+0x383/0x780 [ 12.501288][ C2] ? rcu_do_batch+0x34c/0xf20 [ 12.501291][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.501294][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 12.501297][ C2] ? kthread+0x37e/0x600 [ 12.501301][ C2] ? ret_from_fork+0x240/0x320 [ 12.501305][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 12.501309][ C2] ? migrate_enable+0x1f2/0x270 [ 12.501313][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 12.501319][ C2] __put_net+0x19/0x60 [ 12.501323][ C2] __sk_destruct+0x58a/0x780 [ 12.501327][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.501330][ C2] rcu_do_batch+0x34c/0xf20 [ 12.501335][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.501338][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.501341][ C2] ? note_gp_changes+0x182/0x1e0 [ 12.501344][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.501351][ C2] rcu_core+0x2bb/0x500 [ 12.501355][ C2] handle_softirqs+0x218/0x620 [ 12.501360][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 12.501364][ C2] run_ksoftirqd+0x3f/0x70 [ 12.501367][ C2] smpboot_thread_fn+0x30a/0x960 [ 12.501370][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 12.501373][ C2] kthread+0x37e/0x600 [ 12.501377][ C2] ? __pfx_kthread+0x10/0x10 [ 12.501379][ C2] ? ret_from_fork+0x1b/0x320 [ 12.501382][ C2] ? __lock_release+0x5d/0x170 [ 12.501386][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.501389][ C2] ? __pfx_kthread+0x10/0x10 [ 12.501392][ C2] ret_from_fork+0x240/0x320 [ 12.501395][ C2] ? __pfx_kthread+0x10/0x10 [ 12.501398][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.501404][ C2] [ 12.511180][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.511479][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 12.511764][ C2] preempt_count: 100, expected: 0 [ 12.511940][ C2] RCU nest depth: 0, expected: 0 [ 12.512108][ C2] INFO: lockdep is turned off. [ 12.512283][ C2] Preemption disabled at: [ 12.512285][ C2] [] handle_softirqs+0xe5/0x620 [ 12.512644][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.512648][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.512650][ C2] Call Trace: [ 12.512652][ C2] [ 12.512654][ C2] dump_stack_lvl+0xb0/0xd0 [ 12.512660][ C2] __might_resched+0x360/0x5a0 [ 12.512668][ C2] down_write+0x72/0x210 [ 12.512671][ C2] ? __pfx_down_write+0x10/0x10 [ 12.512674][ C2] ? simple_recursive_removal+0x33/0x610 [ 12.512679][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.512684][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.512688][ C2] simple_recursive_removal+0x6a/0x610 [ 12.512691][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.512694][ C2] ? __pfx_remove_one+0x10/0x10 [ 12.512699][ C2] debugfs_remove+0x44/0x70 [ 12.512702][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.512706][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.512709][ C2] ? __sk_destruct+0x383/0x780 [ 12.512714][ C2] ? rcu_do_batch+0x34c/0xf20 [ 12.512717][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.512720][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 12.512723][ C2] ? kthread+0x37e/0x600 [ 12.512726][ C2] ? ret_from_fork+0x240/0x320 [ 12.512731][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 12.512734][ C2] ? migrate_enable+0x1f2/0x270 [ 12.512738][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 12.512744][ C2] __put_net+0x19/0x60 [ 12.512747][ C2] __sk_destruct+0x58a/0x780 [ 12.512752][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.512754][ C2] rcu_do_batch+0x34c/0xf20 [ 12.512759][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.512763][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.512766][ C2] ? note_gp_changes+0x182/0x1e0 [ 12.512769][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.512775][ C2] rcu_core+0x2bb/0x500 [ 12.512780][ C2] handle_softirqs+0x218/0x620 [ 12.512784][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 12.512789][ C2] run_ksoftirqd+0x3f/0x70 [ 12.512792][ C2] smpboot_thread_fn+0x30a/0x960 [ 12.512794][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 12.512798][ C2] kthread+0x37e/0x600 [ 12.512801][ C2] ? __pfx_kthread+0x10/0x10 [ 12.512803][ C2] ? ret_from_fork+0x1b/0x320 [ 12.512806][ C2] ? __lock_release+0x5d/0x170 [ 12.512811][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.512814][ C2] ? __pfx_kthread+0x10/0x10 [ 12.512817][ C2] ret_from_fork+0x240/0x320 [ 12.512820][ C2] ? __pfx_kthread+0x10/0x10 [ 12.512823][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.512830][ C2]