[ 16.692279][ C1] [ 16.692418][ C1] ================================ [ 16.692611][ C1] WARNING: inconsistent lock state [ 16.692789][ C1] 6.15.0-rc7-virtme #1 Not tainted [ 16.692964][ C1] -------------------------------- [ 16.693138][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.693368][ C1] ksoftirqd/1/22 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.693596][ C1] ffffffffa79bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.693912][ C1] {SOFTIRQ-ON-W} state was registered at: [ 16.694091][ C1] __lock_acquire+0x3eb/0x9d0 [ 16.694274][ C1] lock_acquire.part.0+0xb6/0x240 [ 16.694468][ C1] _raw_spin_lock+0x33/0x40 [ 16.694645][ C1] simple_pin_fs+0x24/0x150 [ 16.694832][ C1] start_creating.part.0+0x3f/0x2f0 [ 16.695023][ C1] debugfs_create_dir+0x6a/0x540 [ 16.695197][ C1] component_debug_init+0x17/0x30 [ 16.695373][ C1] do_one_initcall+0x8f/0x1e0 [ 16.695564][ C1] do_initcalls+0x176/0x280 [ 16.695743][ C1] kernel_init_freeable+0x22d/0x300 [ 16.695919][ C1] kernel_init+0x20/0x200 [ 16.696098][ C1] ret_from_fork+0x31/0x70 [ 16.696275][ C1] ret_from_fork_asm+0x1a/0x30 [ 16.696451][ C1] irq event stamp: 291978 [ 16.696583][ C1] hardirqs last enabled at (291978): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.696940][ C1] hardirqs last disabled at (291977): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.697287][ C1] softirqs last enabled at (291480): [] handle_softirqs+0x358/0x620 [ 16.697598][ C1] softirqs last disabled at (291485): [] run_ksoftirqd+0x3f/0x70 [ 16.697901][ C1] [ 16.697901][ C1] other info that might help us debug this: [ 16.698155][ C1] Possible unsafe locking scenario: [ 16.698155][ C1] [ 16.698417][ C1] CPU0 [ 16.698562][ C1] ---- [ 16.698685][ C1] lock(pin_fs_lock); [ 16.698822][ C1] [ 16.698951][ C1] lock(pin_fs_lock); [ 16.699083][ C1] [ 16.699083][ C1] *** DEADLOCK *** [ 16.699083][ C1] [ 16.699340][ C1] 1 lock held by ksoftirqd/1/22: [ 16.699519][ C1] #0: ffffffffa77749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.699836][ C1] [ 16.699836][ C1] stack backtrace: [ 16.700061][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 16.700066][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.700068][ C1] Call Trace: [ 16.700071][ C1] [ 16.700073][ C1] dump_stack_lvl+0x82/0xd0 [ 16.700080][ C1] print_usage_bug.part.0+0x25f/0x360 [ 16.700085][ C1] mark_lock_irq+0x343/0x400 [ 16.700091][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 16.700098][ C1] ? save_trace+0x52/0x170 [ 16.700102][ C1] mark_lock+0x174/0x2f0 [ 16.700107][ C1] mark_usage+0x46/0x150 [ 16.700111][ C1] __lock_acquire+0x3eb/0x9d0 [ 16.700116][ C1] lock_acquire.part.0+0xb6/0x240 [ 16.700119][ C1] ? simple_pin_fs+0x24/0x150 [ 16.700122][ C1] ? rcu_is_watching+0x12/0xc0 [ 16.700129][ C1] ? lock_acquire+0x10c/0x170 [ 16.700131][ C1] ? simple_pin_fs+0x24/0x150 [ 16.700134][ C1] _raw_spin_lock+0x33/0x40 [ 16.700137][ C1] ? simple_pin_fs+0x24/0x150 [ 16.700140][ C1] simple_pin_fs+0x24/0x150 [ 16.700143][ C1] debugfs_remove+0x35/0x70 [ 16.700146][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 16.700152][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.700155][ C1] ? __sk_destruct+0x383/0x780 [ 16.700163][ C1] ? rcu_do_batch+0x34f/0xf20 [ 16.700166][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.700169][ C1] ? smpboot_thread_fn+0x307/0x960 [ 16.700173][ C1] ? kthread+0x37b/0x600 [ 16.700179][ C1] ? ret_from_fork+0x31/0x70 [ 16.700181][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 16.700184][ C1] ? migrate_enable+0x1f2/0x270 [ 16.700189][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 16.700194][ C1] __put_net+0x19/0x60 [ 16.700198][ C1] __sk_destruct+0x58a/0x780 [ 16.700202][ C1] ? rcu_do_batch+0x34a/0xf20 [ 16.700205][ C1] rcu_do_batch+0x34f/0xf20 [ 16.700211][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.700214][ C1] ? rcu_is_watching+0x12/0xc0 [ 16.700218][ C1] ? note_gp_changes+0x182/0x1e0 [ 16.700223][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.700230][ C1] rcu_core+0x2bb/0x500 [ 16.700234][ C1] handle_softirqs+0x218/0x620 [ 16.700237][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 16.700240][ C1] run_ksoftirqd+0x3f/0x70 [ 16.700243][ C1] smpboot_thread_fn+0x307/0x960 [ 16.700246][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.700250][ C1] kthread+0x37b/0x600 [ 16.700254][ C1] ? __pfx_kthread+0x10/0x10 [ 16.700256][ C1] ? ret_from_fork+0x1b/0x70 [ 16.700258][ C1] ? __lock_release+0x5d/0x170 [ 16.700261][ C1] ? rcu_is_watching+0x12/0xc0 [ 16.700265][ C1] ? __pfx_kthread+0x10/0x10 [ 16.700269][ C1] ret_from_fork+0x31/0x70 [ 16.700271][ C1] ? __pfx_kthread+0x10/0x10 [ 16.700274][ C1] ret_from_fork_asm+0x1a/0x30 [ 16.700281][ C1] [ 16.710257][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.710551][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 16.710838][ C1] preempt_count: 100, expected: 0 [ 16.711000][ C1] RCU nest depth: 0, expected: 0 [ 16.711167][ C1] INFO: lockdep is turned off. [ 16.711347][ C1] Preemption disabled at: [ 16.711349][ C1] [] handle_softirqs+0xe5/0x620 [ 16.711691][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 16.711696][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.711698][ C1] Call Trace: [ 16.711700][ C1] [ 16.711703][ C1] dump_stack_lvl+0xb0/0xd0 [ 16.711711][ C1] __might_resched+0x360/0x5a0 [ 16.711718][ C1] down_write+0x72/0x210 [ 16.711723][ C1] ? __pfx_down_write+0x10/0x10 [ 16.711727][ C1] ? simple_recursive_removal+0x3a/0x860 [ 16.711732][ C1] ? rcu_is_watching+0x12/0xc0 [ 16.711739][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 16.711745][ C1] simple_recursive_removal+0x166/0x860 [ 16.711747][ C1] ? __pfx_remove_one+0x10/0x10 [ 16.711752][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 16.711756][ C1] debugfs_remove+0x44/0x70 [ 16.711759][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 16.711765][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.711768][ C1] ? __sk_destruct+0x383/0x780 [ 16.711774][ C1] ? rcu_do_batch+0x34f/0xf20 [ 16.711779][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.711782][ C1] ? smpboot_thread_fn+0x307/0x960 [ 16.711786][ C1] ? kthread+0x37b/0x600 [ 16.711790][ C1] ? ret_from_fork+0x31/0x70 [ 16.711794][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 16.711800][ C1] ? migrate_enable+0x1f2/0x270 [ 16.711805][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 16.711811][ C1] __put_net+0x19/0x60 [ 16.711815][ C1] __sk_destruct+0x58a/0x780 [ 16.711820][ C1] ? rcu_do_batch+0x34a/0xf20 [ 16.711823][ C1] rcu_do_batch+0x34f/0xf20 [ 16.711828][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.711832][ C1] ? rcu_is_watching+0x12/0xc0 [ 16.711835][ C1] ? note_gp_changes+0x182/0x1e0 [ 16.711840][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.711846][ C1] rcu_core+0x2bb/0x500 [ 16.711850][ C1] handle_softirqs+0x218/0x620 [ 16.711854][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 16.711857][ C1] run_ksoftirqd+0x3f/0x70 [ 16.711860][ C1] smpboot_thread_fn+0x307/0x960 [ 16.711863][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.711867][ C1] kthread+0x37b/0x600 [ 16.711870][ C1] ? __pfx_kthread+0x10/0x10 [ 16.711873][ C1] ? ret_from_fork+0x1b/0x70 [ 16.711875][ C1] ? __lock_release+0x5d/0x170 [ 16.711878][ C1] ? rcu_is_watching+0x12/0xc0 [ 16.711882][ C1] ? __pfx_kthread+0x10/0x10 [ 16.711886][ C1] ret_from_fork+0x31/0x70 [ 16.711888][ C1] ? __pfx_kthread+0x10/0x10 [ 16.711891][ C1] ret_from_fork_asm+0x1a/0x30 [ 16.711897][ C1] [ 18.500554][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.500988][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 18.501328][ C2] preempt_count: 101, expected: 0 [ 18.501526][ C2] RCU nest depth: 0, expected: 0 [ 18.501714][ C2] INFO: lockdep is turned off. [ 18.501903][ C2] Preemption disabled at: [ 18.501905][ C2] [<0000000000000000>] 0x0 [ 18.502259][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 18.502267][ C2] Tainted: [W]=WARN [ 18.502268][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.502271][ C2] Call Trace: [ 18.502273][ C2] [ 18.502276][ C2] dump_stack_lvl+0xb0/0xd0 [ 18.502291][ C2] __might_resched+0x360/0x5a0 [ 18.502303][ C2] down_write+0x72/0x210 [ 18.502309][ C2] ? __pfx_down_write+0x10/0x10 [ 18.502313][ C2] ? simple_recursive_removal+0x3a/0x860 [ 18.502320][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.502330][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 18.502337][ C2] simple_recursive_removal+0x166/0x860 [ 18.502340][ C2] ? __pfx_remove_one+0x10/0x10 [ 18.502348][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 18.502353][ C2] debugfs_remove+0x44/0x70 [ 18.502356][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 18.502365][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.502368][ C2] ? __sk_destruct+0x383/0x780 [ 18.502376][ C2] ? rcu_do_batch+0x34f/0xf20 [ 18.502382][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.502385][ C2] ? irq_exit_rcu+0xe/0x30 [ 18.502392][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.502399][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.502405][ C2] ? pv_native_safe_halt+0xf/0x20 [ 18.502409][ C2] ? default_idle+0x9/0x10 [ 18.502411][ C2] ? default_idle_call+0x6d/0xb0 [ 18.502414][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.502421][ C2] ? do_idle+0xf6/0x160 [ 18.502424][ C2] ? cpu_startup_entry+0x54/0x60 [ 18.502428][ C2] ? start_secondary+0x213/0x2a0 [ 18.502436][ C2] ? common_startup_64+0x13e/0x148 [ 18.502442][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 18.502450][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.502455][ C2] __put_net+0x19/0x60 [ 18.502460][ C2] __sk_destruct+0x58a/0x780 [ 18.502464][ C2] ? rcu_do_batch+0x34a/0xf20 [ 18.502467][ C2] rcu_do_batch+0x34f/0xf20 [ 18.502472][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.502477][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 18.502484][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 18.502491][ C2] rcu_core+0x2bb/0x500 [ 18.502497][ C2] handle_softirqs+0x218/0x620 [ 18.502502][ C2] __irq_exit_rcu+0xfa/0x160 [ 18.502504][ C2] irq_exit_rcu+0xe/0x30 [ 18.502507][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.502510][ C2] [ 18.502512][ C2] [ 18.502513][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.502516][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 18.502521][ C2] Code: 60 b8 00 e9 c3 57 02 00 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 c3 75 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 18.502524][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 18.502530][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffffa675ba19 [ 18.502532][ C2] RDX: ffffed1005ea667b RSI: ffffffffa6a511e0 RDI: ffffffffa3f8633f [ 18.502534][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1005ea667a [ 18.502536][ C2] R10: ffff88802f5333d3 R11: ffff888001eda858 R12: 0000000000000000 [ 18.502537][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 18.502542][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 18.502545][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.502550][ C2] default_idle+0x9/0x10 [ 18.502553][ C2] default_idle_call+0x6d/0xb0 [ 18.502556][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 18.502560][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 18.502565][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 18.502570][ C2] do_idle+0xf6/0x160 [ 18.502574][ C2] cpu_startup_entry+0x54/0x60 [ 18.502578][ C2] start_secondary+0x213/0x2a0 [ 18.502581][ C2] ? __pfx_start_secondary+0x10/0x10 [ 18.502587][ C2] common_startup_64+0x13e/0x148 [ 18.502594][ C2]