[ 14.841657][ C0] [ 14.841885][ C0] ================================ [ 14.842105][ C0] WARNING: inconsistent lock state [ 14.842316][ C0] 6.15.0-rc5-virtme #1 Not tainted [ 14.842530][ C0] -------------------------------- [ 14.842757][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.843022][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.843294][ C0] ffffffffa65bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.843674][ C0] {SOFTIRQ-ON-W} state was registered at: [ 14.843882][ C0] __lock_acquire+0x3eb/0x9d0 [ 14.844106][ C0] lock_acquire.part.0+0xb6/0x240 [ 14.844320][ C0] _raw_spin_lock+0x33/0x40 [ 14.844538][ C0] simple_pin_fs+0x24/0x150 [ 14.844746][ C0] start_creating.part.0+0x3f/0x2f0 [ 14.844969][ C0] debugfs_create_dir+0x6a/0x540 [ 14.845189][ C0] component_debug_init+0x17/0x30 [ 14.845409][ C0] do_one_initcall+0x8c/0x1e0 [ 14.845632][ C0] do_initcalls+0x176/0x280 [ 14.845852][ C0] kernel_init_freeable+0x22d/0x300 [ 14.846069][ C0] kernel_init+0x20/0x200 [ 14.846288][ C0] ret_from_fork+0x31/0x70 [ 14.846508][ C0] ret_from_fork_asm+0x1a/0x30 [ 14.846724][ C0] irq event stamp: 463192 [ 14.846892][ C0] hardirqs last enabled at (463192): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.847325][ C0] hardirqs last disabled at (463191): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.847757][ C0] softirqs last enabled at (462658): [] handle_softirqs+0x358/0x620 [ 14.848143][ C0] softirqs last disabled at (462677): [] __irq_exit_rcu+0xfa/0x160 [ 14.848532][ C0] [ 14.848532][ C0] other info that might help us debug this: [ 14.848856][ C0] Possible unsafe locking scenario: [ 14.848856][ C0] [ 14.849178][ C0] CPU0 [ 14.849341][ C0] ---- [ 14.849503][ C0] lock(pin_fs_lock); [ 14.849671][ C0] [ 14.849836][ C0] lock(pin_fs_lock); [ 14.850004][ C0] [ 14.850004][ C0] *** DEADLOCK *** [ 14.850004][ C0] [ 14.850324][ C0] 1 lock held by swapper/0/0: [ 14.850550][ C0] #0: ffffffffa6374480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.850934][ C0] [ 14.850934][ C0] stack backtrace: [ 14.851206][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.851212][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.851214][ C0] Call Trace: [ 14.851216][ C0] [ 14.851218][ C0] dump_stack_lvl+0x82/0xd0 [ 14.851225][ C0] print_usage_bug.part.0+0x25f/0x360 [ 14.851231][ C0] mark_lock_irq+0x343/0x400 [ 14.851234][ C0] ? is_bpf_text_address+0x67/0x120 [ 14.851242][ C0] ? __lock_release+0x5d/0x170 [ 14.851246][ C0] ? save_trace+0x52/0x170 [ 14.851250][ C0] mark_lock+0x174/0x2f0 [ 14.851255][ C0] mark_usage+0x46/0x150 [ 14.851258][ C0] __lock_acquire+0x3eb/0x9d0 [ 14.851263][ C0] lock_acquire.part.0+0xb6/0x240 [ 14.851267][ C0] ? simple_pin_fs+0x24/0x150 [ 14.851271][ C0] ? rcu_is_watching+0x12/0xc0 [ 14.851278][ C0] ? lock_acquire+0x10c/0x170 [ 14.851281][ C0] ? simple_pin_fs+0x24/0x150 [ 14.851285][ C0] _raw_spin_lock+0x33/0x40 [ 14.851289][ C0] ? simple_pin_fs+0x24/0x150 [ 14.851292][ C0] simple_pin_fs+0x24/0x150 [ 14.851296][ C0] debugfs_remove+0x35/0x70 [ 14.851299][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 14.851305][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.851308][ C0] ? __sk_destruct+0x383/0x780 [ 14.851315][ C0] ? rcu_do_batch+0x34c/0xf20 [ 14.851319][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.851321][ C0] ? irq_exit_rcu+0xe/0x30 [ 14.851324][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.851330][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.851334][ C0] ? pv_native_safe_halt+0xf/0x20 [ 14.851337][ C0] ? default_idle+0x9/0x10 [ 14.851339][ C0] ? default_idle_call+0x6d/0xb0 [ 14.851341][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.851346][ C0] ? do_idle+0xf6/0x160 [ 14.851349][ C0] ? cpu_startup_entry+0x54/0x60 [ 14.851352][ C0] ? rest_init+0x14b/0x260 [ 14.851355][ C0] ? start_kernel+0x350/0x410 [ 14.851360][ C0] __put_net+0x19/0x60 [ 14.851364][ C0] __sk_destruct+0x58a/0x780 [ 14.851368][ C0] ? rcu_do_batch+0x34a/0xf20 [ 14.851372][ C0] rcu_do_batch+0x34c/0xf20 [ 14.851375][ C0] ? find_held_lock+0x2b/0x80 [ 14.851379][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.851383][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.851386][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.851390][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.851395][ C0] rcu_core+0x2bb/0x500 [ 14.851398][ C0] handle_softirqs+0x218/0x620 [ 14.851403][ C0] __irq_exit_rcu+0xfa/0x160 [ 14.851405][ C0] irq_exit_rcu+0xe/0x30 [ 14.851408][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.851411][ C0] [ 14.851412][ C0] [ 14.851414][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.851417][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.851421][ 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 [ 14.851424][ C0] RSP: 0018:ffffffffa6007df8 EFLAGS: 00000246 [ 14.851428][ C0] RAX: 0000000000070f53 RBX: 1ffffffff4c00fc3 RCX: ffffffffa5355a19 [ 14.851430][ C0] RDX: 0000000000000000 RSI: ffffffffa5e85f31 RDI: ffffffffa5650ce0 [ 14.851432][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 14.851433][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.851435][ C0] R13: ffffffffa601f240 R14: dffffc0000000000 R15: 0000000000014770 [ 14.851439][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.851444][ C0] default_idle+0x9/0x10 [ 14.851446][ C0] default_idle_call+0x6d/0xb0 [ 14.851449][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 14.851452][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.851456][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.851464][ C0] do_idle+0xf6/0x160 [ 14.851468][ C0] cpu_startup_entry+0x54/0x60 [ 14.851472][ C0] rest_init+0x14b/0x260 [ 14.851475][ C0] start_kernel+0x350/0x410 [ 14.851478][ C0] x86_64_start_reservations+0x18/0x30 [ 14.851483][ C0] x86_64_start_kernel+0xba/0x110 [ 14.851487][ C0] common_startup_64+0x13e/0x148 [ 14.851496][ C0] [ 14.869017][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.869370][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 14.870084][ C0] preempt_count: 101, expected: 0 [ 14.870293][ C0] RCU nest depth: 0, expected: 0 [ 14.870494][ C0] INFO: lockdep is turned off. [ 14.870932][ C0] Preemption disabled at: [ 14.870934][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 14.871410][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.871414][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.871416][ C0] Call Trace: [ 14.871418][ C0] [ 14.871419][ C0] dump_stack_lvl+0xb0/0xd0 [ 14.871424][ C0] __might_resched+0x360/0x5a0 [ 14.871430][ C0] down_write+0x72/0x210 [ 14.871434][ C0] ? __pfx_down_write+0x10/0x10 [ 14.871437][ C0] ? simple_recursive_removal+0x3a/0x860 [ 14.871441][ C0] ? rcu_is_watching+0x12/0xc0 [ 14.871447][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 14.871452][ C0] simple_recursive_removal+0x166/0x860 [ 14.871454][ C0] ? __pfx_remove_one+0x10/0x10 [ 14.871458][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 14.871463][ C0] debugfs_remove+0x44/0x70 [ 14.871466][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 14.871470][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.871474][ C0] ? __sk_destruct+0x383/0x780 [ 14.871478][ C0] ? rcu_do_batch+0x34c/0xf20 [ 14.871482][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.871485][ C0] ? irq_exit_rcu+0xe/0x30 [ 14.871488][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.871493][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.871496][ C0] ? pv_native_safe_halt+0xf/0x20 [ 14.871499][ C0] ? default_idle+0x9/0x10 [ 14.871501][ C0] ? default_idle_call+0x6d/0xb0 [ 14.871504][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.871508][ C0] ? do_idle+0xf6/0x160 [ 14.871511][ C0] ? cpu_startup_entry+0x54/0x60 [ 14.871514][ C0] ? rest_init+0x14b/0x260 [ 14.871517][ C0] ? start_kernel+0x350/0x410 [ 14.871524][ C0] __put_net+0x19/0x60 [ 14.871527][ C0] __sk_destruct+0x58a/0x780 [ 14.871531][ C0] ? rcu_do_batch+0x34a/0xf20 [ 14.871534][ C0] rcu_do_batch+0x34c/0xf20 [ 14.871538][ C0] ? find_held_lock+0x2b/0x80 [ 14.871543][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.871546][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.871550][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.871554][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.871559][ C0] rcu_core+0x2bb/0x500 [ 14.871562][ C0] handle_softirqs+0x218/0x620 [ 14.871567][ C0] __irq_exit_rcu+0xfa/0x160 [ 14.871569][ C0] irq_exit_rcu+0xe/0x30 [ 14.871571][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.871575][ C0] [ 14.871576][ C0] [ 14.871577][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.871580][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.871584][ 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 [ 14.871586][ C0] RSP: 0018:ffffffffa6007df8 EFLAGS: 00000246 [ 14.871589][ C0] RAX: 0000000000070f53 RBX: 1ffffffff4c00fc3 RCX: ffffffffa5355a19 [ 14.871592][ C0] RDX: 0000000000000000 RSI: ffffffffa5e85f31 RDI: ffffffffa5650ce0 [ 14.871593][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 14.871595][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.871597][ C0] R13: ffffffffa601f240 R14: dffffc0000000000 R15: 0000000000014770 [ 14.871601][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.871606][ C0] default_idle+0x9/0x10 [ 14.871608][ C0] default_idle_call+0x6d/0xb0 [ 14.871611][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 14.871614][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.871619][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.871625][ C0] do_idle+0xf6/0x160 [ 14.871629][ C0] cpu_startup_entry+0x54/0x60 [ 14.871633][ C0] rest_init+0x14b/0x260 [ 14.871636][ C0] start_kernel+0x350/0x410 [ 14.871640][ C0] x86_64_start_reservations+0x18/0x30 [ 14.871644][ C0] x86_64_start_kernel+0xba/0x110 [ 14.871648][ C0] common_startup_64+0x13e/0x148 [ 14.871655][ C0] [ 16.678917][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.679236][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 16.679505][ C3] preempt_count: 100, expected: 0 [ 16.679654][ C3] RCU nest depth: 0, expected: 0 [ 16.679802][ C3] INFO: lockdep is turned off. [ 16.679951][ C3] Preemption disabled at: [ 16.679953][ C3] [] handle_softirqs+0xe5/0x620 [ 16.680274][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.680280][ C3] Tainted: [W]=WARN [ 16.680282][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.680283][ C3] Call Trace: [ 16.680286][ C3] [ 16.680288][ C3] dump_stack_lvl+0xb0/0xd0 [ 16.680297][ C3] __might_resched+0x360/0x5a0 [ 16.680304][ C3] down_write+0x72/0x210 [ 16.680309][ C3] ? __pfx_down_write+0x10/0x10 [ 16.680312][ C3] ? simple_recursive_removal+0x3a/0x860 [ 16.680318][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.680327][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.680333][ C3] simple_recursive_removal+0x166/0x860 [ 16.680335][ C3] ? __pfx_remove_one+0x10/0x10 [ 16.680341][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.680346][ C3] debugfs_remove+0x44/0x70 [ 16.680349][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 16.680355][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.680358][ C3] ? __sk_destruct+0x383/0x780 [ 16.680366][ C3] ? rcu_do_batch+0x34c/0xf20 [ 16.680371][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.680374][ C3] ? smpboot_thread_fn+0x307/0x960 [ 16.680378][ C3] ? kthread+0x37b/0x600 [ 16.680382][ C3] ? ret_from_fork+0x31/0x70 [ 16.680390][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 16.680397][ C3] ? migrate_enable+0x1f2/0x270 [ 16.680401][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 16.680405][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.680409][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.680414][ C3] __put_net+0x19/0x60 [ 16.680418][ C3] __sk_destruct+0x58a/0x780 [ 16.680421][ C3] ? rcu_do_batch+0x34a/0xf20 [ 16.680424][ C3] rcu_do_batch+0x34c/0xf20 [ 16.680429][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.680433][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.680437][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.680443][ C3] rcu_core+0x2bb/0x500 [ 16.680446][ C3] handle_softirqs+0x218/0x620 [ 16.680450][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 16.680453][ C3] run_ksoftirqd+0x3f/0x70 [ 16.680455][ C3] smpboot_thread_fn+0x307/0x960 [ 16.680458][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.680461][ C3] kthread+0x37b/0x600 [ 16.680465][ C3] ? __pfx_kthread+0x10/0x10 [ 16.680467][ C3] ? ret_from_fork+0x1b/0x70 [ 16.680471][ C3] ? __lock_release+0x5d/0x170 [ 16.680477][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.680481][ C3] ? __pfx_kthread+0x10/0x10 [ 16.680484][ C3] ret_from_fork+0x31/0x70 [ 16.680487][ C3] ? __pfx_kthread+0x10/0x10 [ 16.680490][ C3] ret_from_fork_asm+0x1a/0x30 [ 16.680497][ C3]