[ 12.491498][ C0] [ 12.491646][ C0] ================================ [ 12.491859][ C0] WARNING: inconsistent lock state [ 12.492066][ C0] 6.15.0-virtme #1 Not tainted [ 12.492280][ C0] -------------------------------- [ 12.492488][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.492745][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.493003][ C0] ffffffff9b3c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.493369][ C0] {SOFTIRQ-ON-W} state was registered at: [ 12.493575][ C0] __lock_acquire+0x20b/0x7e0 [ 12.493788][ C0] lock_acquire.part.0+0xb6/0x240 [ 12.493999][ C0] _raw_spin_lock+0x33/0x40 [ 12.494208][ C0] simple_pin_fs+0x24/0x150 [ 12.494413][ C0] start_creating.part.0+0x52/0x310 [ 12.494623][ C0] debugfs_create_dir+0x6a/0x540 [ 12.494826][ C0] component_debug_init+0x17/0x30 [ 12.495030][ C0] do_one_initcall+0x8f/0x1e0 [ 12.495240][ C0] do_initcalls+0x176/0x280 [ 12.495450][ C0] kernel_init_freeable+0x22d/0x300 [ 12.495658][ C0] kernel_init+0x20/0x200 [ 12.495867][ C0] ret_from_fork+0x240/0x320 [ 12.496076][ C0] ret_from_fork_asm+0x1a/0x30 [ 12.496278][ C0] irq event stamp: 442280 [ 12.496432][ C0] hardirqs last enabled at (442280): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.496841][ C0] hardirqs last disabled at (442279): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.497244][ C0] softirqs last enabled at (440572): [] handle_softirqs+0x358/0x620 [ 12.497603][ C0] softirqs last disabled at (440635): [] __irq_exit_rcu+0xfa/0x160 [ 12.497964][ C0] [ 12.497964][ C0] other info that might help us debug this: [ 12.498268][ C0] Possible unsafe locking scenario: [ 12.498268][ C0] [ 12.498568][ C0] CPU0 [ 12.498727][ C0] ---- [ 12.498881][ C0] lock(pin_fs_lock); [ 12.499038][ C0] [ 12.499190][ C0] lock(pin_fs_lock); [ 12.499351][ C0] [ 12.499351][ C0] *** DEADLOCK *** [ 12.499351][ C0] [ 12.499659][ C0] 1 lock held by swapper/0/0: [ 12.499870][ C0] #0: ffffffff9b1774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.500247][ C0] [ 12.500247][ C0] stack backtrace: [ 12.500506][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.500510][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.500512][ C0] Call Trace: [ 12.500514][ C0] [ 12.500516][ C0] dump_stack_lvl+0x82/0xd0 [ 12.500522][ C0] print_usage_bug.part.0+0x25f/0x360 [ 12.500526][ C0] mark_lock_irq+0x343/0x400 [ 12.500530][ C0] ? is_bpf_text_address+0x67/0x120 [ 12.500536][ C0] ? __lock_release+0x5d/0x170 [ 12.500540][ C0] ? save_trace+0x52/0x170 [ 12.500544][ C0] mark_lock+0x174/0x2f0 [ 12.500548][ C0] mark_usage+0x46/0x150 [ 12.500551][ C0] __lock_acquire+0x20b/0x7e0 [ 12.500555][ C0] ? __lock_acquire+0x44d/0x7e0 [ 12.500559][ C0] lock_acquire.part.0+0xb6/0x240 [ 12.500562][ C0] ? simple_pin_fs+0x24/0x150 [ 12.500565][ C0] ? rcu_is_watching+0x12/0xc0 [ 12.500570][ C0] ? lock_acquire+0x10c/0x170 [ 12.500573][ C0] ? simple_pin_fs+0x24/0x150 [ 12.500577][ C0] _raw_spin_lock+0x33/0x40 [ 12.500580][ C0] ? simple_pin_fs+0x24/0x150 [ 12.500582][ C0] simple_pin_fs+0x24/0x150 [ 12.500586][ C0] debugfs_remove+0x35/0x70 [ 12.500589][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 12.500594][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.500596][ C0] ? __sk_destruct+0x383/0x780 [ 12.500602][ C0] ? rcu_do_batch+0x34c/0xf20 [ 12.500605][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.500608][ C0] ? irq_exit_rcu+0xe/0x30 [ 12.500611][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.500616][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.500620][ C0] ? pv_native_safe_halt+0xf/0x20 [ 12.500623][ C0] ? default_idle+0x9/0x10 [ 12.500625][ C0] ? default_idle_call+0x6d/0xb0 [ 12.500628][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.500631][ C0] ? do_idle+0xf6/0x160 [ 12.500634][ C0] ? cpu_startup_entry+0x54/0x60 [ 12.500637][ C0] ? rest_init+0x14b/0x260 [ 12.500639][ C0] ? start_kernel+0x350/0x410 [ 12.500645][ C0] __put_net+0x19/0x60 [ 12.500649][ C0] __sk_destruct+0x58a/0x780 [ 12.500653][ C0] ? rcu_do_batch+0x34a/0xf20 [ 12.500656][ C0] rcu_do_batch+0x34c/0xf20 [ 12.500659][ C0] ? find_held_lock+0x2b/0x80 [ 12.500663][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.500667][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.500670][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.500674][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.500679][ C0] rcu_core+0x2bb/0x500 [ 12.500683][ C0] handle_softirqs+0x218/0x620 [ 12.500689][ C0] __irq_exit_rcu+0xfa/0x160 [ 12.500692][ C0] irq_exit_rcu+0xe/0x30 [ 12.500695][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.500698][ C0] [ 12.500700][ C0] [ 12.500701][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.500704][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.500708][ C0] Code: a2 b4 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 17 0f 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 12.500710][ C0] RSP: 0018:ffffffff9ae07df8 EFLAGS: 00000246 [ 12.500713][ C0] RAX: 000000000006b939 RBX: 1ffffffff35c0fc3 RCX: ffffffff9a1a25d9 [ 12.500715][ C0] RDX: 0000000000000000 RSI: ffffffff9ac9175c RDI: ffffffff9a453ca0 [ 12.500717][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 12.500719][ C0] R10: ffff8880360337d3 R11: ffffffff9ae11288 R12: 0000000000000000 [ 12.500720][ C0] R13: ffffffff9ae1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 12.500724][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.500729][ C0] default_idle+0x9/0x10 [ 12.500731][ C0] default_idle_call+0x6d/0xb0 [ 12.500734][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 12.500737][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.500741][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 12.500747][ C0] do_idle+0xf6/0x160 [ 12.500751][ C0] cpu_startup_entry+0x54/0x60 [ 12.500754][ C0] rest_init+0x14b/0x260 [ 12.500758][ C0] start_kernel+0x350/0x410 [ 12.500762][ C0] x86_64_start_reservations+0x18/0x30 [ 12.500766][ C0] x86_64_start_kernel+0xf8/0x150 [ 12.500770][ C0] common_startup_64+0x13e/0x148 [ 12.500779][ C0] [ 12.517793][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.518131][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 12.518462][ C0] preempt_count: 101, expected: 0 [ 12.518657][ C0] RCU nest depth: 0, expected: 0 [ 12.518852][ C0] INFO: lockdep is turned off. [ 12.519052][ C0] Preemption disabled at: [ 12.519054][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 12.519496][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.519501][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.519503][ C0] Call Trace: [ 12.519504][ C0] [ 12.519506][ C0] dump_stack_lvl+0xb0/0xd0 [ 12.519511][ C0] __might_resched+0x360/0x5a0 [ 12.519519][ C0] down_write+0x72/0x210 [ 12.519522][ C0] ? __pfx_down_write+0x10/0x10 [ 12.519525][ C0] ? simple_recursive_removal+0x33/0x610 [ 12.519530][ C0] ? rcu_is_watching+0x12/0xc0 [ 12.519536][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 12.519540][ C0] simple_recursive_removal+0x6a/0x610 [ 12.519544][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 12.519546][ C0] ? __pfx_remove_one+0x10/0x10 [ 12.519552][ C0] debugfs_remove+0x44/0x70 [ 12.519555][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 12.519560][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.519563][ C0] ? __sk_destruct+0x383/0x780 [ 12.519568][ C0] ? rcu_do_batch+0x34c/0xf20 [ 12.519572][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.519574][ C0] ? irq_exit_rcu+0xe/0x30 [ 12.519579][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.519584][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.519587][ C0] ? pv_native_safe_halt+0xf/0x20 [ 12.519591][ C0] ? default_idle+0x9/0x10 [ 12.519593][ C0] ? default_idle_call+0x6d/0xb0 [ 12.519596][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.519600][ C0] ? do_idle+0xf6/0x160 [ 12.519602][ C0] ? cpu_startup_entry+0x54/0x60 [ 12.519605][ C0] ? rest_init+0x14b/0x260 [ 12.519608][ C0] ? start_kernel+0x350/0x410 [ 12.519615][ C0] __put_net+0x19/0x60 [ 12.519619][ C0] __sk_destruct+0x58a/0x780 [ 12.519623][ C0] ? rcu_do_batch+0x34a/0xf20 [ 12.519626][ C0] rcu_do_batch+0x34c/0xf20 [ 12.519630][ C0] ? find_held_lock+0x2b/0x80 [ 12.519633][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.519637][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.519642][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.519645][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.519650][ C0] rcu_core+0x2bb/0x500 [ 12.519655][ C0] handle_softirqs+0x218/0x620 [ 12.519660][ C0] __irq_exit_rcu+0xfa/0x160 [ 12.519663][ C0] irq_exit_rcu+0xe/0x30 [ 12.519666][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.519670][ C0] [ 12.519671][ C0] [ 12.519672][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.519675][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.519679][ C0] Code: a2 b4 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 17 0f 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 12.519682][ C0] RSP: 0018:ffffffff9ae07df8 EFLAGS: 00000246 [ 12.519685][ C0] RAX: 000000000006b939 RBX: 1ffffffff35c0fc3 RCX: ffffffff9a1a25d9 [ 12.519687][ C0] RDX: 0000000000000000 RSI: ffffffff9ac9175c RDI: ffffffff9a453ca0 [ 12.519688][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 12.519690][ C0] R10: ffff8880360337d3 R11: ffffffff9ae11288 R12: 0000000000000000 [ 12.519692][ C0] R13: ffffffff9ae1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 12.519696][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.519701][ C0] default_idle+0x9/0x10 [ 12.519703][ C0] default_idle_call+0x6d/0xb0 [ 12.519706][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 12.519709][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.519713][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 12.519718][ C0] do_idle+0xf6/0x160 [ 12.519722][ C0] cpu_startup_entry+0x54/0x60 [ 12.519725][ C0] rest_init+0x14b/0x260 [ 12.519729][ C0] start_kernel+0x350/0x410 [ 12.519733][ C0] x86_64_start_reservations+0x18/0x30 [ 12.519737][ C0] x86_64_start_kernel+0xf8/0x150 [ 12.519741][ C0] common_startup_64+0x13e/0x148 [ 12.519750][ C0]