[ 15.801861][ C0] [ 15.802019][ C0] ================================ [ 15.802225][ C0] WARNING: inconsistent lock state [ 15.802427][ C0] 6.15.0-rc5-virtme #1 Not tainted [ 15.802626][ C0] -------------------------------- [ 15.802823][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.803070][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.803324][ C0] ffffffff8c3bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.803683][ C0] {SOFTIRQ-ON-W} state was registered at: [ 15.803886][ C0] __lock_acquire+0x3eb/0x9d0 [ 15.804094][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.804296][ C0] _raw_spin_lock+0x33/0x40 [ 15.804500][ C0] simple_pin_fs+0x24/0x150 [ 15.804697][ C0] start_creating.part.0+0x3f/0x2f0 [ 15.804896][ C0] debugfs_create_dir+0x6a/0x540 [ 15.805094][ C0] component_debug_init+0x17/0x30 [ 15.805294][ C0] do_one_initcall+0x8c/0x1e0 [ 15.805492][ C0] do_initcalls+0x176/0x280 [ 15.805692][ C0] kernel_init_freeable+0x22d/0x300 [ 15.805893][ C0] kernel_init+0x20/0x200 [ 15.806093][ C0] ret_from_fork+0x31/0x70 [ 15.806297][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.806497][ C0] irq event stamp: 443680 [ 15.806650][ C0] hardirqs last enabled at (443680): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.807046][ C0] hardirqs last disabled at (443679): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.807440][ C0] softirqs last enabled at (443606): [] handle_softirqs+0x358/0x620 [ 15.807788][ C0] softirqs last disabled at (443613): [] __irq_exit_rcu+0xfa/0x160 [ 15.808136][ C0] [ 15.808136][ C0] other info that might help us debug this: [ 15.808428][ C0] Possible unsafe locking scenario: [ 15.808428][ C0] [ 15.808720][ C0] CPU0 [ 15.808868][ C0] ---- [ 15.809016][ C0] lock(pin_fs_lock); [ 15.809167][ C0] [ 15.809317][ C0] lock(pin_fs_lock); [ 15.809470][ C0] [ 15.809470][ C0] *** DEADLOCK *** [ 15.809470][ C0] [ 15.809764][ C0] 1 lock held by swapper/0/0: [ 15.809965][ C0] #0: ffffffff8c174480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.810321][ C0] [ 15.810321][ C0] stack backtrace: [ 15.810567][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 15.810572][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.810574][ C0] Call Trace: [ 15.810576][ C0] [ 15.810578][ C0] dump_stack_lvl+0x82/0xd0 [ 15.810583][ C0] print_usage_bug.part.0+0x25f/0x360 [ 15.810589][ C0] mark_lock_irq+0x343/0x400 [ 15.810593][ C0] ? is_bpf_text_address+0x67/0x120 [ 15.810598][ C0] ? __lock_release+0x5d/0x170 [ 15.810602][ C0] ? save_trace+0x52/0x170 [ 15.810606][ C0] mark_lock+0x174/0x2f0 [ 15.810610][ C0] mark_usage+0x46/0x150 [ 15.810614][ C0] __lock_acquire+0x3eb/0x9d0 [ 15.810620][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.810623][ C0] ? simple_pin_fs+0x24/0x150 [ 15.810627][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.810633][ C0] ? lock_acquire+0x10c/0x170 [ 15.810636][ C0] ? simple_pin_fs+0x24/0x150 [ 15.810640][ C0] _raw_spin_lock+0x33/0x40 [ 15.810643][ C0] ? simple_pin_fs+0x24/0x150 [ 15.810647][ C0] simple_pin_fs+0x24/0x150 [ 15.810651][ C0] debugfs_remove+0x35/0x70 [ 15.810653][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.810658][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.810661][ C0] ? __sk_destruct+0x383/0x780 [ 15.810667][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.810670][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.810673][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.810675][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.810680][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.810683][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.810686][ C0] ? default_idle+0x9/0x10 [ 15.810688][ C0] ? default_idle_call+0x6d/0xb0 [ 15.810690][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.810695][ C0] ? do_idle+0xf6/0x160 [ 15.810698][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.810701][ C0] ? rest_init+0x14b/0x260 [ 15.810703][ C0] ? start_kernel+0x350/0x410 [ 15.810709][ C0] __put_net+0x19/0x60 [ 15.810712][ C0] __sk_destruct+0x58a/0x780 [ 15.810716][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.810719][ C0] rcu_do_batch+0x34c/0xf20 [ 15.810723][ C0] ? find_held_lock+0x2b/0x80 [ 15.810726][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.810730][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.810733][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.810737][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.810741][ C0] rcu_core+0x2bb/0x500 [ 15.810745][ C0] handle_softirqs+0x218/0x620 [ 15.810749][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.810751][ C0] irq_exit_rcu+0xe/0x30 [ 15.810754][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.810757][ C0] [ 15.810758][ C0] [ 15.810759][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.810762][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.810766][ C0] Code: b0 b8 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 a3 d0 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 [ 15.810769][ C0] RSP: 0018:ffffffff8be07df8 EFLAGS: 00000246 [ 15.810772][ C0] RAX: 000000000006c4db RBX: 1ffffffff17c0fc3 RCX: ffffffff8b155a19 [ 15.810774][ C0] RDX: 0000000000000000 RSI: ffffffff8bc85f31 RDI: ffffffff8b450ce0 [ 15.810776][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 15.810778][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.810780][ C0] R13: ffffffff8be1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.810784][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.810789][ C0] default_idle+0x9/0x10 [ 15.810792][ C0] default_idle_call+0x6d/0xb0 [ 15.810794][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.810798][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.810802][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.810808][ C0] do_idle+0xf6/0x160 [ 15.810812][ C0] cpu_startup_entry+0x54/0x60 [ 15.810815][ C0] rest_init+0x14b/0x260 [ 15.810818][ C0] start_kernel+0x350/0x410 [ 15.810822][ C0] x86_64_start_reservations+0x18/0x30 [ 15.810826][ C0] x86_64_start_kernel+0xba/0x110 [ 15.810830][ C0] common_startup_64+0x13e/0x148 [ 15.810838][ C0] [ 15.827045][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.827370][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 15.827940][ C0] preempt_count: 101, expected: 0 [ 15.828135][ C0] RCU nest depth: 0, expected: 0 [ 15.828321][ C0] INFO: lockdep is turned off. [ 15.828504][ C0] Preemption disabled at: [ 15.828506][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 15.828934][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 15.828938][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.828940][ C0] Call Trace: [ 15.828941][ C0] [ 15.828943][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.828948][ C0] __might_resched+0x360/0x5a0 [ 15.828953][ C0] down_write+0x72/0x210 [ 15.828956][ C0] ? __pfx_down_write+0x10/0x10 [ 15.828959][ C0] ? simple_recursive_removal+0x3a/0x860 [ 15.828963][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.828969][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.828973][ C0] simple_recursive_removal+0x166/0x860 [ 15.828975][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.828979][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.828983][ C0] debugfs_remove+0x44/0x70 [ 15.828986][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.828990][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.828993][ C0] ? __sk_destruct+0x383/0x780 [ 15.828997][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.829000][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.829003][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.829006][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.829009][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.829012][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.829015][ C0] ? default_idle+0x9/0x10 [ 15.829017][ C0] ? default_idle_call+0x6d/0xb0 [ 15.829020][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.829023][ C0] ? do_idle+0xf6/0x160 [ 15.829026][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.829029][ C0] ? rest_init+0x14b/0x260 [ 15.829032][ C0] ? start_kernel+0x350/0x410 [ 15.829038][ C0] __put_net+0x19/0x60 [ 15.829041][ C0] __sk_destruct+0x58a/0x780 [ 15.829045][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.829048][ C0] rcu_do_batch+0x34c/0xf20 [ 15.829052][ C0] ? find_held_lock+0x2b/0x80 [ 15.829056][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.829060][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.829064][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.829067][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.829072][ C0] rcu_core+0x2bb/0x500 [ 15.829075][ C0] handle_softirqs+0x218/0x620 [ 15.829080][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.829082][ C0] irq_exit_rcu+0xe/0x30 [ 15.829084][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.829088][ C0] [ 15.829089][ C0] [ 15.829090][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.829093][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.829096][ C0] Code: b0 b8 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 a3 d0 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 [ 15.829099][ C0] RSP: 0018:ffffffff8be07df8 EFLAGS: 00000246 [ 15.829102][ C0] RAX: 000000000006c4db RBX: 1ffffffff17c0fc3 RCX: ffffffff8b155a19 [ 15.829104][ C0] RDX: 0000000000000000 RSI: ffffffff8bc85f31 RDI: ffffffff8b450ce0 [ 15.829105][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 15.829107][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.829109][ C0] R13: ffffffff8be1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.829112][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.829118][ C0] default_idle+0x9/0x10 [ 15.829120][ C0] default_idle_call+0x6d/0xb0 [ 15.829122][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.829126][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.829130][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.829135][ C0] do_idle+0xf6/0x160 [ 15.829139][ C0] cpu_startup_entry+0x54/0x60 [ 15.829143][ C0] rest_init+0x14b/0x260 [ 15.829146][ C0] start_kernel+0x350/0x410 [ 15.829149][ C0] x86_64_start_reservations+0x18/0x30 [ 15.829153][ C0] x86_64_start_kernel+0xba/0x110 [ 15.829157][ C0] common_startup_64+0x13e/0x148 [ 15.829164][ C0] [ 17.959788][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.960132][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 17.960423][ C3] preempt_count: 101, expected: 0 [ 17.960591][ C3] RCU nest depth: 0, expected: 0 [ 17.960769][ C3] INFO: lockdep is turned off. [ 17.960936][ C3] Preemption disabled at: [ 17.960938][ C3] [<0000000000000000>] 0x0 [ 17.961253][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 17.961259][ C3] Tainted: [W]=WARN [ 17.961260][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.961262][ C3] Call Trace: [ 17.961264][ C3] [ 17.961266][ C3] dump_stack_lvl+0xb0/0xd0 [ 17.961274][ C3] __might_resched+0x360/0x5a0 [ 17.961280][ C3] down_write+0x72/0x210 [ 17.961284][ C3] ? __pfx_down_write+0x10/0x10 [ 17.961287][ C3] ? simple_recursive_removal+0x3a/0x860 [ 17.961291][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.961298][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.961303][ C3] simple_recursive_removal+0x166/0x860 [ 17.961306][ C3] ? __pfx_remove_one+0x10/0x10 [ 17.961310][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.961314][ C3] debugfs_remove+0x44/0x70 [ 17.961317][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 17.961323][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.961326][ C3] ? __sk_destruct+0x383/0x780 [ 17.961331][ C3] ? rcu_do_batch+0x34c/0xf20 [ 17.961335][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.961338][ C3] ? irq_exit_rcu+0xe/0x30 [ 17.961341][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.961346][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.961350][ C3] ? pv_native_safe_halt+0xf/0x20 [ 17.961353][ C3] ? default_idle+0x9/0x10 [ 17.961355][ C3] ? default_idle_call+0x6d/0xb0 [ 17.961358][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.961362][ C3] ? do_idle+0xf6/0x160 [ 17.961365][ C3] ? cpu_startup_entry+0x54/0x60 [ 17.961368][ C3] ? start_secondary+0x213/0x2a0 [ 17.961374][ C3] ? common_startup_64+0x13e/0x148 [ 17.961378][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.961382][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.961387][ C3] __put_net+0x19/0x60 [ 17.961390][ C3] __sk_destruct+0x58a/0x780 [ 17.961394][ C3] ? rcu_do_batch+0x34a/0xf20 [ 17.961397][ C3] rcu_do_batch+0x34c/0xf20 [ 17.961402][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.961406][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.961411][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.961417][ C3] rcu_core+0x2bb/0x500 [ 17.961420][ C3] handle_softirqs+0x218/0x620 [ 17.961425][ C3] __irq_exit_rcu+0xfa/0x160 [ 17.961427][ C3] irq_exit_rcu+0xe/0x30 [ 17.961430][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.961433][ C3] [ 17.961434][ C3] [ 17.961436][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.961438][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.961442][ C3] Code: b0 b8 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 a3 d0 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 [ 17.961445][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 17.961449][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffff8b155a19 [ 17.961451][ C3] RDX: ffffed1006c3667b RSI: ffffffff8b450c60 RDI: ffffffff88984d8f [ 17.961453][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c3667a [ 17.961454][ C3] R10: ffff8880361b33d3 R11: ffffffff8eacf568 R12: 0000000000000000 [ 17.961456][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 17.961460][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.961464][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.961468][ C3] default_idle+0x9/0x10 [ 17.961471][ C3] default_idle_call+0x6d/0xb0 [ 17.961473][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 17.961476][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.961481][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.961486][ C3] do_idle+0xf6/0x160 [ 17.961490][ C3] cpu_startup_entry+0x54/0x60 [ 17.961493][ C3] start_secondary+0x213/0x2a0 [ 17.961497][ C3] ? __pfx_start_secondary+0x10/0x10 [ 17.961502][ C3] common_startup_64+0x13e/0x148 [ 17.961508][ C3]