[ 16.057592][ C2] [ 16.057748][ C2] ================================ [ 16.057956][ C2] WARNING: inconsistent lock state [ 16.058163][ C2] 6.15.0-virtme #1 Not tainted [ 16.058369][ C2] -------------------------------- [ 16.058585][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.058836][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.059127][ C2] ffffffff9b7c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.059511][ C2] {SOFTIRQ-ON-W} state was registered at: [ 16.059730][ C2] __lock_acquire+0x20b/0x7e0 [ 16.059977][ C2] lock_acquire.part.0+0xb6/0x240 [ 16.060183][ C2] _raw_spin_lock+0x33/0x40 [ 16.060394][ C2] simple_pin_fs+0x24/0x150 [ 16.060668][ C2] start_creating.part.0+0x52/0x310 [ 16.060879][ C2] debugfs_create_dir+0x6a/0x540 [ 16.061082][ C2] component_debug_init+0x17/0x30 [ 16.061337][ C2] do_one_initcall+0x8f/0x1e0 [ 16.061596][ C2] do_initcalls+0x176/0x280 [ 16.061808][ C2] kernel_init_freeable+0x22d/0x300 [ 16.062045][ C2] kernel_init+0x20/0x200 [ 16.062288][ C2] ret_from_fork+0x240/0x320 [ 16.062514][ C2] ret_from_fork_asm+0x1a/0x30 [ 16.062721][ C2] irq event stamp: 280376 [ 16.062906][ C2] hardirqs last enabled at (280376): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.063375][ C2] hardirqs last disabled at (280375): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.063930][ C2] softirqs last enabled at (278310): [] handle_softirqs+0x358/0x620 [ 16.064480][ C2] softirqs last disabled at (278317): [] __irq_exit_rcu+0xfa/0x160 [ 16.065059][ C2] [ 16.065059][ C2] other info that might help us debug this: [ 16.065543][ C2] Possible unsafe locking scenario: [ 16.065543][ C2] [ 16.066032][ C2] CPU0 [ 16.066282][ C2] ---- [ 16.066515][ C2] lock(pin_fs_lock); [ 16.066761][ C2] [ 16.067009][ C2] lock(pin_fs_lock); [ 16.067261][ C2] [ 16.067261][ C2] *** DEADLOCK *** [ 16.067261][ C2] [ 16.067746][ C2] 1 lock held by swapper/2/0: [ 16.068078][ C2] #0: ffffffff9b5774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.068670][ C2] [ 16.068670][ C2] stack backtrace: [ 16.069071][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.069078][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.069081][ C2] Call Trace: [ 16.069083][ C2] [ 16.069087][ C2] dump_stack_lvl+0x82/0xd0 [ 16.069098][ C2] print_usage_bug.part.0+0x25f/0x360 [ 16.069106][ C2] mark_lock_irq+0x343/0x400 [ 16.069114][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 16.069121][ C2] ? save_trace+0x52/0x170 [ 16.069132][ C2] mark_lock+0x174/0x2f0 [ 16.069138][ C2] mark_usage+0x46/0x150 [ 16.069144][ C2] __lock_acquire+0x20b/0x7e0 [ 16.069150][ C2] ? __lock_acquire+0x44d/0x7e0 [ 16.069157][ C2] lock_acquire.part.0+0xb6/0x240 [ 16.069163][ C2] ? simple_pin_fs+0x24/0x150 [ 16.069171][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.069178][ C2] ? lock_acquire+0x10c/0x170 [ 16.069183][ C2] ? simple_pin_fs+0x24/0x150 [ 16.069191][ C2] _raw_spin_lock+0x33/0x40 [ 16.069197][ C2] ? simple_pin_fs+0x24/0x150 [ 16.069202][ C2] simple_pin_fs+0x24/0x150 [ 16.069209][ C2] debugfs_remove+0x35/0x70 [ 16.069215][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.069227][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.069233][ C2] ? __sk_destruct+0x383/0x780 [ 16.069242][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.069247][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.069252][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.069257][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.069265][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.069271][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.069275][ C2] ? default_idle+0x9/0x10 [ 16.069280][ C2] ? default_idle_call+0x6d/0xb0 [ 16.069284][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.069291][ C2] ? do_idle+0xf6/0x160 [ 16.069295][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.069298][ C2] ? start_secondary+0x213/0x2a0 [ 16.069304][ C2] ? common_startup_64+0x13e/0x148 [ 16.069316][ C2] __put_net+0x19/0x60 [ 16.069323][ C2] __sk_destruct+0x58a/0x780 [ 16.069330][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.069335][ C2] rcu_do_batch+0x34c/0xf20 [ 16.069341][ C2] ? find_held_lock+0x2b/0x80 [ 16.069348][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.069354][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.069360][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.069366][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.069374][ C2] rcu_core+0x2bb/0x500 [ 16.069382][ C2] handle_softirqs+0x218/0x620 [ 16.069392][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.069397][ C2] irq_exit_rcu+0xe/0x30 [ 16.069402][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.069408][ C2] [ 16.069410][ C2] [ 16.069412][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.069417][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.069422][ C2] 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 [ 16.069426][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 16.069431][ C2] RAX: 0000000000043f2b RBX: 1ffff92000028fc1 RCX: ffffffff9a5905d9 [ 16.069434][ C2] RDX: 0000000000000000 RSI: ffffffff9b08f4e4 RDI: ffffffff9a853be0 [ 16.069438][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 16.069441][ C2] R10: ffff8880361337d3 R11: ffffffff9b211288 R12: 0000000000000000 [ 16.069444][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 16.069450][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.069458][ C2] default_idle+0x9/0x10 [ 16.069462][ C2] default_idle_call+0x6d/0xb0 [ 16.069467][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.069472][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.069479][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.069486][ C2] do_idle+0xf6/0x160 [ 16.069492][ C2] cpu_startup_entry+0x54/0x60 [ 16.069497][ C2] start_secondary+0x213/0x2a0 [ 16.069503][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.069512][ C2] common_startup_64+0x13e/0x148 [ 16.069525][ C2] [ 16.085944][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.086374][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 16.086712][ C2] preempt_count: 101, expected: 0 [ 16.086896][ C2] RCU nest depth: 0, expected: 0 [ 16.087082][ C2] INFO: lockdep is turned off. [ 16.087375][ C2] Preemption disabled at: [ 16.087377][ C2] [<0000000000000000>] 0x0 [ 16.087723][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.087727][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.087729][ C2] Call Trace: [ 16.087731][ C2] [ 16.087733][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.087741][ C2] __might_resched+0x360/0x5a0 [ 16.087747][ C2] down_write+0x72/0x210 [ 16.087751][ C2] ? __pfx_down_write+0x10/0x10 [ 16.087754][ C2] ? simple_recursive_removal+0x33/0x610 [ 16.087758][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.087763][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.087770][ C2] simple_recursive_removal+0x6a/0x610 [ 16.087773][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.087776][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.087781][ C2] debugfs_remove+0x44/0x70 [ 16.087785][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.087790][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.087794][ C2] ? __sk_destruct+0x383/0x780 [ 16.087799][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.087802][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.087805][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.087809][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.087814][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.087818][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.087821][ C2] ? default_idle+0x9/0x10 [ 16.087824][ C2] ? default_idle_call+0x6d/0xb0 [ 16.087827][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.087830][ C2] ? do_idle+0xf6/0x160 [ 16.087832][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.087835][ C2] ? start_secondary+0x213/0x2a0 [ 16.087838][ C2] ? common_startup_64+0x13e/0x148 [ 16.087845][ C2] __put_net+0x19/0x60 [ 16.087849][ C2] __sk_destruct+0x58a/0x780 [ 16.087853][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.087856][ C2] rcu_do_batch+0x34c/0xf20 [ 16.087859][ C2] ? find_held_lock+0x2b/0x80 [ 16.087865][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.087868][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.087872][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.087875][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.087880][ C2] rcu_core+0x2bb/0x500 [ 16.087884][ C2] handle_softirqs+0x218/0x620 [ 16.087890][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.087893][ C2] irq_exit_rcu+0xe/0x30 [ 16.087895][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.087899][ C2] [ 16.087900][ C2] [ 16.087901][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.087904][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.087908][ C2] 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 [ 16.087911][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 16.087914][ C2] RAX: 0000000000043f2b RBX: 1ffff92000028fc1 RCX: ffffffff9a5905d9 [ 16.087916][ C2] RDX: 0000000000000000 RSI: ffffffff9b08f4e4 RDI: ffffffff9a853be0 [ 16.087918][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 16.087919][ C2] R10: ffff8880361337d3 R11: ffffffff9b211288 R12: 0000000000000000 [ 16.087921][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 16.087925][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.087930][ C2] default_idle+0x9/0x10 [ 16.087932][ C2] default_idle_call+0x6d/0xb0 [ 16.087935][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.087938][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.087942][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.087946][ C2] do_idle+0xf6/0x160 [ 16.087950][ C2] cpu_startup_entry+0x54/0x60 [ 16.087953][ C2] start_secondary+0x213/0x2a0 [ 16.087955][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.087960][ C2] common_startup_64+0x13e/0x148 [ 16.087967][ C2] [ 18.425398][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.425744][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 14, name: ksoftirqd/0 [ 18.426047][ C0] preempt_count: 100, expected: 0 [ 18.426219][ C0] RCU nest depth: 0, expected: 0 [ 18.426394][ C0] INFO: lockdep is turned off. [ 18.426579][ C0] Preemption disabled at: [ 18.426581][ C0] [] handle_softirqs+0xe5/0x620 [ 18.426943][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 18.426949][ C0] Tainted: [W]=WARN [ 18.426950][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.426952][ C0] Call Trace: [ 18.426954][ C0] [ 18.426956][ C0] dump_stack_lvl+0xb0/0xd0 [ 18.426963][ C0] __might_resched+0x360/0x5a0 [ 18.426970][ C0] down_write+0x72/0x210 [ 18.426975][ C0] ? __pfx_down_write+0x10/0x10 [ 18.426977][ C0] ? simple_recursive_removal+0x33/0x610 [ 18.426982][ C0] ? rcu_is_watching+0x12/0xc0 [ 18.426987][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 18.426994][ C0] simple_recursive_removal+0x6a/0x610 [ 18.426997][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 18.427000][ C0] ? __pfx_remove_one+0x10/0x10 [ 18.427005][ C0] debugfs_remove+0x44/0x70 [ 18.427008][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 18.427014][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.427018][ C0] ? __sk_destruct+0x383/0x780 [ 18.427024][ C0] ? rcu_do_batch+0x34c/0xf20 [ 18.427027][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.427030][ C0] ? smpboot_thread_fn+0x30a/0x960 [ 18.427034][ C0] ? kthread+0x37e/0x600 [ 18.427037][ C0] ? ret_from_fork+0x240/0x320 [ 18.427042][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 18.427047][ C0] ? migrate_enable+0x1f2/0x270 [ 18.427051][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 18.427055][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 18.427060][ C0] ? rcu_is_watching+0x12/0xc0 [ 18.427065][ C0] __put_net+0x19/0x60 [ 18.427069][ C0] __sk_destruct+0x58a/0x780 [ 18.427073][ C0] ? rcu_do_batch+0x34a/0xf20 [ 18.427075][ C0] rcu_do_batch+0x34c/0xf20 [ 18.427078][ C0] ? __schedule+0x87b/0x1b00 [ 18.427086][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.427089][ C0] ? rcu_is_watching+0x12/0xc0 [ 18.427092][ C0] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 18.427100][ C0] rcu_core+0x2bb/0x500 [ 18.427104][ C0] handle_softirqs+0x218/0x620 [ 18.427108][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 18.427112][ C0] run_ksoftirqd+0x3f/0x70 [ 18.427115][ C0] smpboot_thread_fn+0x30a/0x960 [ 18.427118][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 18.427123][ C0] kthread+0x37e/0x600 [ 18.427125][ C0] ? __pfx_kthread+0x10/0x10 [ 18.427127][ C0] ? ret_from_fork+0x1b/0x320 [ 18.427130][ C0] ? __lock_release+0x5d/0x170 [ 18.427134][ C0] ? rcu_is_watching+0x12/0xc0 [ 18.427136][ C0] ? __pfx_kthread+0x10/0x10 [ 18.427139][ C0] ret_from_fork+0x240/0x320 [ 18.427142][ C0] ? __pfx_kthread+0x10/0x10 [ 18.427144][ C0] ret_from_fork_asm+0x1a/0x30 [ 18.427152][ C0]