[ 13.458861][ C0] [ 13.459029][ C0] ================================ [ 13.459260][ C0] WARNING: inconsistent lock state [ 13.459489][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 13.459717][ C0] -------------------------------- [ 13.459940][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.460228][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.460514][ C0] ffffffffb5fbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.460915][ C0] {SOFTIRQ-ON-W} state was registered at: [ 13.461146][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.461384][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.461610][ C0] _raw_spin_lock+0x33/0x40 [ 13.461843][ C0] simple_pin_fs+0x24/0x150 [ 13.462072][ C0] start_creating.part.0+0x3f/0x2f0 [ 13.462303][ C0] debugfs_create_dir+0x6a/0x540 [ 13.462536][ C0] component_debug_init+0x17/0x30 [ 13.462764][ C0] do_one_initcall+0x8f/0x1e0 [ 13.462996][ C0] do_initcalls+0x176/0x280 [ 13.463226][ C0] kernel_init_freeable+0x22d/0x300 [ 13.463454][ C0] kernel_init+0x20/0x200 [ 13.463683][ C0] ret_from_fork+0x31/0x70 [ 13.463919][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.464150][ C0] irq event stamp: 406156 [ 13.464332][ C0] hardirqs last enabled at (406156): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.464785][ C0] hardirqs last disabled at (406155): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.465244][ C0] softirqs last enabled at (405862): [] handle_softirqs+0x358/0x620 [ 13.465653][ C0] softirqs last disabled at (405881): [] __irq_exit_rcu+0xfa/0x160 [ 13.466057][ C0] [ 13.466057][ C0] other info that might help us debug this: [ 13.466404][ C0] Possible unsafe locking scenario: [ 13.466404][ C0] [ 13.466740][ C0] CPU0 [ 13.466918][ C0] ---- [ 13.467096][ C0] lock(pin_fs_lock); [ 13.467273][ C0] [ 13.467444][ C0] lock(pin_fs_lock); [ 13.467618][ C0] [ 13.467618][ C0] *** DEADLOCK *** [ 13.467618][ C0] [ 13.467958][ C0] 1 lock held by swapper/0/0: [ 13.468198][ C0] #0: ffffffffb5d749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.468610][ C0] [ 13.468610][ C0] stack backtrace: [ 13.468894][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.468900][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.468902][ C0] Call Trace: [ 13.468904][ C0] [ 13.468906][ C0] dump_stack_lvl+0x82/0xd0 [ 13.468914][ C0] print_usage_bug.part.0+0x25f/0x360 [ 13.468919][ C0] mark_lock_irq+0x343/0x400 [ 13.468922][ C0] ? is_bpf_text_address+0x67/0x120 [ 13.468927][ C0] ? __lock_release+0x5d/0x170 [ 13.468931][ C0] ? save_trace+0x52/0x170 [ 13.468938][ C0] mark_lock+0x174/0x2f0 [ 13.468941][ C0] mark_usage+0x46/0x150 [ 13.468944][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.468949][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.468951][ C0] ? simple_pin_fs+0x24/0x150 [ 13.468955][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.468959][ C0] ? lock_acquire+0x10c/0x170 [ 13.468961][ C0] ? simple_pin_fs+0x24/0x150 [ 13.468965][ C0] _raw_spin_lock+0x33/0x40 [ 13.468968][ C0] ? simple_pin_fs+0x24/0x150 [ 13.468971][ C0] simple_pin_fs+0x24/0x150 [ 13.468974][ C0] debugfs_remove+0x35/0x70 [ 13.468978][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.468985][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.468989][ C0] ? __sk_destruct+0x383/0x780 [ 13.468994][ C0] ? rcu_do_batch+0x34f/0xf20 [ 13.468998][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.469001][ C0] ? irq_exit_rcu+0xe/0x30 [ 13.469004][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.469009][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.469013][ C0] ? pv_native_safe_halt+0xf/0x20 [ 13.469017][ C0] ? default_idle+0x9/0x10 [ 13.469019][ C0] ? default_idle_call+0x6d/0xb0 [ 13.469021][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.469025][ C0] ? do_idle+0xf6/0x160 [ 13.469027][ C0] ? cpu_startup_entry+0x54/0x60 [ 13.469030][ C0] ? rest_init+0x14b/0x260 [ 13.469032][ C0] ? start_kernel+0x350/0x410 [ 13.469039][ C0] __put_net+0x19/0x60 [ 13.469044][ C0] __sk_destruct+0x58a/0x780 [ 13.469048][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.469051][ C0] rcu_do_batch+0x34f/0xf20 [ 13.469057][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.469061][ C0] ? __lock_release+0x5d/0x170 [ 13.469064][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.469067][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.469071][ C0] rcu_core+0x2bb/0x500 [ 13.469076][ C0] handle_softirqs+0x218/0x620 [ 13.469081][ C0] __irq_exit_rcu+0xfa/0x160 [ 13.469084][ C0] irq_exit_rcu+0xe/0x30 [ 13.469086][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.469090][ C0] [ 13.469091][ C0] [ 13.469092][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.469095][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.469099][ C0] Code: 50 b7 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 45 12 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 13.469102][ C0] RSP: 0018:ffffffffb5a07df8 EFLAGS: 00000246 [ 13.469106][ C0] RAX: 0000000000063177 RBX: 1ffffffff6b40fc3 RCX: ffffffffb4d6ea19 [ 13.469108][ C0] RDX: 0000000000000000 RSI: ffffffffb5889a45 RDI: ffffffffb50513a0 [ 13.469110][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 13.469111][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.469113][ C0] R13: ffffffffb5a1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 13.469117][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.469123][ C0] default_idle+0x9/0x10 [ 13.469125][ C0] default_idle_call+0x6d/0xb0 [ 13.469127][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 13.469130][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.469134][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.469140][ C0] do_idle+0xf6/0x160 [ 13.469143][ C0] cpu_startup_entry+0x54/0x60 [ 13.469146][ C0] rest_init+0x14b/0x260 [ 13.469149][ C0] start_kernel+0x350/0x410 [ 13.469153][ C0] x86_64_start_reservations+0x18/0x30 [ 13.469159][ C0] x86_64_start_kernel+0xba/0x110 [ 13.469162][ C0] common_startup_64+0x13e/0x148 [ 13.469172][ C0] [ 13.489090][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.489581][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 13.489938][ C0] preempt_count: 101, expected: 0 [ 13.490141][ C0] RCU nest depth: 0, expected: 0 [ 13.490497][ C0] INFO: lockdep is turned off. [ 13.490707][ C0] Preemption disabled at: [ 13.490708][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 13.491177][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.491182][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.491184][ C0] Call Trace: [ 13.491187][ C0] [ 13.491188][ C0] dump_stack_lvl+0xb0/0xd0 [ 13.491196][ C0] __might_resched+0x360/0x5a0 [ 13.491204][ C0] down_write+0x72/0x210 [ 13.491207][ C0] ? __pfx_down_write+0x10/0x10 [ 13.491210][ C0] ? simple_recursive_removal+0x3a/0x860 [ 13.491215][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.491220][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.491226][ C0] simple_recursive_removal+0x166/0x860 [ 13.491229][ C0] ? __pfx_remove_one+0x10/0x10 [ 13.491234][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.491238][ C0] debugfs_remove+0x44/0x70 [ 13.491242][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.491249][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.491252][ C0] ? __sk_destruct+0x383/0x780 [ 13.491257][ C0] ? rcu_do_batch+0x34f/0xf20 [ 13.491262][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.491265][ C0] ? irq_exit_rcu+0xe/0x30 [ 13.491271][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.491275][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.491279][ C0] ? pv_native_safe_halt+0xf/0x20 [ 13.491283][ C0] ? default_idle+0x9/0x10 [ 13.491285][ C0] ? default_idle_call+0x6d/0xb0 [ 13.491288][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.491291][ C0] ? do_idle+0xf6/0x160 [ 13.491293][ C0] ? cpu_startup_entry+0x54/0x60 [ 13.491295][ C0] ? rest_init+0x14b/0x260 [ 13.491298][ C0] ? start_kernel+0x350/0x410 [ 13.491306][ C0] __put_net+0x19/0x60 [ 13.491310][ C0] __sk_destruct+0x58a/0x780 [ 13.491314][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.491317][ C0] rcu_do_batch+0x34f/0xf20 [ 13.491323][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.491327][ C0] ? __lock_release+0x5d/0x170 [ 13.491331][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.491334][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.491340][ C0] rcu_core+0x2bb/0x500 [ 13.491344][ C0] handle_softirqs+0x218/0x620 [ 13.491349][ C0] __irq_exit_rcu+0xfa/0x160 [ 13.491352][ C0] irq_exit_rcu+0xe/0x30 [ 13.491355][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.491359][ C0] [ 13.491360][ C0] [ 13.491362][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.491364][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.491368][ C0] Code: 50 b7 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 45 12 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 13.491371][ C0] RSP: 0018:ffffffffb5a07df8 EFLAGS: 00000246 [ 13.491375][ C0] RAX: 0000000000063177 RBX: 1ffffffff6b40fc3 RCX: ffffffffb4d6ea19 [ 13.491377][ C0] RDX: 0000000000000000 RSI: ffffffffb5889a45 RDI: ffffffffb50513a0 [ 13.491379][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 13.491381][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.491383][ C0] R13: ffffffffb5a1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 13.491387][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.491393][ C0] default_idle+0x9/0x10 [ 13.491395][ C0] default_idle_call+0x6d/0xb0 [ 13.491397][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 13.491400][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.491404][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.491410][ C0] do_idle+0xf6/0x160 [ 13.491414][ C0] cpu_startup_entry+0x54/0x60 [ 13.491416][ C0] rest_init+0x14b/0x260 [ 13.491419][ C0] start_kernel+0x350/0x410 [ 13.491424][ C0] x86_64_start_reservations+0x18/0x30 [ 13.491429][ C0] x86_64_start_kernel+0xba/0x110 [ 13.491432][ C0] common_startup_64+0x13e/0x148 [ 13.491441][ C0]