[ 15.732293][ C1] [ 15.732506][ C1] ================================ [ 15.732709][ C1] WARNING: inconsistent lock state [ 15.732911][ C1] 6.15.0-rc7-virtme #1 Not tainted [ 15.733111][ C1] -------------------------------- [ 15.733319][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.733572][ C1] swapper/1/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.733835][ C1] ffffffff869cb078 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.734193][ C1] {SOFTIRQ-ON-W} state was registered at: [ 15.734392][ C1] __lock_acquire+0x3eb/0x9d0 [ 15.734600][ C1] lock_acquire.part.0+0xb6/0x240 [ 15.734803][ C1] _raw_spin_lock+0x33/0x40 [ 15.735009][ C1] simple_pin_fs+0x24/0x150 [ 15.735210][ C1] start_creating.part.0+0x3f/0x2f0 [ 15.735414][ C1] debugfs_create_dir+0x6a/0x570 [ 15.735615][ C1] component_debug_init+0x17/0x30 [ 15.735825][ C1] do_one_initcall+0x8f/0x1e0 [ 15.736028][ C1] do_initcalls+0x176/0x280 [ 15.736231][ C1] kernel_init_freeable+0x22d/0x300 [ 15.736433][ C1] kernel_init+0x20/0x200 [ 15.736637][ C1] ret_from_fork+0x31/0x70 [ 15.736839][ C1] ret_from_fork_asm+0x1a/0x30 [ 15.737037][ C1] irq event stamp: 587690 [ 15.737189][ C1] hardirqs last enabled at (587690): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.737590][ C1] hardirqs last disabled at (587689): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.737985][ C1] softirqs last enabled at (585460): [] handle_softirqs+0x358/0x620 [ 15.738338][ C1] softirqs last disabled at (585473): [] __irq_exit_rcu+0xfa/0x160 [ 15.738692][ C1] [ 15.738692][ C1] other info that might help us debug this: [ 15.738988][ C1] Possible unsafe locking scenario: [ 15.738988][ C1] [ 15.739283][ C1] CPU0 [ 15.739432][ C1] ---- [ 15.739581][ C1] lock(pin_fs_lock); [ 15.739734][ C1] [ 15.739882][ C1] lock(pin_fs_lock); [ 15.740033][ C1] [ 15.740033][ C1] *** DEADLOCK *** [ 15.740033][ C1] [ 15.740328][ C1] 1 lock held by swapper/1/0: [ 15.740530][ C1] #0: ffffffff86775140 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.740903][ C1] [ 15.740903][ C1] stack backtrace: [ 15.741154][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.741158][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.741160][ C1] Call Trace: [ 15.741162][ C1] [ 15.741165][ C1] dump_stack_lvl+0x82/0xd0 [ 15.741170][ C1] print_usage_bug.part.0+0x25f/0x360 [ 15.741175][ C1] mark_lock_irq+0x343/0x400 [ 15.741179][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.741184][ C1] ? save_trace+0x52/0x170 [ 15.741188][ C1] mark_lock+0x174/0x2f0 [ 15.741192][ C1] mark_usage+0x46/0x150 [ 15.741195][ C1] __lock_acquire+0x3eb/0x9d0 [ 15.741200][ C1] lock_acquire.part.0+0xb6/0x240 [ 15.741203][ C1] ? simple_pin_fs+0x24/0x150 [ 15.741206][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.741211][ C1] ? lock_acquire+0x10c/0x170 [ 15.741213][ C1] ? simple_pin_fs+0x24/0x150 [ 15.741217][ C1] _raw_spin_lock+0x33/0x40 [ 15.741220][ C1] ? simple_pin_fs+0x24/0x150 [ 15.741222][ C1] simple_pin_fs+0x24/0x150 [ 15.741225][ C1] debugfs_remove+0x35/0x70 [ 15.741228][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 15.741234][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.741237][ C1] ? __sk_destruct+0x383/0x780 [ 15.741242][ C1] ? rcu_do_batch+0x34c/0xf20 [ 15.741244][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.741248][ C1] ? irq_exit_rcu+0xe/0x30 [ 15.741250][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.741254][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.741258][ C1] ? pv_native_safe_halt+0xf/0x20 [ 15.741261][ C1] ? default_idle+0x9/0x10 [ 15.741263][ C1] ? default_idle_call+0x6d/0xb0 [ 15.741266][ C1] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.741269][ C1] ? do_idle+0xf6/0x160 [ 15.741272][ C1] ? cpu_startup_entry+0x54/0x60 [ 15.741274][ C1] ? start_secondary+0x213/0x2a0 [ 15.741277][ C1] ? common_startup_64+0x13e/0x148 [ 15.741285][ C1] __put_net+0x19/0x60 [ 15.741288][ C1] __sk_destruct+0x58a/0x780 [ 15.741292][ C1] ? rcu_do_batch+0x34a/0xf20 [ 15.741294][ C1] rcu_do_batch+0x34c/0xf20 [ 15.741299][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.741302][ C1] ? __lock_release+0x5d/0x170 [ 15.741306][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.741309][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.741313][ C1] rcu_core+0x2bb/0x500 [ 15.741318][ C1] handle_softirqs+0x21b/0x620 [ 15.741323][ C1] __irq_exit_rcu+0xfa/0x160 [ 15.741326][ C1] irq_exit_rcu+0xe/0x30 [ 15.741329][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.741332][ C1] [ 15.741333][ C1] [ 15.741335][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.741338][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.741341][ C1] Code: a0 d1 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 2b 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 15.741344][ C1] RSP: 0018:ffffc90000137de8 EFLAGS: 00000246 [ 15.741347][ C1] RAX: 000000000008eeff RBX: 1ffff92000026fc1 RCX: ffffffff855dea19 [ 15.741349][ C1] RDX: 0000000000000000 RSI: ffffffff8629db3e RDI: ffffffff85a56260 [ 15.741351][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005e5667a [ 15.741353][ C1] R10: ffff88802f2b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.741355][ C1] R13: ffff888001bf0040 R14: dffffc0000000000 R15: 0000000000000000 [ 15.741359][ C1] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.741365][ C1] default_idle+0x9/0x10 [ 15.741367][ C1] default_idle_call+0x6d/0xb0 [ 15.741370][ C1] cpuidle_idle_call+0x26f/0x3a0 [ 15.741373][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.741377][ C1] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.741382][ C1] do_idle+0xf6/0x160 [ 15.741385][ C1] cpu_startup_entry+0x54/0x60 [ 15.741388][ C1] start_secondary+0x213/0x2a0 [ 15.741391][ C1] ? __pfx_start_secondary+0x10/0x10 [ 15.741396][ C1] common_startup_64+0x13e/0x148 [ 15.741403][ C1] [ 15.756993][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.757327][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/1 [ 15.757664][ C1] preempt_count: 101, expected: 0 [ 15.757847][ C1] RCU nest depth: 0, expected: 0 [ 15.758036][ C1] INFO: lockdep is turned off. [ 15.758223][ C1] Preemption disabled at: [ 15.758224][ C1] [<0000000000000000>] 0x0 [ 15.758552][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.758556][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.758558][ C1] Call Trace: [ 15.758560][ C1] [ 15.758561][ C1] dump_stack_lvl+0xb0/0xd0 [ 15.758568][ C1] __might_resched+0x360/0x5a0 [ 15.758575][ C1] down_write+0x72/0x210 [ 15.758578][ C1] ? __pfx_down_write+0x10/0x10 [ 15.758581][ C1] ? simple_recursive_removal+0x3a/0x860 [ 15.758585][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.758590][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 15.758595][ C1] simple_recursive_removal+0x166/0x860 [ 15.758598][ C1] ? __pfx_remove_one+0x10/0x10 [ 15.758602][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 15.758607][ C1] debugfs_remove+0x44/0x70 [ 15.758610][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 15.758616][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.758619][ C1] ? __sk_destruct+0x383/0x780 [ 15.758623][ C1] ? rcu_do_batch+0x34c/0xf20 [ 15.758626][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.758629][ C1] ? irq_exit_rcu+0xe/0x30 [ 15.758633][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.758637][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.758641][ C1] ? pv_native_safe_halt+0xf/0x20 [ 15.758644][ C1] ? default_idle+0x9/0x10 [ 15.758646][ C1] ? default_idle_call+0x6d/0xb0 [ 15.758649][ C1] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.758652][ C1] ? do_idle+0xf6/0x160 [ 15.758654][ C1] ? cpu_startup_entry+0x54/0x60 [ 15.758657][ C1] ? start_secondary+0x213/0x2a0 [ 15.758661][ C1] ? common_startup_64+0x13e/0x148 [ 15.758667][ C1] __put_net+0x19/0x60 [ 15.758670][ C1] __sk_destruct+0x58a/0x780 [ 15.758674][ C1] ? rcu_do_batch+0x34a/0xf20 [ 15.758676][ C1] rcu_do_batch+0x34c/0xf20 [ 15.758681][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.758684][ C1] ? __lock_release+0x5d/0x170 [ 15.758687][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.758691][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.758696][ C1] rcu_core+0x2bb/0x500 [ 15.758700][ C1] handle_softirqs+0x21b/0x620 [ 15.758705][ C1] __irq_exit_rcu+0xfa/0x160 [ 15.758708][ C1] irq_exit_rcu+0xe/0x30 [ 15.758711][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.758715][ C1] [ 15.758716][ C1] [ 15.758717][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.758720][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.758723][ C1] Code: a0 d1 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 2b 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 15.758726][ C1] RSP: 0018:ffffc90000137de8 EFLAGS: 00000246 [ 15.758729][ C1] RAX: 000000000008eeff RBX: 1ffff92000026fc1 RCX: ffffffff855dea19 [ 15.758731][ C1] RDX: 0000000000000000 RSI: ffffffff8629db3e RDI: ffffffff85a56260 [ 15.758732][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005e5667a [ 15.758734][ C1] R10: ffff88802f2b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.758736][ C1] R13: ffff888001bf0040 R14: dffffc0000000000 R15: 0000000000000000 [ 15.758740][ C1] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.758746][ C1] default_idle+0x9/0x10 [ 15.758748][ C1] default_idle_call+0x6d/0xb0 [ 15.758750][ C1] cpuidle_idle_call+0x26f/0x3a0 [ 15.758753][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.758757][ C1] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.758761][ C1] do_idle+0xf6/0x160 [ 15.758765][ C1] cpu_startup_entry+0x54/0x60 [ 15.758768][ C1] start_secondary+0x213/0x2a0 [ 15.758771][ C1] ? __pfx_start_secondary+0x10/0x10 [ 15.758775][ C1] common_startup_64+0x13e/0x148 [ 15.758782][ C1]