[ 15.591799][ C2] [ 15.592030][ C2] ================================ [ 15.592204][ C2] WARNING: inconsistent lock state [ 15.592381][ C2] 6.15.0-virtme #1 Not tainted [ 15.592554][ C2] -------------------------------- [ 15.592728][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.592942][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.593156][ C2] ffffffff9d3c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.593468][ C2] {SOFTIRQ-ON-W} state was registered at: [ 15.593637][ C2] __lock_acquire+0x20b/0x7e0 [ 15.593812][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.593993][ C2] _raw_spin_lock+0x33/0x40 [ 15.594170][ C2] simple_pin_fs+0x24/0x150 [ 15.594342][ C2] start_creating.part.0+0x52/0x310 [ 15.594514][ C2] debugfs_create_dir+0x6a/0x540 [ 15.594685][ C2] component_debug_init+0x17/0x30 [ 15.594860][ C2] do_one_initcall+0x8f/0x1e0 [ 15.595033][ C2] do_initcalls+0x176/0x280 [ 15.595206][ C2] kernel_init_freeable+0x22d/0x300 [ 15.595382][ C2] kernel_init+0x20/0x200 [ 15.595555][ C2] ret_from_fork+0x240/0x320 [ 15.595727][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.595901][ C2] irq event stamp: 198652 [ 15.596032][ C2] hardirqs last enabled at (198652): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.596370][ C2] hardirqs last disabled at (198651): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.596709][ C2] softirqs last enabled at (197594): [] handle_softirqs+0x358/0x620 [ 15.597007][ C2] softirqs last disabled at (197597): [] run_ksoftirqd+0x3f/0x70 [ 15.597307][ C2] [ 15.597307][ C2] other info that might help us debug this: [ 15.597561][ C2] Possible unsafe locking scenario: [ 15.597561][ C2] [ 15.597808][ C2] CPU0 [ 15.597937][ C2] ---- [ 15.598070][ C2] lock(pin_fs_lock); [ 15.598202][ C2] [ 15.598334][ C2] lock(pin_fs_lock); [ 15.598466][ C2] [ 15.598466][ C2] *** DEADLOCK *** [ 15.598466][ C2] [ 15.598720][ C2] 1 lock held by ksoftirqd/2/27: [ 15.598896][ C2] #0: ffffffff9d1774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.599211][ C2] [ 15.599211][ C2] stack backtrace: [ 15.599426][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.599430][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.599432][ C2] Call Trace: [ 15.599434][ C2] [ 15.599437][ C2] dump_stack_lvl+0x82/0xd0 [ 15.599443][ C2] print_usage_bug.part.0+0x25f/0x360 [ 15.599447][ C2] mark_lock_irq+0x343/0x400 [ 15.599451][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.599456][ C2] ? save_trace+0x52/0x170 [ 15.599463][ C2] mark_lock+0x174/0x2f0 [ 15.599466][ C2] mark_usage+0x46/0x150 [ 15.599469][ C2] __lock_acquire+0x20b/0x7e0 [ 15.599473][ C2] ? __lock_acquire+0x44d/0x7e0 [ 15.599477][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.599480][ C2] ? simple_pin_fs+0x24/0x150 [ 15.599484][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.599488][ C2] ? lock_acquire+0x10c/0x170 [ 15.599491][ C2] ? simple_pin_fs+0x24/0x150 [ 15.599495][ C2] _raw_spin_lock+0x33/0x40 [ 15.599498][ C2] ? simple_pin_fs+0x24/0x150 [ 15.599502][ C2] simple_pin_fs+0x24/0x150 [ 15.599506][ C2] debugfs_remove+0x35/0x70 [ 15.599509][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.599515][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.599518][ C2] ? __sk_destruct+0x383/0x780 [ 15.599524][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.599527][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.599530][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 15.599535][ C2] ? kthread+0x37e/0x600 [ 15.599538][ C2] ? ret_from_fork+0x240/0x320 [ 15.599540][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 15.599544][ C2] ? migrate_enable+0x1f2/0x270 [ 15.599548][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 15.599554][ C2] __put_net+0x19/0x60 [ 15.599557][ C2] __sk_destruct+0x58a/0x780 [ 15.599562][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.599564][ C2] rcu_do_batch+0x34c/0xf20 [ 15.599569][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.599572][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.599575][ C2] ? note_gp_changes+0x182/0x1e0 [ 15.599578][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.599582][ C2] rcu_core+0x2bb/0x500 [ 15.599586][ C2] handle_softirqs+0x218/0x620 [ 15.599590][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.599594][ C2] run_ksoftirqd+0x3f/0x70 [ 15.599597][ C2] smpboot_thread_fn+0x30a/0x960 [ 15.599600][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.599604][ C2] kthread+0x37e/0x600 [ 15.599607][ C2] ? __pfx_kthread+0x10/0x10 [ 15.599609][ C2] ? ret_from_fork+0x1b/0x320 [ 15.599612][ C2] ? __lock_release+0x5d/0x170 [ 15.599615][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.599618][ C2] ? __pfx_kthread+0x10/0x10 [ 15.599621][ C2] ret_from_fork+0x240/0x320 [ 15.599623][ C2] ? __pfx_kthread+0x10/0x10 [ 15.599626][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.599633][ C2] [ 15.609263][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.609558][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 15.609843][ C2] preempt_count: 100, expected: 0 [ 15.610016][ C2] RCU nest depth: 0, expected: 0 [ 15.610187][ C2] INFO: lockdep is turned off. [ 15.610364][ C2] Preemption disabled at: [ 15.610366][ C2] [] handle_softirqs+0xe5/0x620 [ 15.610719][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.610723][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.610725][ C2] Call Trace: [ 15.610727][ C2] [ 15.610729][ C2] dump_stack_lvl+0xb0/0xd0 [ 15.610735][ C2] __might_resched+0x360/0x5a0 [ 15.610742][ C2] down_write+0x72/0x210 [ 15.610747][ C2] ? __pfx_down_write+0x10/0x10 [ 15.610749][ C2] ? simple_recursive_removal+0x33/0x610 [ 15.610754][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.610759][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.610765][ C2] simple_recursive_removal+0x6a/0x610 [ 15.610768][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.610771][ C2] ? __pfx_remove_one+0x10/0x10 [ 15.610776][ C2] debugfs_remove+0x44/0x70 [ 15.610779][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.610785][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.610788][ C2] ? __sk_destruct+0x383/0x780 [ 15.610794][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.610797][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.610800][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 15.610804][ C2] ? kthread+0x37e/0x600 [ 15.610807][ C2] ? ret_from_fork+0x240/0x320 [ 15.610811][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 15.610817][ C2] ? migrate_enable+0x1f2/0x270 [ 15.610821][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 15.610826][ C2] __put_net+0x19/0x60 [ 15.610830][ C2] __sk_destruct+0x58a/0x780 [ 15.610834][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.610837][ C2] rcu_do_batch+0x34c/0xf20 [ 15.610841][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.610845][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.610848][ C2] ? note_gp_changes+0x182/0x1e0 [ 15.610851][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.610855][ C2] rcu_core+0x2bb/0x500 [ 15.610859][ C2] handle_softirqs+0x218/0x620 [ 15.610864][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.610868][ C2] run_ksoftirqd+0x3f/0x70 [ 15.610870][ C2] smpboot_thread_fn+0x30a/0x960 [ 15.610874][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.610878][ C2] kthread+0x37e/0x600 [ 15.610881][ C2] ? __pfx_kthread+0x10/0x10 [ 15.610883][ C2] ? ret_from_fork+0x1b/0x320 [ 15.610886][ C2] ? __lock_release+0x5d/0x170 [ 15.610889][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.610892][ C2] ? __pfx_kthread+0x10/0x10 [ 15.610895][ C2] ret_from_fork+0x240/0x320 [ 15.610898][ C2] ? __pfx_kthread+0x10/0x10 [ 15.610901][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.610908][ C2] [ 17.919843][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.920187][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 17.920493][ C3] preempt_count: 101, expected: 0 [ 17.920679][ C3] RCU nest depth: 0, expected: 0 [ 17.920852][ C3] INFO: lockdep is turned off. [ 17.921023][ C3] Preemption disabled at: [ 17.921025][ C3] [<0000000000000000>] 0x0 [ 17.921331][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 17.921337][ C3] Tainted: [W]=WARN [ 17.921338][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.921340][ C3] Call Trace: [ 17.921342][ C3] [ 17.921344][ C3] dump_stack_lvl+0xb0/0xd0 [ 17.921355][ C3] __might_resched+0x360/0x5a0 [ 17.921363][ C3] down_write+0x72/0x210 [ 17.921367][ C3] ? __pfx_down_write+0x10/0x10 [ 17.921370][ C3] ? simple_recursive_removal+0x33/0x610 [ 17.921374][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.921379][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.921385][ C3] simple_recursive_removal+0x6a/0x610 [ 17.921388][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.921391][ C3] ? __pfx_remove_one+0x10/0x10 [ 17.921396][ C3] debugfs_remove+0x44/0x70 [ 17.921399][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 17.921406][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.921409][ C3] ? __sk_destruct+0x383/0x780 [ 17.921415][ C3] ? rcu_do_batch+0x34c/0xf20 [ 17.921418][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.921421][ C3] ? irq_exit_rcu+0xe/0x30 [ 17.921426][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.921431][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.921435][ C3] ? pv_native_safe_halt+0xf/0x20 [ 17.921438][ C3] ? default_idle+0x9/0x10 [ 17.921441][ C3] ? default_idle_call+0x6d/0xb0 [ 17.921443][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.921448][ C3] ? do_idle+0xf6/0x160 [ 17.921450][ C3] ? cpu_startup_entry+0x54/0x60 [ 17.921452][ C3] ? start_secondary+0x213/0x2a0 [ 17.921456][ C3] ? common_startup_64+0x13e/0x148 [ 17.921461][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.921465][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.921469][ C3] __put_net+0x19/0x60 [ 17.921473][ C3] __sk_destruct+0x58a/0x780 [ 17.921477][ C3] ? rcu_do_batch+0x34a/0xf20 [ 17.921480][ C3] rcu_do_batch+0x34c/0xf20 [ 17.921484][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.921488][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.921494][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.921499][ C3] rcu_core+0x2bb/0x500 [ 17.921504][ C3] handle_softirqs+0x218/0x620 [ 17.921510][ C3] __irq_exit_rcu+0xfa/0x160 [ 17.921513][ C3] irq_exit_rcu+0xe/0x30 [ 17.921515][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.921519][ C3] [ 17.921520][ C3] [ 17.921522][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.921524][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.921529][ C3] Code: 92 b5 00 c3 cc cc cc cc 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d 83 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 17.921532][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 17.921536][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffff9c1905d9 [ 17.921538][ C3] RDX: ffffed1006c366fb RSI: ffffffff9c453b60 RDI: ffffffff9998d18f [ 17.921540][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c366fa [ 17.921541][ C3] R10: ffff8880361b37d3 R11: ffff88800519a818 R12: 0000000000000000 [ 17.921543][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 17.921547][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.921550][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.921554][ C3] default_idle+0x9/0x10 [ 17.921556][ C3] default_idle_call+0x6d/0xb0 [ 17.921559][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 17.921562][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.921566][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 17.921570][ C3] do_idle+0xf6/0x160 [ 17.921573][ C3] cpu_startup_entry+0x54/0x60 [ 17.921576][ C3] start_secondary+0x213/0x2a0 [ 17.921579][ C3] ? __pfx_start_secondary+0x10/0x10 [ 17.921583][ C3] common_startup_64+0x13e/0x148 [ 17.921590][ C3]