[ 20.914441][ C0] [ 20.914595][ C0] ================================ [ 20.914815][ C0] WARNING: inconsistent lock state [ 20.915044][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 20.915256][ C0] -------------------------------- [ 20.915467][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 20.915733][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 20.916007][ C0] ffffffffb3bbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 20.916390][ C0] {SOFTIRQ-ON-W} state was registered at: [ 20.916599][ C0] __lock_acquire+0x3eb/0x9d0 [ 20.916823][ C0] lock_acquire.part.0+0xb6/0x240 [ 20.917036][ C0] _raw_spin_lock+0x33/0x40 [ 20.917251][ C0] simple_pin_fs+0x24/0x150 [ 20.917457][ C0] start_creating.part.0+0x3f/0x2f0 [ 20.917668][ C0] debugfs_create_dir+0x6a/0x540 [ 20.917874][ C0] component_debug_init+0x17/0x30 [ 20.918093][ C0] do_one_initcall+0x8f/0x1e0 [ 20.918314][ C0] do_initcalls+0x176/0x280 [ 20.918529][ C0] kernel_init_freeable+0x22d/0x300 [ 20.918738][ C0] kernel_init+0x20/0x200 [ 20.918948][ C0] ret_from_fork+0x31/0x70 [ 20.919157][ C0] ret_from_fork_asm+0x1a/0x30 [ 20.919367][ C0] irq event stamp: 459776 [ 20.919527][ C0] hardirqs last enabled at (459776): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.919943][ C0] hardirqs last disabled at (459775): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 20.920355][ C0] softirqs last enabled at (457680): [] handle_softirqs+0x358/0x620 [ 20.920720][ C0] softirqs last disabled at (457711): [] __irq_exit_rcu+0xfa/0x160 [ 20.921082][ C0] [ 20.921082][ C0] other info that might help us debug this: [ 20.921387][ C0] Possible unsafe locking scenario: [ 20.921387][ C0] [ 20.921692][ C0] CPU0 [ 20.921848][ C0] ---- [ 20.922005][ C0] lock(pin_fs_lock); [ 20.922164][ C0] [ 20.922320][ C0] lock(pin_fs_lock); [ 20.922479][ C0] [ 20.922479][ C0] *** DEADLOCK *** [ 20.922479][ C0] [ 20.922790][ C0] 1 lock held by swapper/0/0: [ 20.923013][ C0] #0: ffffffffb39749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 20.923390][ C0] [ 20.923390][ C0] stack backtrace: [ 20.923648][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 20.923653][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.923655][ C0] Call Trace: [ 20.923658][ C0] [ 20.923659][ C0] dump_stack_lvl+0x82/0xd0 [ 20.923667][ C0] print_usage_bug.part.0+0x25f/0x360 [ 20.923672][ C0] mark_lock_irq+0x343/0x400 [ 20.923676][ C0] ? is_bpf_text_address+0x67/0x120 [ 20.923683][ C0] ? __lock_release+0x5d/0x170 [ 20.923686][ C0] ? save_trace+0x52/0x170 [ 20.923691][ C0] mark_lock+0x174/0x2f0 [ 20.923696][ C0] mark_usage+0x46/0x150 [ 20.923699][ C0] __lock_acquire+0x3eb/0x9d0 [ 20.923705][ C0] lock_acquire.part.0+0xb6/0x240 [ 20.923707][ C0] ? simple_pin_fs+0x24/0x150 [ 20.923711][ C0] ? rcu_is_watching+0x12/0xc0 [ 20.923717][ C0] ? lock_acquire+0x10c/0x170 [ 20.923720][ C0] ? simple_pin_fs+0x24/0x150 [ 20.923723][ C0] _raw_spin_lock+0x33/0x40 [ 20.923726][ C0] ? simple_pin_fs+0x24/0x150 [ 20.923728][ C0] simple_pin_fs+0x24/0x150 [ 20.923731][ C0] debugfs_remove+0x35/0x70 [ 20.923735][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 20.923741][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.923744][ C0] ? __sk_destruct+0x383/0x780 [ 20.923749][ C0] ? rcu_do_batch+0x34f/0xf20 [ 20.923752][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.923755][ C0] ? irq_exit_rcu+0xe/0x30 [ 20.923757][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.923763][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.923767][ C0] ? pv_native_safe_halt+0xf/0x20 [ 20.923770][ C0] ? default_idle+0x9/0x10 [ 20.923772][ C0] ? default_idle_call+0x6d/0xb0 [ 20.923775][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 20.923781][ C0] ? do_idle+0xf6/0x160 [ 20.923784][ C0] ? cpu_startup_entry+0x54/0x60 [ 20.923787][ C0] ? rest_init+0x14b/0x260 [ 20.923790][ C0] ? start_kernel+0x350/0x410 [ 20.923796][ C0] __put_net+0x19/0x60 [ 20.923800][ C0] __sk_destruct+0x58a/0x780 [ 20.923804][ C0] ? rcu_do_batch+0x34a/0xf20 [ 20.923808][ C0] rcu_do_batch+0x34f/0xf20 [ 20.923812][ C0] ? find_held_lock+0x2b/0x80 [ 20.923816][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.923820][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.923824][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.923828][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 20.923832][ C0] rcu_core+0x2bb/0x500 [ 20.923837][ C0] handle_softirqs+0x218/0x620 [ 20.923841][ C0] __irq_exit_rcu+0xfa/0x160 [ 20.923844][ C0] irq_exit_rcu+0xe/0x30 [ 20.923846][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.923850][ C0] [ 20.923851][ C0] [ 20.923852][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.923855][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 20.923860][ C0] 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 [ 20.923863][ C0] RSP: 0018:ffffffffb3607df8 EFLAGS: 00000246 [ 20.923866][ C0] RAX: 000000000006fbed RBX: 1ffffffff66c0fc3 RCX: ffffffffb295ba19 [ 20.923869][ C0] RDX: 0000000000000000 RSI: ffffffffb3487785 RDI: ffffffffb2c51260 [ 20.923871][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 20.923872][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 20.923874][ C0] R13: ffffffffb361f240 R14: dffffc0000000000 R15: 0000000000014770 [ 20.923878][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 20.923883][ C0] default_idle+0x9/0x10 [ 20.923886][ C0] default_idle_call+0x6d/0xb0 [ 20.923888][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 20.923892][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 20.923897][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 20.923905][ C0] do_idle+0xf6/0x160 [ 20.923909][ C0] cpu_startup_entry+0x54/0x60 [ 20.923912][ C0] rest_init+0x14b/0x260 [ 20.923916][ C0] start_kernel+0x350/0x410 [ 20.923920][ C0] x86_64_start_reservations+0x18/0x30 [ 20.923925][ C0] x86_64_start_kernel+0xba/0x110 [ 20.923929][ C0] common_startup_64+0x13e/0x148 [ 20.923938][ C0] [ 20.941404][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 20.941758][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 20.942112][ C0] preempt_count: 101, expected: 0 [ 20.942325][ C0] RCU nest depth: 0, expected: 0 [ 20.942525][ C0] INFO: lockdep is turned off. [ 20.942725][ C0] Preemption disabled at: [ 20.942727][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 20.943195][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 20.943200][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.943202][ C0] Call Trace: [ 20.943204][ C0] [ 20.943205][ C0] dump_stack_lvl+0xb0/0xd0 [ 20.943211][ C0] __might_resched+0x360/0x5a0 [ 20.943218][ C0] down_write+0x72/0x210 [ 20.943223][ C0] ? __pfx_down_write+0x10/0x10 [ 20.943226][ C0] ? simple_recursive_removal+0x3a/0x860 [ 20.943231][ C0] ? rcu_is_watching+0x12/0xc0 [ 20.943238][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 20.943243][ C0] simple_recursive_removal+0x166/0x860 [ 20.943246][ C0] ? __pfx_remove_one+0x10/0x10 [ 20.943250][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 20.943255][ C0] debugfs_remove+0x44/0x70 [ 20.943258][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 20.943263][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.943267][ C0] ? __sk_destruct+0x383/0x780 [ 20.943273][ C0] ? rcu_do_batch+0x34f/0xf20 [ 20.943278][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.943281][ C0] ? irq_exit_rcu+0xe/0x30 [ 20.943285][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.943290][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.943293][ C0] ? pv_native_safe_halt+0xf/0x20 [ 20.943297][ C0] ? default_idle+0x9/0x10 [ 20.943299][ C0] ? default_idle_call+0x6d/0xb0 [ 20.943301][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 20.943307][ C0] ? do_idle+0xf6/0x160 [ 20.943310][ C0] ? cpu_startup_entry+0x54/0x60 [ 20.943313][ C0] ? rest_init+0x14b/0x260 [ 20.943317][ C0] ? start_kernel+0x350/0x410 [ 20.943325][ C0] __put_net+0x19/0x60 [ 20.943329][ C0] __sk_destruct+0x58a/0x780 [ 20.943333][ C0] ? rcu_do_batch+0x34a/0xf20 [ 20.943336][ C0] rcu_do_batch+0x34f/0xf20 [ 20.943340][ C0] ? find_held_lock+0x2b/0x80 [ 20.943345][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.943349][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.943353][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.943357][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 20.943362][ C0] rcu_core+0x2bb/0x500 [ 20.943366][ C0] handle_softirqs+0x218/0x620 [ 20.943370][ C0] __irq_exit_rcu+0xfa/0x160 [ 20.943373][ C0] irq_exit_rcu+0xe/0x30 [ 20.943376][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.943380][ C0] [ 20.943381][ C0] [ 20.943382][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.943386][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 20.943390][ C0] 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 [ 20.943392][ C0] RSP: 0018:ffffffffb3607df8 EFLAGS: 00000246 [ 20.943396][ C0] RAX: 000000000006fbed RBX: 1ffffffff66c0fc3 RCX: ffffffffb295ba19 [ 20.943398][ C0] RDX: 0000000000000000 RSI: ffffffffb3487785 RDI: ffffffffb2c51260 [ 20.943400][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 20.943402][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 20.943403][ C0] R13: ffffffffb361f240 R14: dffffc0000000000 R15: 0000000000014770 [ 20.943407][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 20.943412][ C0] default_idle+0x9/0x10 [ 20.943414][ C0] default_idle_call+0x6d/0xb0 [ 20.943417][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 20.943421][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 20.943425][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 20.943432][ C0] do_idle+0xf6/0x160 [ 20.943436][ C0] cpu_startup_entry+0x54/0x60 [ 20.943440][ C0] rest_init+0x14b/0x260 [ 20.943443][ C0] start_kernel+0x350/0x410 [ 20.943447][ C0] x86_64_start_reservations+0x18/0x30 [ 20.943451][ C0] x86_64_start_kernel+0xba/0x110 [ 20.943456][ C0] common_startup_64+0x13e/0x148 [ 20.943464][ C0] [ 26.882946][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 26.883302][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 26.883618][ C3] preempt_count: 100, expected: 0 [ 26.883808][ C3] RCU nest depth: 0, expected: 0 [ 26.883987][ C3] INFO: lockdep is turned off. [ 26.884162][ C3] Preemption disabled at: [ 26.884164][ C3] [] handle_softirqs+0xe5/0x620 [ 26.884525][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 26.884531][ C3] Tainted: [W]=WARN [ 26.884533][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 26.884535][ C3] Call Trace: [ 26.884537][ C3] [ 26.884539][ C3] dump_stack_lvl+0xb0/0xd0 [ 26.884549][ C3] __might_resched+0x360/0x5a0 [ 26.884557][ C3] down_write+0x72/0x210 [ 26.884563][ C3] ? __pfx_down_write+0x10/0x10 [ 26.884567][ C3] ? simple_recursive_removal+0x3a/0x860 [ 26.884573][ C3] ? rcu_is_watching+0x12/0xc0 [ 26.884582][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 26.884588][ C3] simple_recursive_removal+0x166/0x860 [ 26.884591][ C3] ? __pfx_remove_one+0x10/0x10 [ 26.884597][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 26.884602][ C3] debugfs_remove+0x44/0x70 [ 26.884605][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 26.884612][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 26.884615][ C3] ? __sk_destruct+0x383/0x780 [ 26.884623][ C3] ? rcu_do_batch+0x34f/0xf20 [ 26.884628][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 26.884631][ C3] ? smpboot_thread_fn+0x307/0x960 [ 26.884635][ C3] ? kthread+0x37b/0x600 [ 26.884639][ C3] ? ret_from_fork+0x31/0x70 [ 26.884643][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 26.884651][ C3] ? migrate_enable+0x1f2/0x270 [ 26.884656][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 26.884659][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 26.884664][ C3] ? rcu_is_watching+0x12/0xc0 [ 26.884669][ C3] __put_net+0x19/0x60 [ 26.884673][ C3] __sk_destruct+0x58a/0x780 [ 26.884677][ C3] ? rcu_do_batch+0x34a/0xf20 [ 26.884680][ C3] rcu_do_batch+0x34f/0xf20 [ 26.884686][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 26.884690][ C3] ? rcu_is_watching+0x12/0xc0 [ 26.884695][ C3] rcu_core+0x2bb/0x500 [ 26.884700][ C3] handle_softirqs+0x218/0x620 [ 26.884704][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 26.884707][ C3] run_ksoftirqd+0x3f/0x70 [ 26.884709][ C3] smpboot_thread_fn+0x307/0x960 [ 26.884712][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 26.884716][ C3] kthread+0x37b/0x600 [ 26.884720][ C3] ? __pfx_kthread+0x10/0x10 [ 26.884722][ C3] ? ret_from_fork+0x1b/0x70 [ 26.884724][ C3] ? __lock_release+0x5d/0x170 [ 26.884728][ C3] ? rcu_is_watching+0x12/0xc0 [ 26.884731][ C3] ? __pfx_kthread+0x10/0x10 [ 26.884735][ C3] ret_from_fork+0x31/0x70 [ 26.884737][ C3] ? __pfx_kthread+0x10/0x10 [ 26.884740][ C3] ret_from_fork_asm+0x1a/0x30 [ 26.884747][ C3]