[ 20.080132][ C2] [ 20.080355][ C2] ================================ [ 20.080653][ C2] WARNING: inconsistent lock state [ 20.080951][ C2] 6.15.0-virtme #1 Not tainted [ 20.081249][ C2] -------------------------------- [ 20.081543][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 20.081909][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 20.082280][ C2] ffffffff951c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 20.082802][ C2] {SOFTIRQ-ON-W} state was registered at: [ 20.083101][ C2] __lock_acquire+0x20b/0x7e0 [ 20.083398][ C2] lock_acquire.part.0+0xb6/0x240 [ 20.083683][ C2] _raw_spin_lock+0x33/0x40 [ 20.083985][ C2] simple_pin_fs+0x24/0x150 [ 20.084283][ C2] start_creating.part.0+0x52/0x310 [ 20.084611][ C2] debugfs_create_dir+0x6a/0x540 [ 20.084919][ C2] component_debug_init+0x17/0x30 [ 20.085234][ C2] do_one_initcall+0x8f/0x1e0 [ 20.085544][ C2] do_initcalls+0x176/0x280 [ 20.085850][ C2] kernel_init_freeable+0x22d/0x300 [ 20.086155][ C2] kernel_init+0x20/0x200 [ 20.086443][ C2] ret_from_fork+0x240/0x320 [ 20.086743][ C2] ret_from_fork_asm+0x1a/0x30 [ 20.087049][ C2] irq event stamp: 209058 [ 20.087287][ C2] hardirqs last enabled at (209058): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.087906][ C2] hardirqs last disabled at (209057): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 20.088570][ C2] softirqs last enabled at (208490): [] handle_softirqs+0x358/0x620 [ 20.089060][ C2] softirqs last disabled at (208503): [] run_ksoftirqd+0x3f/0x70 [ 20.089610][ C2] [ 20.089610][ C2] other info that might help us debug this: [ 20.090055][ C2] Possible unsafe locking scenario: [ 20.090055][ C2] [ 20.090474][ C2] CPU0 [ 20.090702][ C2] ---- [ 20.090932][ C2] lock(pin_fs_lock); [ 20.091151][ C2] [ 20.091384][ C2] lock(pin_fs_lock); [ 20.091579][ C2] [ 20.091579][ C2] *** DEADLOCK *** [ 20.091579][ C2] [ 20.092073][ C2] 1 lock held by ksoftirqd/2/27: [ 20.092367][ C2] #0: ffffffff94f774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 20.092877][ C2] [ 20.092877][ C2] stack backtrace: [ 20.093241][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 20.093249][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.093252][ C2] Call Trace: [ 20.093255][ C2] [ 20.093261][ C2] dump_stack_lvl+0x82/0xd0 [ 20.093271][ C2] print_usage_bug.part.0+0x25f/0x360 [ 20.093280][ C2] mark_lock_irq+0x343/0x400 [ 20.093288][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 20.093296][ C2] ? save_trace+0x52/0x170 [ 20.093306][ C2] mark_lock+0x174/0x2f0 [ 20.093312][ C2] mark_usage+0x46/0x150 [ 20.093317][ C2] __lock_acquire+0x20b/0x7e0 [ 20.093323][ C2] ? __lock_acquire+0x44d/0x7e0 [ 20.093331][ C2] lock_acquire.part.0+0xb6/0x240 [ 20.093336][ C2] ? simple_pin_fs+0x24/0x150 [ 20.093344][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.093351][ C2] ? lock_acquire+0x10c/0x170 [ 20.093355][ C2] ? simple_pin_fs+0x24/0x150 [ 20.093363][ C2] _raw_spin_lock+0x33/0x40 [ 20.093370][ C2] ? simple_pin_fs+0x24/0x150 [ 20.093375][ C2] simple_pin_fs+0x24/0x150 [ 20.093382][ C2] debugfs_remove+0x35/0x70 [ 20.093389][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 20.093398][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.093403][ C2] ? __sk_destruct+0x383/0x780 [ 20.093412][ C2] ? rcu_do_batch+0x34c/0xf20 [ 20.093417][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.093422][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 20.093429][ C2] ? kthread+0x37e/0x600 [ 20.093433][ C2] ? ret_from_fork+0x240/0x320 [ 20.093439][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 20.093445][ C2] ? migrate_enable+0x1f2/0x270 [ 20.093453][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 20.093462][ C2] __put_net+0x19/0x60 [ 20.093468][ C2] __sk_destruct+0x58a/0x780 [ 20.093475][ C2] ? rcu_do_batch+0x34a/0xf20 [ 20.093479][ C2] rcu_do_batch+0x34c/0xf20 [ 20.093488][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.093495][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.093500][ C2] ? note_gp_changes+0x182/0x1e0 [ 20.093505][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.093513][ C2] rcu_core+0x2bb/0x500 [ 20.093520][ C2] handle_softirqs+0x218/0x620 [ 20.093528][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 20.093534][ C2] run_ksoftirqd+0x3f/0x70 [ 20.093539][ C2] smpboot_thread_fn+0x30a/0x960 [ 20.093545][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 20.093552][ C2] kthread+0x37e/0x600 [ 20.093558][ C2] ? __pfx_kthread+0x10/0x10 [ 20.093562][ C2] ? ret_from_fork+0x1b/0x320 [ 20.093566][ C2] ? __lock_release+0x5d/0x170 [ 20.093572][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.093578][ C2] ? __pfx_kthread+0x10/0x10 [ 20.093582][ C2] ret_from_fork+0x240/0x320 [ 20.093586][ C2] ? __pfx_kthread+0x10/0x10 [ 20.093590][ C2] ret_from_fork_asm+0x1a/0x30 [ 20.093603][ C2] [ 20.111343][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 20.111903][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 20.112458][ C2] preempt_count: 100, expected: 0 [ 20.112778][ C2] RCU nest depth: 0, expected: 0 [ 20.113095][ C2] INFO: lockdep is turned off. [ 20.113428][ C2] Preemption disabled at: [ 20.113432][ C2] [] handle_softirqs+0xe5/0x620 [ 20.114058][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 20.114065][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.114069][ C2] Call Trace: [ 20.114072][ C2] [ 20.114077][ C2] dump_stack_lvl+0xb0/0xd0 [ 20.114087][ C2] __might_resched+0x360/0x5a0 [ 20.114097][ C2] down_write+0x72/0x210 [ 20.114103][ C2] ? __pfx_down_write+0x10/0x10 [ 20.114108][ C2] ? simple_recursive_removal+0x33/0x610 [ 20.114114][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.114120][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 20.114129][ C2] simple_recursive_removal+0x6a/0x610 [ 20.114134][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 20.114139][ C2] ? __pfx_remove_one+0x10/0x10 [ 20.114150][ C2] debugfs_remove+0x44/0x70 [ 20.114156][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 20.114164][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.114169][ C2] ? __sk_destruct+0x383/0x780 [ 20.114177][ C2] ? rcu_do_batch+0x34c/0xf20 [ 20.114183][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.114188][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 20.114193][ C2] ? kthread+0x37e/0x600 [ 20.114197][ C2] ? ret_from_fork+0x240/0x320 [ 20.114203][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 20.114210][ C2] ? migrate_enable+0x1f2/0x270 [ 20.114216][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 20.114227][ C2] __put_net+0x19/0x60 [ 20.114233][ C2] __sk_destruct+0x58a/0x780 [ 20.114240][ C2] ? rcu_do_batch+0x34a/0xf20 [ 20.114244][ C2] rcu_do_batch+0x34c/0xf20 [ 20.114253][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.114259][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.114264][ C2] ? note_gp_changes+0x182/0x1e0 [ 20.114269][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.114276][ C2] rcu_core+0x2bb/0x500 [ 20.114283][ C2] handle_softirqs+0x218/0x620 [ 20.114291][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 20.114298][ C2] run_ksoftirqd+0x3f/0x70 [ 20.114303][ C2] smpboot_thread_fn+0x30a/0x960 [ 20.114309][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 20.114316][ C2] kthread+0x37e/0x600 [ 20.114321][ C2] ? __pfx_kthread+0x10/0x10 [ 20.114325][ C2] ? ret_from_fork+0x1b/0x320 [ 20.114330][ C2] ? __lock_release+0x5d/0x170 [ 20.114336][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.114342][ C2] ? __pfx_kthread+0x10/0x10 [ 20.114359][ C2] ret_from_fork+0x240/0x320 [ 20.114363][ C2] ? __pfx_kthread+0x10/0x10 [ 20.114368][ C2] ret_from_fork_asm+0x1a/0x30 [ 20.114380][ C2] [ 24.224458][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 24.224815][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 24.225110][ C2] preempt_count: 100, expected: 0 [ 24.225296][ C2] RCU nest depth: 0, expected: 0 [ 24.225470][ C2] INFO: lockdep is turned off. [ 24.225649][ C2] Preemption disabled at: [ 24.225651][ C2] [] handle_softirqs+0xe5/0x620 [ 24.226014][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 24.226020][ C2] Tainted: [W]=WARN [ 24.226022][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 24.226024][ C2] Call Trace: [ 24.226026][ C2] [ 24.226028][ C2] dump_stack_lvl+0xb0/0xd0 [ 24.226035][ C2] __might_resched+0x360/0x5a0 [ 24.226042][ C2] down_write+0x72/0x210 [ 24.226047][ C2] ? __pfx_down_write+0x10/0x10 [ 24.226050][ C2] ? simple_recursive_removal+0x33/0x610 [ 24.226055][ C2] ? rcu_is_watching+0x12/0xc0 [ 24.226060][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 24.226065][ C2] simple_recursive_removal+0x6a/0x610 [ 24.226068][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 24.226071][ C2] ? __pfx_remove_one+0x10/0x10 [ 24.226077][ C2] debugfs_remove+0x44/0x70 [ 24.226081][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 24.226086][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 24.226089][ C2] ? __sk_destruct+0x383/0x780 [ 24.226095][ C2] ? rcu_do_batch+0x34c/0xf20 [ 24.226098][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 24.226102][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 24.226106][ C2] ? kthread+0x37e/0x600 [ 24.226109][ C2] ? ret_from_fork+0x240/0x320 [ 24.226113][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 24.226118][ C2] ? migrate_enable+0x1f2/0x270 [ 24.226122][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 24.226125][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 24.226129][ C2] ? rcu_is_watching+0x12/0xc0 [ 24.226134][ C2] __put_net+0x19/0x60 [ 24.226138][ C2] __sk_destruct+0x58a/0x780 [ 24.226145][ C2] ? rcu_do_batch+0x34a/0xf20 [ 24.226148][ C2] rcu_do_batch+0x34c/0xf20 [ 24.226153][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 24.226156][ C2] ? rcu_is_watching+0x12/0xc0 [ 24.226159][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 24.226166][ C2] rcu_core+0x2bb/0x500 [ 24.226170][ C2] handle_softirqs+0x218/0x620 [ 24.226174][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 24.226178][ C2] run_ksoftirqd+0x3f/0x70 [ 24.226181][ C2] smpboot_thread_fn+0x30a/0x960 [ 24.226185][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 24.226189][ C2] kthread+0x37e/0x600 [ 24.226192][ C2] ? __pfx_kthread+0x10/0x10 [ 24.226194][ C2] ? ret_from_fork+0x1b/0x320 [ 24.226196][ C2] ? __lock_release+0x5d/0x170 [ 24.226200][ C2] ? rcu_is_watching+0x12/0xc0 [ 24.226203][ C2] ? __pfx_kthread+0x10/0x10 [ 24.226206][ C2] ret_from_fork+0x240/0x320 [ 24.226209][ C2] ? __pfx_kthread+0x10/0x10 [ 24.226211][ C2] ret_from_fork_asm+0x1a/0x30 [ 24.226218][ C2]