[ 16.075010][ C0] [ 16.075177][ C0] ================================ [ 16.075396][ C0] WARNING: inconsistent lock state [ 16.075606][ C0] 6.15.0-virtme #1 Not tainted [ 16.075823][ C0] -------------------------------- [ 16.076037][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.076300][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.076559][ C0] ffffffff9efc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.076935][ C0] {SOFTIRQ-ON-W} state was registered at: [ 16.077143][ C0] __lock_acquire+0x20b/0x7e0 [ 16.077359][ C0] lock_acquire.part.0+0xb6/0x240 [ 16.077568][ C0] _raw_spin_lock+0x33/0x40 [ 16.077785][ C0] simple_pin_fs+0x24/0x150 [ 16.077994][ C0] start_creating.part.0+0x52/0x310 [ 16.078204][ C0] debugfs_create_dir+0x6a/0x540 [ 16.078425][ C0] component_debug_init+0x17/0x30 [ 16.078636][ C0] do_one_initcall+0x8f/0x1e0 [ 16.078848][ C0] do_initcalls+0x176/0x280 [ 16.079061][ C0] kernel_init_freeable+0x22d/0x300 [ 16.079280][ C0] kernel_init+0x20/0x200 [ 16.079501][ C0] ret_from_fork+0x240/0x320 [ 16.079720][ C0] ret_from_fork_asm+0x1a/0x30 [ 16.079938][ C0] irq event stamp: 456070 [ 16.080100][ C0] hardirqs last enabled at (456070): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.080523][ C0] hardirqs last disabled at (456069): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.080946][ C0] softirqs last enabled at (454002): [] handle_softirqs+0x358/0x620 [ 16.081318][ C0] softirqs last disabled at (454027): [] __irq_exit_rcu+0xfa/0x160 [ 16.081706][ C0] [ 16.081706][ C0] other info that might help us debug this: [ 16.082014][ C0] Possible unsafe locking scenario: [ 16.082014][ C0] [ 16.082330][ C0] CPU0 [ 16.082489][ C0] ---- [ 16.082649][ C0] lock(pin_fs_lock); [ 16.082817][ C0] [ 16.082979][ C0] lock(pin_fs_lock); [ 16.083142][ C0] [ 16.083142][ C0] *** DEADLOCK *** [ 16.083142][ C0] [ 16.083461][ C0] 1 lock held by swapper/0/0: [ 16.083676][ C0] #0: ffffffff9ed774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.084072][ C0] [ 16.084072][ C0] stack backtrace: [ 16.084343][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.084348][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.084351][ C0] Call Trace: [ 16.084353][ C0] [ 16.084355][ C0] dump_stack_lvl+0x82/0xd0 [ 16.084363][ C0] print_usage_bug.part.0+0x25f/0x360 [ 16.084369][ C0] mark_lock_irq+0x343/0x400 [ 16.084372][ C0] ? is_bpf_text_address+0x67/0x120 [ 16.084379][ C0] ? __lock_release+0x5d/0x170 [ 16.084383][ C0] ? save_trace+0x52/0x170 [ 16.084389][ C0] mark_lock+0x174/0x2f0 [ 16.084393][ C0] mark_usage+0x46/0x150 [ 16.084396][ C0] __lock_acquire+0x20b/0x7e0 [ 16.084399][ C0] ? __lock_acquire+0x44d/0x7e0 [ 16.084403][ C0] lock_acquire.part.0+0xb6/0x240 [ 16.084406][ C0] ? simple_pin_fs+0x24/0x150 [ 16.084411][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.084416][ C0] ? lock_acquire+0x10c/0x170 [ 16.084419][ C0] ? simple_pin_fs+0x24/0x150 [ 16.084423][ C0] _raw_spin_lock+0x33/0x40 [ 16.084427][ C0] ? simple_pin_fs+0x24/0x150 [ 16.084430][ C0] simple_pin_fs+0x24/0x150 [ 16.084435][ C0] debugfs_remove+0x35/0x70 [ 16.084439][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 16.084446][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.084450][ C0] ? __sk_destruct+0x383/0x780 [ 16.084457][ C0] ? rcu_do_batch+0x34c/0xf20 [ 16.084460][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.084463][ C0] ? irq_exit_rcu+0xe/0x30 [ 16.084466][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.084472][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.084477][ C0] ? pv_native_safe_halt+0xf/0x20 [ 16.084480][ C0] ? default_idle+0x9/0x10 [ 16.084483][ C0] ? default_idle_call+0x6d/0xb0 [ 16.084485][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.084490][ C0] ? do_idle+0xf6/0x160 [ 16.084492][ C0] ? cpu_startup_entry+0x54/0x60 [ 16.084495][ C0] ? rest_init+0x14b/0x260 [ 16.084498][ C0] ? start_kernel+0x350/0x410 [ 16.084504][ C0] __put_net+0x19/0x60 [ 16.084508][ C0] __sk_destruct+0x58a/0x780 [ 16.084512][ C0] ? rcu_do_batch+0x34a/0xf20 [ 16.084515][ C0] rcu_do_batch+0x34c/0xf20 [ 16.084518][ C0] ? find_held_lock+0x2b/0x80 [ 16.084522][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.084526][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.084529][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.084532][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.084537][ C0] rcu_core+0x2bb/0x500 [ 16.084542][ C0] handle_softirqs+0x218/0x620 [ 16.084547][ C0] __irq_exit_rcu+0xfa/0x160 [ 16.084551][ C0] irq_exit_rcu+0xe/0x30 [ 16.084553][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.084557][ C0] [ 16.084558][ C0] [ 16.084560][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.084563][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.084567][ C0] Code: a2 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 47 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 [ 16.084570][ C0] RSP: 0018:ffffffff9ea07df8 EFLAGS: 00000242 [ 16.084574][ C0] RAX: 000000000006ed89 RBX: 1ffffffff3d40fc3 RCX: ffffffff9dd8f5d9 [ 16.084576][ C0] RDX: 0000000000000000 RSI: ffffffff9e88f4e4 RDI: ffffffff9e053be0 [ 16.084578][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 16.084579][ C0] R10: ffff8880360337d3 R11: ffffffff9ea11288 R12: 0000000000000000 [ 16.084581][ C0] R13: ffffffff9ea1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 16.084585][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.084590][ C0] default_idle+0x9/0x10 [ 16.084592][ C0] default_idle_call+0x6d/0xb0 [ 16.084595][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 16.084598][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.084602][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.084608][ C0] do_idle+0xf6/0x160 [ 16.084612][ C0] cpu_startup_entry+0x54/0x60 [ 16.084615][ C0] rest_init+0x14b/0x260 [ 16.084618][ C0] start_kernel+0x350/0x410 [ 16.084622][ C0] x86_64_start_reservations+0x18/0x30 [ 16.084627][ C0] x86_64_start_kernel+0xf8/0x150 [ 16.084631][ C0] common_startup_64+0x13e/0x148 [ 16.084642][ C0] [ 16.103056][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.103422][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 16.103768][ C0] preempt_count: 101, expected: 0 [ 16.103971][ C0] RCU nest depth: 0, expected: 0 [ 16.104173][ C0] INFO: lockdep is turned off. [ 16.104380][ C0] Preemption disabled at: [ 16.104381][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 16.104953][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.104958][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.104960][ C0] Call Trace: [ 16.104962][ C0] [ 16.104964][ C0] dump_stack_lvl+0xb0/0xd0 [ 16.104972][ C0] __might_resched+0x360/0x5a0 [ 16.104980][ C0] down_write+0x72/0x210 [ 16.104985][ C0] ? __pfx_down_write+0x10/0x10 [ 16.104988][ C0] ? simple_recursive_removal+0x33/0x610 [ 16.104993][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.104998][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.105005][ C0] simple_recursive_removal+0x6a/0x610 [ 16.105008][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.105011][ C0] ? __pfx_remove_one+0x10/0x10 [ 16.105018][ C0] debugfs_remove+0x44/0x70 [ 16.105021][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 16.105028][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.105031][ C0] ? __sk_destruct+0x383/0x780 [ 16.105037][ C0] ? rcu_do_batch+0x34c/0xf20 [ 16.105042][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.105045][ C0] ? irq_exit_rcu+0xe/0x30 [ 16.105051][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.105057][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.105061][ C0] ? pv_native_safe_halt+0xf/0x20 [ 16.105065][ C0] ? default_idle+0x9/0x10 [ 16.105068][ C0] ? default_idle_call+0x6d/0xb0 [ 16.105070][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.105075][ C0] ? do_idle+0xf6/0x160 [ 16.105077][ C0] ? cpu_startup_entry+0x54/0x60 [ 16.105080][ C0] ? rest_init+0x14b/0x260 [ 16.105083][ C0] ? start_kernel+0x350/0x410 [ 16.105091][ C0] __put_net+0x19/0x60 [ 16.105096][ C0] __sk_destruct+0x58a/0x780 [ 16.105100][ C0] ? rcu_do_batch+0x34a/0xf20 [ 16.105103][ C0] rcu_do_batch+0x34c/0xf20 [ 16.105106][ C0] ? find_held_lock+0x2b/0x80 [ 16.105113][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.105116][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.105122][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.105125][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.105129][ C0] rcu_core+0x2bb/0x500 [ 16.105135][ C0] handle_softirqs+0x218/0x620 [ 16.105140][ C0] __irq_exit_rcu+0xfa/0x160 [ 16.105143][ C0] irq_exit_rcu+0xe/0x30 [ 16.105146][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.105150][ C0] [ 16.105151][ C0] [ 16.105152][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.105155][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.105159][ C0] Code: a2 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 47 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 [ 16.105162][ C0] RSP: 0018:ffffffff9ea07df8 EFLAGS: 00000242 [ 16.105165][ C0] RAX: 000000000006ed89 RBX: 1ffffffff3d40fc3 RCX: ffffffff9dd8f5d9 [ 16.105167][ C0] RDX: 0000000000000000 RSI: ffffffff9e88f4e4 RDI: ffffffff9e053be0 [ 16.105169][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 16.105170][ C0] R10: ffff8880360337d3 R11: ffffffff9ea11288 R12: 0000000000000000 [ 16.105172][ C0] R13: ffffffff9ea1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 16.105176][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.105180][ C0] default_idle+0x9/0x10 [ 16.105183][ C0] default_idle_call+0x6d/0xb0 [ 16.105185][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 16.105189][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.105193][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.105199][ C0] do_idle+0xf6/0x160 [ 16.105203][ C0] cpu_startup_entry+0x54/0x60 [ 16.105206][ C0] rest_init+0x14b/0x260 [ 16.105210][ C0] start_kernel+0x350/0x410 [ 16.105213][ C0] x86_64_start_reservations+0x18/0x30 [ 16.105219][ C0] x86_64_start_kernel+0xf8/0x150 [ 16.105223][ C0] common_startup_64+0x13e/0x148 [ 16.105234][ C0] [ 18.065585][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.065917][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 18.066197][ C1] preempt_count: 100, expected: 0 [ 18.066371][ C1] RCU nest depth: 0, expected: 0 [ 18.066536][ C1] INFO: lockdep is turned off. [ 18.066704][ C1] Preemption disabled at: [ 18.066706][ C1] [] handle_softirqs+0xe5/0x620 [ 18.067046][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 18.067053][ C1] Tainted: [W]=WARN [ 18.067054][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.067058][ C1] Call Trace: [ 18.067060][ C1] [ 18.067062][ C1] dump_stack_lvl+0xb0/0xd0 [ 18.067071][ C1] __might_resched+0x360/0x5a0 [ 18.067080][ C1] down_write+0x72/0x210 [ 18.067085][ C1] ? __pfx_down_write+0x10/0x10 [ 18.067089][ C1] ? simple_recursive_removal+0x33/0x610 [ 18.067094][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.067100][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 18.067108][ C1] simple_recursive_removal+0x6a/0x610 [ 18.067111][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 18.067114][ C1] ? __pfx_remove_one+0x10/0x10 [ 18.067121][ C1] debugfs_remove+0x44/0x70 [ 18.067124][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 18.067132][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.067135][ C1] ? __sk_destruct+0x383/0x780 [ 18.067143][ C1] ? rcu_do_batch+0x34c/0xf20 [ 18.067147][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.067150][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 18.067155][ C1] ? kthread+0x37e/0x600 [ 18.067159][ C1] ? ret_from_fork+0x240/0x320 [ 18.067164][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 18.067171][ C1] ? migrate_enable+0x1f2/0x270 [ 18.067175][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 18.067179][ C1] ? bpf_sk_storage_free+0x9f/0x1c0 [ 18.067184][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.067188][ C1] __put_net+0x19/0x60 [ 18.067193][ C1] __sk_destruct+0x58a/0x780 [ 18.067197][ C1] ? rcu_do_batch+0x34a/0xf20 [ 18.067199][ C1] rcu_do_batch+0x34c/0xf20 [ 18.067204][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.067207][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.067210][ C1] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 18.067219][ C1] rcu_core+0x2bb/0x500 [ 18.067225][ C1] handle_softirqs+0x218/0x620 [ 18.067229][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 18.067233][ C1] run_ksoftirqd+0x3f/0x70 [ 18.067236][ C1] smpboot_thread_fn+0x30a/0x960 [ 18.067239][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 18.067244][ C1] kthread+0x37e/0x600 [ 18.067246][ C1] ? __pfx_kthread+0x10/0x10 [ 18.067248][ C1] ? ret_from_fork+0x1b/0x320 [ 18.067251][ C1] ? __lock_release+0x5d/0x170 [ 18.067255][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.067258][ C1] ? __pfx_kthread+0x10/0x10 [ 18.067261][ C1] ret_from_fork+0x240/0x320 [ 18.067264][ C1] ? __pfx_kthread+0x10/0x10 [ 18.067266][ C1] ret_from_fork_asm+0x1a/0x30 [ 18.067274][ C1]