[ 17.188481][ C1] [ 17.188620][ C1] ================================ [ 17.188796][ C1] WARNING: inconsistent lock state [ 17.188971][ C1] 6.15.0-rc7-virtme #1 Not tainted [ 17.189150][ C1] -------------------------------- [ 17.189333][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 17.189553][ C1] ksoftirqd/1/22 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 17.189785][ C1] ffffffff93fbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 17.190114][ C1] {SOFTIRQ-ON-W} state was registered at: [ 17.190298][ C1] __lock_acquire+0x3eb/0x9d0 [ 17.190486][ C1] lock_acquire.part.0+0xb6/0x240 [ 17.190663][ C1] _raw_spin_lock+0x33/0x40 [ 17.190847][ C1] simple_pin_fs+0x24/0x150 [ 17.191035][ C1] start_creating.part.0+0x3f/0x2f0 [ 17.191236][ C1] debugfs_create_dir+0x6a/0x540 [ 17.191412][ C1] component_debug_init+0x17/0x30 [ 17.191594][ C1] do_one_initcall+0x8f/0x1e0 [ 17.191778][ C1] do_initcalls+0x176/0x280 [ 17.191968][ C1] kernel_init_freeable+0x22d/0x300 [ 17.192149][ C1] kernel_init+0x20/0x200 [ 17.192335][ C1] ret_from_fork+0x31/0x70 [ 17.192515][ C1] ret_from_fork_asm+0x1a/0x30 [ 17.192694][ C1] irq event stamp: 287784 [ 17.192829][ C1] hardirqs last enabled at (287784): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.193187][ C1] hardirqs last disabled at (287783): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 17.193542][ C1] softirqs last enabled at (287574): [] handle_softirqs+0x358/0x620 [ 17.193860][ C1] softirqs last disabled at (287579): [] run_ksoftirqd+0x3f/0x70 [ 17.194171][ C1] [ 17.194171][ C1] other info that might help us debug this: [ 17.194436][ C1] Possible unsafe locking scenario: [ 17.194436][ C1] [ 17.194696][ C1] CPU0 [ 17.194833][ C1] ---- [ 17.194966][ C1] lock(pin_fs_lock); [ 17.195105][ C1] [ 17.195241][ C1] lock(pin_fs_lock); [ 17.195381][ C1] [ 17.195381][ C1] *** DEADLOCK *** [ 17.195381][ C1] [ 17.195641][ C1] 1 lock held by ksoftirqd/1/22: [ 17.195826][ C1] #0: ffffffff93d749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 17.196151][ C1] [ 17.196151][ C1] stack backtrace: [ 17.196373][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 17.196378][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.196381][ C1] Call Trace: [ 17.196383][ C1] [ 17.196386][ C1] dump_stack_lvl+0x82/0xd0 [ 17.196393][ C1] print_usage_bug.part.0+0x25f/0x360 [ 17.196399][ C1] mark_lock_irq+0x343/0x400 [ 17.196405][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 17.196411][ C1] ? save_trace+0x52/0x170 [ 17.196416][ C1] mark_lock+0x174/0x2f0 [ 17.196421][ C1] mark_usage+0x46/0x150 [ 17.196425][ C1] __lock_acquire+0x3eb/0x9d0 [ 17.196430][ C1] lock_acquire.part.0+0xb6/0x240 [ 17.196433][ C1] ? simple_pin_fs+0x24/0x150 [ 17.196437][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.196443][ C1] ? lock_acquire+0x10c/0x170 [ 17.196445][ C1] ? simple_pin_fs+0x24/0x150 [ 17.196449][ C1] _raw_spin_lock+0x33/0x40 [ 17.196452][ C1] ? simple_pin_fs+0x24/0x150 [ 17.196455][ C1] simple_pin_fs+0x24/0x150 [ 17.196458][ C1] debugfs_remove+0x35/0x70 [ 17.196462][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 17.196468][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.196472][ C1] ? __sk_destruct+0x383/0x780 [ 17.196479][ C1] ? rcu_do_batch+0x34f/0xf20 [ 17.196482][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.196485][ C1] ? smpboot_thread_fn+0x307/0x960 [ 17.196490][ C1] ? kthread+0x37b/0x600 [ 17.196495][ C1] ? ret_from_fork+0x31/0x70 [ 17.196497][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 17.196500][ C1] ? migrate_enable+0x1f2/0x270 [ 17.196505][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 17.196511][ C1] __put_net+0x19/0x60 [ 17.196515][ C1] __sk_destruct+0x58a/0x780 [ 17.196518][ C1] ? rcu_do_batch+0x34a/0xf20 [ 17.196521][ C1] rcu_do_batch+0x34f/0xf20 [ 17.196526][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.196530][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.196534][ C1] ? note_gp_changes+0x182/0x1e0 [ 17.196538][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.196545][ C1] rcu_core+0x2bb/0x500 [ 17.196549][ C1] handle_softirqs+0x218/0x620 [ 17.196552][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 17.196556][ C1] run_ksoftirqd+0x3f/0x70 [ 17.196558][ C1] smpboot_thread_fn+0x307/0x960 [ 17.196561][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 17.196565][ C1] kthread+0x37b/0x600 [ 17.196569][ C1] ? __pfx_kthread+0x10/0x10 [ 17.196571][ C1] ? ret_from_fork+0x1b/0x70 [ 17.196573][ C1] ? __lock_release+0x5d/0x170 [ 17.196576][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.196580][ C1] ? __pfx_kthread+0x10/0x10 [ 17.196584][ C1] ret_from_fork+0x31/0x70 [ 17.196586][ C1] ? __pfx_kthread+0x10/0x10 [ 17.196589][ C1] ret_from_fork_asm+0x1a/0x30 [ 17.196596][ C1] [ 17.206504][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.206803][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 17.207092][ C1] preempt_count: 100, expected: 0 [ 17.207279][ C1] RCU nest depth: 0, expected: 0 [ 17.207455][ C1] INFO: lockdep is turned off. [ 17.207626][ C1] Preemption disabled at: [ 17.207628][ C1] [] handle_softirqs+0xe5/0x620 [ 17.207962][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 17.207967][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.207969][ C1] Call Trace: [ 17.207972][ C1] [ 17.207974][ C1] dump_stack_lvl+0xb0/0xd0 [ 17.207982][ C1] __might_resched+0x360/0x5a0 [ 17.207990][ C1] down_write+0x72/0x210 [ 17.207994][ C1] ? __pfx_down_write+0x10/0x10 [ 17.207998][ C1] ? simple_recursive_removal+0x3a/0x860 [ 17.208002][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.208009][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 17.208014][ C1] simple_recursive_removal+0x166/0x860 [ 17.208017][ C1] ? __pfx_remove_one+0x10/0x10 [ 17.208022][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 17.208027][ C1] debugfs_remove+0x44/0x70 [ 17.208030][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 17.208036][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.208039][ C1] ? __sk_destruct+0x383/0x780 [ 17.208046][ C1] ? rcu_do_batch+0x34f/0xf20 [ 17.208049][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.208052][ C1] ? smpboot_thread_fn+0x307/0x960 [ 17.208057][ C1] ? kthread+0x37b/0x600 [ 17.208061][ C1] ? ret_from_fork+0x31/0x70 [ 17.208064][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 17.208070][ C1] ? migrate_enable+0x1f2/0x270 [ 17.208075][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 17.208081][ C1] __put_net+0x19/0x60 [ 17.208084][ C1] __sk_destruct+0x58a/0x780 [ 17.208088][ C1] ? rcu_do_batch+0x34a/0xf20 [ 17.208091][ C1] rcu_do_batch+0x34f/0xf20 [ 17.208096][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.208103][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.208108][ C1] ? note_gp_changes+0x182/0x1e0 [ 17.208113][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.208119][ C1] rcu_core+0x2bb/0x500 [ 17.208123][ C1] handle_softirqs+0x218/0x620 [ 17.208126][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 17.208130][ C1] run_ksoftirqd+0x3f/0x70 [ 17.208132][ C1] smpboot_thread_fn+0x307/0x960 [ 17.208136][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 17.208140][ C1] kthread+0x37b/0x600 [ 17.208143][ C1] ? __pfx_kthread+0x10/0x10 [ 17.208146][ C1] ? ret_from_fork+0x1b/0x70 [ 17.208148][ C1] ? __lock_release+0x5d/0x170 [ 17.208151][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.208155][ C1] ? __pfx_kthread+0x10/0x10 [ 17.208158][ C1] ret_from_fork+0x31/0x70 [ 17.208163][ C1] ? __pfx_kthread+0x10/0x10 [ 17.208166][ C1] ret_from_fork_asm+0x1a/0x30 [ 17.208173][ C1] [ 19.831317][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 19.831760][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 19.832116][ C2] preempt_count: 101, expected: 0 [ 19.832334][ C2] RCU nest depth: 0, expected: 0 [ 19.832544][ C2] INFO: lockdep is turned off. [ 19.832755][ C2] Preemption disabled at: [ 19.832757][ C2] [<0000000000000000>] 0x0 [ 19.833116][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 19.833122][ C2] Tainted: [W]=WARN [ 19.833124][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.833126][ C2] Call Trace: [ 19.833129][ C2] [ 19.833131][ C2] dump_stack_lvl+0xb0/0xd0 [ 19.833142][ C2] __might_resched+0x360/0x5a0 [ 19.833151][ C2] down_write+0x72/0x210 [ 19.833156][ C2] ? __pfx_down_write+0x10/0x10 [ 19.833162][ C2] ? simple_recursive_removal+0x3a/0x860 [ 19.833168][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.833176][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 19.833182][ C2] simple_recursive_removal+0x166/0x860 [ 19.833185][ C2] ? __pfx_remove_one+0x10/0x10 [ 19.833191][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 19.833196][ C2] debugfs_remove+0x44/0x70 [ 19.833199][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 19.833206][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.833209][ C2] ? __sk_destruct+0x383/0x780 [ 19.833216][ C2] ? rcu_do_batch+0x34f/0xf20 [ 19.833221][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.833224][ C2] ? irq_exit_rcu+0xe/0x30 [ 19.833231][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.833236][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.833241][ C2] ? pv_native_safe_halt+0xf/0x20 [ 19.833244][ C2] ? default_idle+0x9/0x10 [ 19.833246][ C2] ? default_idle_call+0x6d/0xb0 [ 19.833249][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.833255][ C2] ? do_idle+0xf6/0x160 [ 19.833258][ C2] ? cpu_startup_entry+0x54/0x60 [ 19.833261][ C2] ? start_secondary+0x213/0x2a0 [ 19.833267][ C2] ? common_startup_64+0x13e/0x148 [ 19.833273][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 19.833278][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.833283][ C2] __put_net+0x19/0x60 [ 19.833287][ C2] __sk_destruct+0x58a/0x780 [ 19.833291][ C2] ? rcu_do_batch+0x34a/0xf20 [ 19.833294][ C2] rcu_do_batch+0x34f/0xf20 [ 19.833299][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.833304][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 19.833310][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 19.833317][ C2] rcu_core+0x2bb/0x500 [ 19.833321][ C2] handle_softirqs+0x218/0x620 [ 19.833326][ C2] __irq_exit_rcu+0xfa/0x160 [ 19.833329][ C2] irq_exit_rcu+0xe/0x30 [ 19.833331][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.833335][ C2] [ 19.833336][ C2] [ 19.833337][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.833340][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 19.833344][ 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 [ 19.833347][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 19.833352][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff92d5ba19 [ 19.833354][ C2] RDX: ffffed1006c2667b RSI: ffffffff930511e0 RDI: ffffffff9058633f [ 19.833356][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c2667a [ 19.833358][ C2] R10: ffff8880361333d3 R11: ffffffff966b3438 R12: 0000000000000000 [ 19.833360][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 19.833364][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 19.833368][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.833373][ C2] default_idle+0x9/0x10 [ 19.833375][ C2] default_idle_call+0x6d/0xb0 [ 19.833378][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 19.833382][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 19.833386][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 19.833392][ C2] do_idle+0xf6/0x160 [ 19.833396][ C2] cpu_startup_entry+0x54/0x60 [ 19.833400][ C2] start_secondary+0x213/0x2a0 [ 19.833403][ C2] ? __pfx_start_secondary+0x10/0x10 [ 19.833408][ C2] common_startup_64+0x13e/0x148 [ 19.833415][ C2]