[ 15.455307][ C1] [ 15.455454][ C1] ================================ [ 15.455642][ C1] WARNING: inconsistent lock state [ 15.455831][ C1] 6.15.0-virtme #1 Not tainted [ 15.456019][ C1] -------------------------------- [ 15.456205][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.456434][ C1] ksoftirqd/1/22 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.456667][ C1] ffffffffb5dc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.457010][ C1] {SOFTIRQ-ON-W} state was registered at: [ 15.457194][ C1] __lock_acquire+0x20b/0x7e0 [ 15.457385][ C1] lock_acquire.part.0+0xb6/0x240 [ 15.457573][ C1] _raw_spin_lock+0x33/0x40 [ 15.457761][ C1] simple_pin_fs+0x24/0x150 [ 15.457944][ C1] start_creating.part.0+0x52/0x310 [ 15.458130][ C1] debugfs_create_dir+0x6a/0x540 [ 15.458317][ C1] component_debug_init+0x17/0x30 [ 15.458505][ C1] do_one_initcall+0x8f/0x1e0 [ 15.458696][ C1] do_initcalls+0x176/0x280 [ 15.458881][ C1] kernel_init_freeable+0x22d/0x300 [ 15.459067][ C1] kernel_init+0x20/0x200 [ 15.459251][ C1] ret_from_fork+0x240/0x320 [ 15.459437][ C1] ret_from_fork_asm+0x1a/0x30 [ 15.459623][ C1] irq event stamp: 307378 [ 15.459764][ C1] hardirqs last enabled at (307378): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.460140][ C1] hardirqs last disabled at (307377): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.460510][ C1] softirqs last enabled at (307166): [] handle_softirqs+0x358/0x620 [ 15.460840][ C1] softirqs last disabled at (307171): [] run_ksoftirqd+0x3f/0x70 [ 15.461162][ C1] [ 15.461162][ C1] other info that might help us debug this: [ 15.461433][ C1] Possible unsafe locking scenario: [ 15.461433][ C1] [ 15.461703][ C1] CPU0 [ 15.461845][ C1] ---- [ 15.461984][ C1] lock(pin_fs_lock); [ 15.462126][ C1] [ 15.462264][ C1] lock(pin_fs_lock); [ 15.462409][ C1] [ 15.462409][ C1] *** DEADLOCK *** [ 15.462409][ C1] [ 15.462681][ C1] 1 lock held by ksoftirqd/1/22: [ 15.462870][ C1] #0: ffffffffb5b774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.463206][ C1] [ 15.463206][ C1] stack backtrace: [ 15.463438][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.463443][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.463445][ C1] Call Trace: [ 15.463447][ C1] [ 15.463450][ C1] dump_stack_lvl+0x82/0xd0 [ 15.463456][ C1] print_usage_bug.part.0+0x25f/0x360 [ 15.463460][ C1] mark_lock_irq+0x343/0x400 [ 15.463465][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.463469][ C1] ? save_trace+0x52/0x170 [ 15.463475][ C1] mark_lock+0x174/0x2f0 [ 15.463479][ C1] mark_usage+0x46/0x150 [ 15.463482][ C1] __lock_acquire+0x20b/0x7e0 [ 15.463485][ C1] ? __lock_acquire+0x44d/0x7e0 [ 15.463489][ C1] lock_acquire.part.0+0xb6/0x240 [ 15.463492][ C1] ? simple_pin_fs+0x24/0x150 [ 15.463496][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.463500][ C1] ? lock_acquire+0x10c/0x170 [ 15.463503][ C1] ? simple_pin_fs+0x24/0x150 [ 15.463507][ C1] _raw_spin_lock+0x33/0x40 [ 15.463511][ C1] ? simple_pin_fs+0x24/0x150 [ 15.463514][ C1] simple_pin_fs+0x24/0x150 [ 15.463518][ C1] debugfs_remove+0x35/0x70 [ 15.463521][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 15.463527][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.463530][ C1] ? __sk_destruct+0x383/0x780 [ 15.463536][ C1] ? rcu_do_batch+0x34c/0xf20 [ 15.463539][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.463542][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 15.463546][ C1] ? kthread+0x37e/0x600 [ 15.463549][ C1] ? ret_from_fork+0x240/0x320 [ 15.463552][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 15.463555][ C1] ? migrate_enable+0x1f2/0x270 [ 15.463559][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 15.463564][ C1] __put_net+0x19/0x60 [ 15.463568][ C1] __sk_destruct+0x58a/0x780 [ 15.463572][ C1] ? rcu_do_batch+0x34a/0xf20 [ 15.463574][ C1] rcu_do_batch+0x34c/0xf20 [ 15.463579][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.463582][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.463585][ C1] ? note_gp_changes+0x182/0x1e0 [ 15.463588][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.463592][ C1] rcu_core+0x2bb/0x500 [ 15.463596][ C1] handle_softirqs+0x218/0x620 [ 15.463600][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.463604][ C1] run_ksoftirqd+0x3f/0x70 [ 15.463607][ C1] smpboot_thread_fn+0x30a/0x960 [ 15.463610][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.463614][ C1] kthread+0x37e/0x600 [ 15.463617][ C1] ? __pfx_kthread+0x10/0x10 [ 15.463619][ C1] ? ret_from_fork+0x1b/0x320 [ 15.463622][ C1] ? __lock_release+0x5d/0x170 [ 15.463625][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.463629][ C1] ? __pfx_kthread+0x10/0x10 [ 15.463632][ C1] ret_from_fork+0x240/0x320 [ 15.463634][ C1] ? __pfx_kthread+0x10/0x10 [ 15.463637][ C1] ret_from_fork_asm+0x1a/0x30 [ 15.463644][ C1] [ 15.474109][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.474410][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 15.474719][ C1] preempt_count: 100, expected: 0 [ 15.474891][ C1] RCU nest depth: 0, expected: 0 [ 15.475062][ C1] INFO: lockdep is turned off. [ 15.475233][ C1] Preemption disabled at: [ 15.475235][ C1] [] handle_softirqs+0xe5/0x620 [ 15.475587][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.475591][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.475593][ C1] Call Trace: [ 15.475594][ C1] [ 15.475596][ C1] dump_stack_lvl+0xb0/0xd0 [ 15.475602][ C1] __might_resched+0x360/0x5a0 [ 15.475609][ C1] down_write+0x72/0x210 [ 15.475613][ C1] ? __pfx_down_write+0x10/0x10 [ 15.475616][ C1] ? simple_recursive_removal+0x33/0x610 [ 15.475619][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.475624][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 15.475629][ C1] simple_recursive_removal+0x6a/0x610 [ 15.475632][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 15.475635][ C1] ? __pfx_remove_one+0x10/0x10 [ 15.475640][ C1] debugfs_remove+0x44/0x70 [ 15.475643][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 15.475649][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.475652][ C1] ? __sk_destruct+0x383/0x780 [ 15.475656][ C1] ? rcu_do_batch+0x34c/0xf20 [ 15.475659][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.475662][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 15.475666][ C1] ? kthread+0x37e/0x600 [ 15.475668][ C1] ? ret_from_fork+0x240/0x320 [ 15.475672][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 15.475676][ C1] ? migrate_enable+0x1f2/0x270 [ 15.475680][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 15.475685][ C1] __put_net+0x19/0x60 [ 15.475688][ C1] __sk_destruct+0x58a/0x780 [ 15.475692][ C1] ? rcu_do_batch+0x34a/0xf20 [ 15.475695][ C1] rcu_do_batch+0x34c/0xf20 [ 15.475699][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.475703][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.475706][ C1] ? note_gp_changes+0x182/0x1e0 [ 15.475708][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.475713][ C1] rcu_core+0x2bb/0x500 [ 15.475716][ C1] handle_softirqs+0x218/0x620 [ 15.475720][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.475724][ C1] run_ksoftirqd+0x3f/0x70 [ 15.475727][ C1] smpboot_thread_fn+0x30a/0x960 [ 15.475730][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.475734][ C1] kthread+0x37e/0x600 [ 15.475737][ C1] ? __pfx_kthread+0x10/0x10 [ 15.475739][ C1] ? ret_from_fork+0x1b/0x320 [ 15.475742][ C1] ? __lock_release+0x5d/0x170 [ 15.475745][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.475748][ C1] ? __pfx_kthread+0x10/0x10 [ 15.475751][ C1] ret_from_fork+0x240/0x320 [ 15.475754][ C1] ? __pfx_kthread+0x10/0x10 [ 15.475756][ C1] ret_from_fork_asm+0x1a/0x30 [ 15.475763][ C1] [ 17.618719][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.619163][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 17.619506][ C3] preempt_count: 101, expected: 0 [ 17.619695][ C3] RCU nest depth: 0, expected: 0 [ 17.619883][ C3] INFO: lockdep is turned off. [ 17.620072][ C3] Preemption disabled at: [ 17.620074][ C3] [<0000000000000000>] 0x0 [ 17.620404][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 17.620409][ C3] Tainted: [W]=WARN [ 17.620410][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.620412][ C3] Call Trace: [ 17.620415][ C3] [ 17.620416][ C3] dump_stack_lvl+0xb0/0xd0 [ 17.620425][ C3] __might_resched+0x360/0x5a0 [ 17.620432][ C3] down_write+0x72/0x210 [ 17.620436][ C3] ? __pfx_down_write+0x10/0x10 [ 17.620442][ C3] ? simple_recursive_removal+0x33/0x610 [ 17.620446][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.620451][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.620457][ C3] simple_recursive_removal+0x6a/0x610 [ 17.620460][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.620463][ C3] ? __pfx_remove_one+0x10/0x10 [ 17.620469][ C3] debugfs_remove+0x44/0x70 [ 17.620472][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 17.620478][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.620482][ C3] ? __sk_destruct+0x383/0x780 [ 17.620487][ C3] ? rcu_do_batch+0x34c/0xf20 [ 17.620490][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.620493][ C3] ? irq_exit_rcu+0xe/0x30 [ 17.620498][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.620503][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.620507][ C3] ? pv_native_safe_halt+0xf/0x20 [ 17.620511][ C3] ? default_idle+0x9/0x10 [ 17.620513][ C3] ? default_idle_call+0x6d/0xb0 [ 17.620516][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.620519][ C3] ? do_idle+0xf6/0x160 [ 17.620522][ C3] ? cpu_startup_entry+0x54/0x60 [ 17.620524][ C3] ? start_secondary+0x213/0x2a0 [ 17.620528][ C3] ? common_startup_64+0x13e/0x148 [ 17.620533][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.620537][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.620541][ C3] __put_net+0x19/0x60 [ 17.620545][ C3] __sk_destruct+0x58a/0x780 [ 17.620549][ C3] ? rcu_do_batch+0x34a/0xf20 [ 17.620551][ C3] rcu_do_batch+0x34c/0xf20 [ 17.620556][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.620559][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.620565][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.620571][ C3] rcu_core+0x2bb/0x500 [ 17.620576][ C3] handle_softirqs+0x218/0x620 [ 17.620581][ C3] __irq_exit_rcu+0xfa/0x160 [ 17.620584][ C3] irq_exit_rcu+0xe/0x30 [ 17.620587][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.620591][ C3] [ 17.620592][ C3] [ 17.620594][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.620597][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.620601][ 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.620603][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 17.620607][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffffb4b905d9 [ 17.620609][ C3] RDX: ffffed1006c366fb RSI: ffffffffb4e53b60 RDI: ffffffffb238d18f [ 17.620611][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c366fa [ 17.620612][ C3] R10: ffff8880361b37d3 R11: ffffffffb84cf760 R12: 0000000000000000 [ 17.620614][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 17.620618][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.620621][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.620625][ C3] default_idle+0x9/0x10 [ 17.620628][ C3] default_idle_call+0x6d/0xb0 [ 17.620630][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 17.620634][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.620637][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 17.620641][ C3] do_idle+0xf6/0x160 [ 17.620645][ C3] cpu_startup_entry+0x54/0x60 [ 17.620648][ C3] start_secondary+0x213/0x2a0 [ 17.620651][ C3] ? __pfx_start_secondary+0x10/0x10 [ 17.620655][ C3] common_startup_64+0x13e/0x148 [ 17.620662][ C3]