[ 16.063977][ C2] [ 16.064106][ C2] ================================ [ 16.064281][ C2] WARNING: inconsistent lock state [ 16.064467][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 16.064630][ C2] -------------------------------- [ 16.064799][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.065021][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.065247][ C2] ffffffff967bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.065565][ C2] {SOFTIRQ-ON-W} state was registered at: [ 16.065741][ C2] __lock_acquire+0x3eb/0x9d0 [ 16.065928][ C2] lock_acquire.part.0+0xb6/0x240 [ 16.066101][ C2] _raw_spin_lock+0x33/0x40 [ 16.066270][ C2] simple_pin_fs+0x24/0x150 [ 16.066438][ C2] start_creating.part.0+0x3f/0x2f0 [ 16.066620][ C2] debugfs_create_dir+0x6a/0x540 [ 16.066787][ C2] component_debug_init+0x17/0x30 [ 16.066960][ C2] do_one_initcall+0x8c/0x1e0 [ 16.067133][ C2] do_initcalls+0x176/0x280 [ 16.067300][ C2] kernel_init_freeable+0x22d/0x300 [ 16.067464][ C2] kernel_init+0x20/0x200 [ 16.067637][ C2] ret_from_fork+0x31/0x70 [ 16.067802][ C2] ret_from_fork_asm+0x1a/0x30 [ 16.067963][ C2] irq event stamp: 216620 [ 16.068087][ C2] hardirqs last enabled at (216620): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.068414][ C2] hardirqs last disabled at (216619): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.068743][ C2] softirqs last enabled at (216102): [] handle_softirqs+0x358/0x620 [ 16.069027][ C2] softirqs last disabled at (216113): [] run_ksoftirqd+0x3f/0x70 [ 16.069309][ C2] [ 16.069309][ C2] other info that might help us debug this: [ 16.069565][ C2] Possible unsafe locking scenario: [ 16.069565][ C2] [ 16.069820][ C2] CPU0 [ 16.069943][ C2] ---- [ 16.070064][ C2] lock(pin_fs_lock); [ 16.070191][ C2] [ 16.070316][ C2] lock(pin_fs_lock); [ 16.070442][ C2] [ 16.070442][ C2] *** DEADLOCK *** [ 16.070442][ C2] [ 16.070688][ C2] 1 lock held by ksoftirqd/2/27: [ 16.070852][ C2] #0: ffffffff96574480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.071152][ C2] [ 16.071152][ C2] stack backtrace: [ 16.071368][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.071373][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.071375][ C2] Call Trace: [ 16.071377][ C2] [ 16.071379][ C2] dump_stack_lvl+0x82/0xd0 [ 16.071384][ C2] print_usage_bug.part.0+0x25f/0x360 [ 16.071390][ C2] mark_lock_irq+0x343/0x400 [ 16.071395][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 16.071401][ C2] ? save_trace+0x52/0x170 [ 16.071405][ C2] mark_lock+0x174/0x2f0 [ 16.071410][ C2] mark_usage+0x46/0x150 [ 16.071413][ C2] __lock_acquire+0x3eb/0x9d0 [ 16.071418][ C2] lock_acquire.part.0+0xb6/0x240 [ 16.071422][ C2] ? simple_pin_fs+0x24/0x150 [ 16.071426][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.071432][ C2] ? lock_acquire+0x10c/0x170 [ 16.071435][ C2] ? simple_pin_fs+0x24/0x150 [ 16.071439][ C2] _raw_spin_lock+0x33/0x40 [ 16.071442][ C2] ? simple_pin_fs+0x24/0x150 [ 16.071446][ C2] simple_pin_fs+0x24/0x150 [ 16.071450][ C2] debugfs_remove+0x35/0x70 [ 16.071453][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.071458][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.071461][ C2] ? __sk_destruct+0x383/0x780 [ 16.071465][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.071468][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.071471][ C2] ? smpboot_thread_fn+0x307/0x960 [ 16.071474][ C2] ? kthread+0x37b/0x600 [ 16.071478][ C2] ? ret_from_fork+0x31/0x70 [ 16.071481][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 16.071484][ C2] ? migrate_enable+0x1f2/0x270 [ 16.071489][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 16.071495][ C2] __put_net+0x19/0x60 [ 16.071498][ C2] __sk_destruct+0x58a/0x780 [ 16.071502][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.071505][ C2] rcu_do_batch+0x34c/0xf20 [ 16.071510][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.071514][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.071517][ C2] ? note_gp_changes+0x182/0x1e0 [ 16.071521][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.071527][ C2] rcu_core+0x2bb/0x500 [ 16.071530][ C2] handle_softirqs+0x218/0x620 [ 16.071533][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 16.071536][ C2] run_ksoftirqd+0x3f/0x70 [ 16.071538][ C2] smpboot_thread_fn+0x307/0x960 [ 16.071542][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.071545][ C2] kthread+0x37b/0x600 [ 16.071548][ C2] ? __pfx_kthread+0x10/0x10 [ 16.071551][ C2] ? ret_from_fork+0x1b/0x70 [ 16.071554][ C2] ? __lock_release+0x5d/0x170 [ 16.071558][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.071561][ C2] ? __pfx_kthread+0x10/0x10 [ 16.071565][ C2] ret_from_fork+0x31/0x70 [ 16.071568][ C2] ? __pfx_kthread+0x10/0x10 [ 16.071571][ C2] ret_from_fork_asm+0x1a/0x30 [ 16.071578][ C2] [ 16.081288][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.081608][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 16.081911][ C2] preempt_count: 100, expected: 0 [ 16.082079][ C2] RCU nest depth: 0, expected: 0 [ 16.082250][ C2] INFO: lockdep is turned off. [ 16.082431][ C2] Preemption disabled at: [ 16.082433][ C2] [] handle_softirqs+0xe5/0x620 [ 16.082786][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.082791][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.082793][ C2] Call Trace: [ 16.082795][ C2] [ 16.082798][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.082804][ C2] __might_resched+0x360/0x5a0 [ 16.082810][ C2] down_write+0x72/0x210 [ 16.082813][ C2] ? __pfx_down_write+0x10/0x10 [ 16.082816][ C2] ? simple_recursive_removal+0x3a/0x860 [ 16.082820][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.082826][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.082830][ C2] simple_recursive_removal+0x166/0x860 [ 16.082833][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.082837][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.082841][ C2] debugfs_remove+0x44/0x70 [ 16.082844][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.082849][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.082852][ C2] ? __sk_destruct+0x383/0x780 [ 16.082857][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.082861][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.082864][ C2] ? smpboot_thread_fn+0x307/0x960 [ 16.082867][ C2] ? kthread+0x37b/0x600 [ 16.082871][ C2] ? ret_from_fork+0x31/0x70 [ 16.082875][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 16.082880][ C2] ? migrate_enable+0x1f2/0x270 [ 16.082885][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 16.082890][ C2] __put_net+0x19/0x60 [ 16.082894][ C2] __sk_destruct+0x58a/0x780 [ 16.082897][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.082900][ C2] rcu_do_batch+0x34c/0xf20 [ 16.082905][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.082909][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.082913][ C2] ? note_gp_changes+0x182/0x1e0 [ 16.082916][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.082922][ C2] rcu_core+0x2bb/0x500 [ 16.082925][ C2] handle_softirqs+0x218/0x620 [ 16.082929][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 16.082932][ C2] run_ksoftirqd+0x3f/0x70 [ 16.082934][ C2] smpboot_thread_fn+0x307/0x960 [ 16.082937][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.082941][ C2] kthread+0x37b/0x600 [ 16.082944][ C2] ? __pfx_kthread+0x10/0x10 [ 16.082947][ C2] ? ret_from_fork+0x1b/0x70 [ 16.082950][ C2] ? __lock_release+0x5d/0x170 [ 16.082955][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.082959][ C2] ? __pfx_kthread+0x10/0x10 [ 16.082962][ C2] ret_from_fork+0x31/0x70 [ 16.082965][ C2] ? __pfx_kthread+0x10/0x10 [ 16.082968][ C2] ret_from_fork_asm+0x1a/0x30 [ 16.082975][ C2] [ 18.381111][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.381672][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 18.382108][ C3] preempt_count: 100, expected: 0 [ 18.382356][ C3] RCU nest depth: 0, expected: 0 [ 18.382611][ C3] INFO: lockdep is turned off. [ 18.382852][ C3] Preemption disabled at: [ 18.382855][ C3] [] handle_softirqs+0xe5/0x620 [ 18.383257][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 18.383266][ C3] Tainted: [W]=WARN [ 18.383268][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.383271][ C3] Call Trace: [ 18.383274][ C3] [ 18.383277][ C3] dump_stack_lvl+0xb0/0xd0 [ 18.383287][ C3] __might_resched+0x360/0x5a0 [ 18.383296][ C3] down_write+0x72/0x210 [ 18.383302][ C3] ? __pfx_down_write+0x10/0x10 [ 18.383306][ C3] ? simple_recursive_removal+0x3a/0x860 [ 18.383313][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.383321][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 18.383328][ C3] simple_recursive_removal+0x166/0x860 [ 18.383332][ C3] ? __pfx_remove_one+0x10/0x10 [ 18.383338][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 18.383345][ C3] debugfs_remove+0x44/0x70 [ 18.383350][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 18.383356][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.383361][ C3] ? __sk_destruct+0x383/0x780 [ 18.383368][ C3] ? rcu_do_batch+0x34c/0xf20 [ 18.383374][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.383379][ C3] ? smpboot_thread_fn+0x307/0x960 [ 18.383384][ C3] ? kthread+0x37b/0x600 [ 18.383391][ C3] ? ret_from_fork+0x31/0x70 [ 18.383398][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 18.383407][ C3] ? migrate_enable+0x1f2/0x270 [ 18.383414][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 18.383421][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 18.383426][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.383433][ C3] __put_net+0x19/0x60 [ 18.383437][ C3] __sk_destruct+0x58a/0x780 [ 18.383443][ C3] ? rcu_do_batch+0x34a/0xf20 [ 18.383448][ C3] rcu_do_batch+0x34c/0xf20 [ 18.383457][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.383464][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.383469][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 18.383479][ C3] rcu_core+0x2bb/0x500 [ 18.383484][ C3] handle_softirqs+0x218/0x620 [ 18.383489][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 18.383494][ C3] run_ksoftirqd+0x3f/0x70 [ 18.383497][ C3] smpboot_thread_fn+0x307/0x960 [ 18.383502][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 18.383507][ C3] kthread+0x37b/0x600 [ 18.383511][ C3] ? __pfx_kthread+0x10/0x10 [ 18.383515][ C3] ? ret_from_fork+0x1b/0x70 [ 18.383520][ C3] ? __lock_release+0x5d/0x170 [ 18.383527][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.383532][ C3] ? __pfx_kthread+0x10/0x10 [ 18.383538][ C3] ret_from_fork+0x31/0x70 [ 18.383543][ C3] ? __pfx_kthread+0x10/0x10 [ 18.383548][ C3] ret_from_fork_asm+0x1a/0x30 [ 18.383559][ C3]