[ 15.615228][ C1] [ 15.615362][ C1] ================================ [ 15.615546][ C1] WARNING: inconsistent lock state [ 15.615721][ C1] 6.15.0-virtme #1 Not tainted [ 15.615898][ C1] -------------------------------- [ 15.616072][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.616293][ C1] ksoftirqd/1/22 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.616513][ C1] ffffffff98dc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.616834][ C1] {SOFTIRQ-ON-W} state was registered at: [ 15.617001][ C1] __lock_acquire+0x20b/0x7e0 [ 15.617172][ C1] lock_acquire.part.0+0xb6/0x240 [ 15.617341][ C1] _raw_spin_lock+0x33/0x40 [ 15.617513][ C1] simple_pin_fs+0x24/0x150 [ 15.617680][ C1] start_creating.part.0+0x52/0x310 [ 15.617848][ C1] debugfs_create_dir+0x6a/0x540 [ 15.618016][ C1] component_debug_init+0x17/0x30 [ 15.618190][ C1] do_one_initcall+0x8f/0x1e0 [ 15.618358][ C1] do_initcalls+0x176/0x280 [ 15.618524][ C1] kernel_init_freeable+0x22d/0x300 [ 15.618693][ C1] kernel_init+0x20/0x200 [ 15.618863][ C1] ret_from_fork+0x240/0x320 [ 15.619031][ C1] ret_from_fork_asm+0x1a/0x30 [ 15.619201][ C1] irq event stamp: 328170 [ 15.619331][ C1] hardirqs last enabled at (328170): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.619664][ C1] hardirqs last disabled at (328169): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.619997][ C1] softirqs last enabled at (327982): [] handle_softirqs+0x358/0x620 [ 15.620291][ C1] softirqs last disabled at (327987): [] run_ksoftirqd+0x3f/0x70 [ 15.620607][ C1] [ 15.620607][ C1] other info that might help us debug this: [ 15.620865][ C1] Possible unsafe locking scenario: [ 15.620865][ C1] [ 15.621123][ C1] CPU0 [ 15.621253][ C1] ---- [ 15.621384][ C1] lock(pin_fs_lock); [ 15.621550][ C1] [ 15.621686][ C1] lock(pin_fs_lock); [ 15.621825][ C1] [ 15.621825][ C1] *** DEADLOCK *** [ 15.621825][ C1] [ 15.622090][ C1] 1 lock held by ksoftirqd/1/22: [ 15.622272][ C1] #0: ffffffff98b774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.622593][ C1] [ 15.622593][ C1] stack backtrace: [ 15.622816][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.622821][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.622823][ C1] Call Trace: [ 15.622825][ C1] [ 15.622827][ C1] dump_stack_lvl+0x82/0xd0 [ 15.622833][ C1] print_usage_bug.part.0+0x25f/0x360 [ 15.622837][ C1] mark_lock_irq+0x343/0x400 [ 15.622841][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.622845][ C1] ? save_trace+0x52/0x170 [ 15.622850][ C1] mark_lock+0x174/0x2f0 [ 15.622854][ C1] mark_usage+0x46/0x150 [ 15.622857][ C1] __lock_acquire+0x20b/0x7e0 [ 15.622859][ C1] ? __lock_acquire+0x44d/0x7e0 [ 15.622863][ C1] lock_acquire.part.0+0xb6/0x240 [ 15.622866][ C1] ? simple_pin_fs+0x24/0x150 [ 15.622870][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.622874][ C1] ? lock_acquire+0x10c/0x170 [ 15.622876][ C1] ? simple_pin_fs+0x24/0x150 [ 15.622881][ C1] _raw_spin_lock+0x33/0x40 [ 15.622884][ C1] ? simple_pin_fs+0x24/0x150 [ 15.622887][ C1] simple_pin_fs+0x24/0x150 [ 15.622891][ C1] debugfs_remove+0x35/0x70 [ 15.622894][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 15.622899][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.622903][ C1] ? __sk_destruct+0x383/0x780 [ 15.622908][ C1] ? rcu_do_batch+0x34c/0xf20 [ 15.622911][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.622914][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 15.622918][ C1] ? kthread+0x37e/0x600 [ 15.622921][ C1] ? ret_from_fork+0x240/0x320 [ 15.622924][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 15.622926][ C1] ? migrate_enable+0x1f2/0x270 [ 15.622930][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 15.622935][ C1] __put_net+0x19/0x60 [ 15.622939][ C1] __sk_destruct+0x58a/0x780 [ 15.622943][ C1] ? rcu_do_batch+0x34a/0xf20 [ 15.622945][ C1] rcu_do_batch+0x34c/0xf20 [ 15.622949][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.622952][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.622955][ C1] ? note_gp_changes+0x182/0x1e0 [ 15.622958][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.622962][ C1] rcu_core+0x2bb/0x500 [ 15.622966][ C1] handle_softirqs+0x218/0x620 [ 15.622970][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.622973][ C1] run_ksoftirqd+0x3f/0x70 [ 15.622976][ C1] smpboot_thread_fn+0x30a/0x960 [ 15.622980][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.622983][ C1] kthread+0x37e/0x600 [ 15.622986][ C1] ? __pfx_kthread+0x10/0x10 [ 15.622988][ C1] ? ret_from_fork+0x1b/0x320 [ 15.622990][ C1] ? __lock_release+0x5d/0x170 [ 15.622993][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.622996][ C1] ? __pfx_kthread+0x10/0x10 [ 15.622999][ C1] ret_from_fork+0x240/0x320 [ 15.623001][ C1] ? __pfx_kthread+0x10/0x10 [ 15.623003][ C1] ret_from_fork_asm+0x1a/0x30 [ 15.623010][ C1] [ 15.632495][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.632786][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 15.633047][ C1] preempt_count: 100, expected: 0 [ 15.633196][ C1] RCU nest depth: 0, expected: 0 [ 15.633345][ C1] INFO: lockdep is turned off. [ 15.633500][ C1] Preemption disabled at: [ 15.633502][ C1] [] handle_softirqs+0xe5/0x620 [ 15.633803][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.633807][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.633809][ C1] Call Trace: [ 15.633810][ C1] [ 15.633812][ C1] dump_stack_lvl+0xb0/0xd0 [ 15.633818][ C1] __might_resched+0x360/0x5a0 [ 15.633824][ C1] down_write+0x72/0x210 [ 15.633828][ C1] ? __pfx_down_write+0x10/0x10 [ 15.633830][ C1] ? simple_recursive_removal+0x33/0x610 [ 15.633834][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.633838][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 15.633843][ C1] simple_recursive_removal+0x6a/0x610 [ 15.633846][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 15.633848][ C1] ? __pfx_remove_one+0x10/0x10 [ 15.633854][ C1] debugfs_remove+0x44/0x70 [ 15.633856][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 15.633861][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.633864][ C1] ? __sk_destruct+0x383/0x780 [ 15.633869][ C1] ? rcu_do_batch+0x34c/0xf20 [ 15.633871][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.633874][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 15.633878][ C1] ? kthread+0x37e/0x600 [ 15.633895][ C1] ? ret_from_fork+0x240/0x320 [ 15.633898][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 15.633902][ C1] ? migrate_enable+0x1f2/0x270 [ 15.633905][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 15.633910][ C1] __put_net+0x19/0x60 [ 15.633913][ C1] __sk_destruct+0x58a/0x780 [ 15.633917][ C1] ? rcu_do_batch+0x34a/0xf20 [ 15.633920][ C1] rcu_do_batch+0x34c/0xf20 [ 15.633924][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.633927][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.633930][ C1] ? note_gp_changes+0x182/0x1e0 [ 15.633932][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.633936][ C1] rcu_core+0x2bb/0x500 [ 15.633940][ C1] handle_softirqs+0x218/0x620 [ 15.633944][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.633947][ C1] run_ksoftirqd+0x3f/0x70 [ 15.633950][ C1] smpboot_thread_fn+0x30a/0x960 [ 15.633953][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.633957][ C1] kthread+0x37e/0x600 [ 15.633959][ C1] ? __pfx_kthread+0x10/0x10 [ 15.633961][ C1] ? ret_from_fork+0x1b/0x320 [ 15.633963][ C1] ? __lock_release+0x5d/0x170 [ 15.633967][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.633970][ C1] ? __pfx_kthread+0x10/0x10 [ 15.633973][ C1] ret_from_fork+0x240/0x320 [ 15.633975][ C1] ? __pfx_kthread+0x10/0x10 [ 15.633977][ C1] ret_from_fork_asm+0x1a/0x30 [ 15.633984][ C1] [ 17.600902][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.601401][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 17.601850][ C3] preempt_count: 101, expected: 0 [ 17.602037][ C3] RCU nest depth: 0, expected: 0 [ 17.602224][ C3] INFO: lockdep is turned off. [ 17.602432][ C3] Preemption disabled at: [ 17.602434][ C3] [<0000000000000000>] 0x0 [ 17.602897][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 17.602903][ C3] Tainted: [W]=WARN [ 17.602905][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.602907][ C3] Call Trace: [ 17.602910][ C3] [ 17.602912][ C3] dump_stack_lvl+0xb0/0xd0 [ 17.602923][ C3] __might_resched+0x360/0x5a0 [ 17.602932][ C3] down_write+0x72/0x210 [ 17.602937][ C3] ? __pfx_down_write+0x10/0x10 [ 17.602941][ C3] ? simple_recursive_removal+0x33/0x610 [ 17.602946][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.602952][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.602960][ C3] simple_recursive_removal+0x6a/0x610 [ 17.602963][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.602966][ C3] ? __pfx_remove_one+0x10/0x10 [ 17.602973][ C3] debugfs_remove+0x44/0x70 [ 17.602976][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 17.602983][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.602987][ C3] ? __sk_destruct+0x383/0x780 [ 17.602994][ C3] ? rcu_do_batch+0x34c/0xf20 [ 17.602998][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.603001][ C3] ? irq_exit_rcu+0xe/0x30 [ 17.603008][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.603015][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.603019][ C3] ? pv_native_safe_halt+0xf/0x20 [ 17.603023][ C3] ? default_idle+0x9/0x10 [ 17.603026][ C3] ? default_idle_call+0x6d/0xb0 [ 17.603028][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.603033][ C3] ? do_idle+0xf6/0x160 [ 17.603036][ C3] ? cpu_startup_entry+0x54/0x60 [ 17.603038][ C3] ? start_secondary+0x213/0x2a0 [ 17.603043][ C3] ? common_startup_64+0x13e/0x148 [ 17.603050][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.603056][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.603060][ C3] __put_net+0x19/0x60 [ 17.603065][ C3] __sk_destruct+0x58a/0x780 [ 17.603069][ C3] ? rcu_do_batch+0x34a/0xf20 [ 17.603071][ C3] rcu_do_batch+0x34c/0xf20 [ 17.603075][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.603079][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.603087][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.603094][ C3] rcu_core+0x2bb/0x500 [ 17.603100][ C3] handle_softirqs+0x218/0x620 [ 17.603105][ C3] __irq_exit_rcu+0xfa/0x160 [ 17.603108][ C3] irq_exit_rcu+0xe/0x30 [ 17.603111][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.603115][ C3] [ 17.603116][ C3] [ 17.603118][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.603120][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.603125][ C3] Code: a2 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 47 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.603128][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 17.603132][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffff97b8f5d9 [ 17.603134][ C3] RDX: ffffed1006c366fb RSI: ffffffff97e53b60 RDI: ffffffff9538d18f [ 17.603136][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c366fa [ 17.603137][ C3] R10: ffff8880361b37d3 R11: ffff88800adf2818 R12: 0000000000000000 [ 17.603139][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 17.603143][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.603146][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.603150][ C3] default_idle+0x9/0x10 [ 17.603152][ C3] default_idle_call+0x6d/0xb0 [ 17.603155][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 17.603158][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.603162][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 17.603166][ C3] do_idle+0xf6/0x160 [ 17.603169][ C3] cpu_startup_entry+0x54/0x60 [ 17.603172][ C3] start_secondary+0x213/0x2a0 [ 17.603175][ C3] ? __pfx_start_secondary+0x10/0x10 [ 17.603179][ C3] common_startup_64+0x13e/0x148 [ 17.603186][ C3]