[ 13.098792][ C0] [ 13.098947][ C0] ================================ [ 13.099175][ C0] WARNING: inconsistent lock state [ 13.099404][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 13.099640][ C0] -------------------------------- [ 13.099865][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.100152][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.100439][ C0] ffffffff8f9bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.100841][ C0] {SOFTIRQ-ON-W} state was registered at: [ 13.101063][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.101286][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.101507][ C0] _raw_spin_lock+0x33/0x40 [ 13.101735][ C0] simple_pin_fs+0x24/0x150 [ 13.101958][ C0] start_creating.part.0+0x3f/0x2f0 [ 13.102191][ C0] debugfs_create_dir+0x6a/0x540 [ 13.102425][ C0] component_debug_init+0x17/0x30 [ 13.102652][ C0] do_one_initcall+0x8f/0x1e0 [ 13.102884][ C0] do_initcalls+0x176/0x280 [ 13.103108][ C0] kernel_init_freeable+0x22d/0x300 [ 13.103330][ C0] kernel_init+0x20/0x200 [ 13.103554][ C0] ret_from_fork+0x31/0x70 [ 13.103777][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.104000][ C0] irq event stamp: 421306 [ 13.104178][ C0] hardirqs last enabled at (421306): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.104629][ C0] hardirqs last disabled at (421305): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.105079][ C0] softirqs last enabled at (420900): [] handle_softirqs+0x358/0x620 [ 13.105466][ C0] softirqs last disabled at (420919): [] __irq_exit_rcu+0xfa/0x160 [ 13.105858][ C0] [ 13.105858][ C0] other info that might help us debug this: [ 13.106187][ C0] Possible unsafe locking scenario: [ 13.106187][ C0] [ 13.106512][ C0] CPU0 [ 13.106677][ C0] ---- [ 13.106844][ C0] lock(pin_fs_lock); [ 13.107018][ C0] [ 13.107181][ C0] lock(pin_fs_lock); [ 13.107348][ C0] [ 13.107348][ C0] *** DEADLOCK *** [ 13.107348][ C0] [ 13.107677][ C0] 1 lock held by swapper/0/0: [ 13.107898][ C0] #0: ffffffff8f7749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.108292][ C0] [ 13.108292][ C0] stack backtrace: [ 13.108568][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.108572][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.108574][ C0] Call Trace: [ 13.108576][ C0] [ 13.108578][ C0] dump_stack_lvl+0x82/0xd0 [ 13.108584][ C0] print_usage_bug.part.0+0x25f/0x360 [ 13.108588][ C0] mark_lock_irq+0x343/0x400 [ 13.108592][ C0] ? is_bpf_text_address+0x67/0x120 [ 13.108596][ C0] ? __lock_release+0x5d/0x170 [ 13.108600][ C0] ? save_trace+0x52/0x170 [ 13.108606][ C0] mark_lock+0x174/0x2f0 [ 13.108609][ C0] mark_usage+0x46/0x150 [ 13.108612][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.108616][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.108619][ C0] ? simple_pin_fs+0x24/0x150 [ 13.108623][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.108626][ C0] ? lock_acquire+0x10c/0x170 [ 13.108628][ C0] ? simple_pin_fs+0x24/0x150 [ 13.108632][ C0] _raw_spin_lock+0x33/0x40 [ 13.108635][ C0] ? simple_pin_fs+0x24/0x150 [ 13.108637][ C0] simple_pin_fs+0x24/0x150 [ 13.108641][ C0] debugfs_remove+0x35/0x70 [ 13.108644][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.108650][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.108654][ C0] ? __sk_destruct+0x383/0x780 [ 13.108659][ C0] ? rcu_do_batch+0x34f/0xf20 [ 13.108662][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.108665][ C0] ? irq_exit_rcu+0xe/0x30 [ 13.108668][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.108672][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.108675][ C0] ? pv_native_safe_halt+0xf/0x20 [ 13.108678][ C0] ? default_idle+0x9/0x10 [ 13.108681][ C0] ? default_idle_call+0x6d/0xb0 [ 13.108683][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.108686][ C0] ? do_idle+0xf6/0x160 [ 13.108688][ C0] ? cpu_startup_entry+0x54/0x60 [ 13.108691][ C0] ? rest_init+0x14b/0x260 [ 13.108693][ C0] ? start_kernel+0x350/0x410 [ 13.108700][ C0] __put_net+0x19/0x60 [ 13.108704][ C0] __sk_destruct+0x58a/0x780 [ 13.108708][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.108711][ C0] rcu_do_batch+0x34f/0xf20 [ 13.108715][ C0] ? find_held_lock+0x2b/0x80 [ 13.108720][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.108724][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.108727][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.108731][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.108735][ C0] rcu_core+0x2bb/0x500 [ 13.108739][ C0] handle_softirqs+0x218/0x620 [ 13.108744][ C0] __irq_exit_rcu+0xfa/0x160 [ 13.108747][ C0] irq_exit_rcu+0xe/0x30 [ 13.108749][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.108753][ C0] [ 13.108754][ C0] [ 13.108755][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.108758][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.108762][ 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.108765][ C0] RSP: 0018:ffffffff8f407df8 EFLAGS: 00000246 [ 13.108768][ C0] RAX: 0000000000066c35 RBX: 1ffffffff1e80fc3 RCX: ffffffff8e76ea19 [ 13.108770][ C0] RDX: 0000000000000000 RSI: ffffffff8f289a45 RDI: ffffffff8ea513a0 [ 13.108772][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 13.108774][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.108775][ C0] R13: ffffffff8f41f240 R14: dffffc0000000000 R15: 0000000000014770 [ 13.108779][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.108785][ C0] default_idle+0x9/0x10 [ 13.108787][ C0] default_idle_call+0x6d/0xb0 [ 13.108789][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 13.108792][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.108796][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.108800][ C0] do_idle+0xf6/0x160 [ 13.108803][ C0] cpu_startup_entry+0x54/0x60 [ 13.108806][ C0] rest_init+0x14b/0x260 [ 13.108809][ C0] start_kernel+0x350/0x410 [ 13.108813][ C0] x86_64_start_reservations+0x18/0x30 [ 13.108818][ C0] x86_64_start_kernel+0xba/0x110 [ 13.108821][ C0] common_startup_64+0x13e/0x148 [ 13.108829][ C0] [ 13.127005][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.127383][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 13.127746][ C0] preempt_count: 101, expected: 0 [ 13.127955][ C0] RCU nest depth: 0, expected: 0 [ 13.128165][ C0] INFO: lockdep is turned off. [ 13.128377][ C0] Preemption disabled at: [ 13.128378][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 13.128854][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.128858][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.128859][ C0] Call Trace: [ 13.128861][ C0] [ 13.128863][ C0] dump_stack_lvl+0xb0/0xd0 [ 13.128867][ C0] __might_resched+0x360/0x5a0 [ 13.128874][ C0] down_write+0x72/0x210 [ 13.128877][ C0] ? __pfx_down_write+0x10/0x10 [ 13.128880][ C0] ? simple_recursive_removal+0x3a/0x860 [ 13.128884][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.128887][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.128892][ C0] simple_recursive_removal+0x166/0x860 [ 13.128895][ C0] ? __pfx_remove_one+0x10/0x10 [ 13.128900][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.128904][ C0] debugfs_remove+0x44/0x70 [ 13.128908][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.128913][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.128916][ C0] ? __sk_destruct+0x383/0x780 [ 13.128920][ C0] ? rcu_do_batch+0x34f/0xf20 [ 13.128924][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.128928][ C0] ? irq_exit_rcu+0xe/0x30 [ 13.128931][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.128934][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.128938][ C0] ? pv_native_safe_halt+0xf/0x20 [ 13.128941][ C0] ? default_idle+0x9/0x10 [ 13.128943][ C0] ? default_idle_call+0x6d/0xb0 [ 13.128945][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.128948][ C0] ? do_idle+0xf6/0x160 [ 13.128951][ C0] ? cpu_startup_entry+0x54/0x60 [ 13.128953][ C0] ? rest_init+0x14b/0x260 [ 13.128955][ C0] ? start_kernel+0x350/0x410 [ 13.128962][ C0] __put_net+0x19/0x60 [ 13.128965][ C0] __sk_destruct+0x58a/0x780 [ 13.128969][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.128972][ C0] rcu_do_batch+0x34f/0xf20 [ 13.128976][ C0] ? find_held_lock+0x2b/0x80 [ 13.128981][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.128985][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.128989][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.128992][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.128997][ C0] rcu_core+0x2bb/0x500 [ 13.129000][ C0] handle_softirqs+0x218/0x620 [ 13.129005][ C0] __irq_exit_rcu+0xfa/0x160 [ 13.129008][ C0] irq_exit_rcu+0xe/0x30 [ 13.129011][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.129014][ C0] [ 13.129015][ C0] [ 13.129016][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.129019][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.129023][ 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.129025][ C0] RSP: 0018:ffffffff8f407df8 EFLAGS: 00000246 [ 13.129028][ C0] RAX: 0000000000066c35 RBX: 1ffffffff1e80fc3 RCX: ffffffff8e76ea19 [ 13.129030][ C0] RDX: 0000000000000000 RSI: ffffffff8f289a45 RDI: ffffffff8ea513a0 [ 13.129032][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 13.129034][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.129035][ C0] R13: ffffffff8f41f240 R14: dffffc0000000000 R15: 0000000000014770 [ 13.129039][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.129045][ C0] default_idle+0x9/0x10 [ 13.129047][ C0] default_idle_call+0x6d/0xb0 [ 13.129049][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 13.129052][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.129056][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.129060][ C0] do_idle+0xf6/0x160 [ 13.129064][ C0] cpu_startup_entry+0x54/0x60 [ 13.129066][ C0] rest_init+0x14b/0x260 [ 13.129069][ C0] start_kernel+0x350/0x410 [ 13.129074][ C0] x86_64_start_reservations+0x18/0x30 [ 13.129078][ C0] x86_64_start_kernel+0xba/0x110 [ 13.129081][ C0] common_startup_64+0x13e/0x148 [ 13.129089][ C0]