[ 13.107949][ C0] [ 13.108095][ C0] ================================ [ 13.108303][ C0] WARNING: inconsistent lock state [ 13.108520][ C0] 6.15.0-rc5-virtme #1 Not tainted [ 13.108722][ C0] -------------------------------- [ 13.108923][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.109179][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.109444][ C0] ffffffff92bbf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.109808][ C0] {SOFTIRQ-ON-W} state was registered at: [ 13.110005][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.110210][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.110406][ C0] _raw_spin_lock+0x33/0x40 [ 13.110614][ C0] simple_pin_fs+0x24/0x150 [ 13.110820][ C0] start_creating.part.0+0x3f/0x2f0 [ 13.111021][ C0] debugfs_create_dir+0x6a/0x540 [ 13.111218][ C0] component_debug_init+0x17/0x30 [ 13.111448][ C0] do_one_initcall+0x8c/0x1e0 [ 13.111668][ C0] do_initcalls+0x176/0x280 [ 13.111882][ C0] kernel_init_freeable+0x22d/0x300 [ 13.112113][ C0] kernel_init+0x20/0x200 [ 13.112332][ C0] ret_from_fork+0x31/0x70 [ 13.112543][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.112766][ C0] irq event stamp: 392698 [ 13.112929][ C0] hardirqs last enabled at (392698): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.113365][ C0] hardirqs last disabled at (392697): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.113786][ C0] softirqs last enabled at (391470): [] handle_softirqs+0x358/0x620 [ 13.114196][ C0] softirqs last disabled at (391477): [] __irq_exit_rcu+0xfa/0x160 [ 13.114580][ C0] [ 13.114580][ C0] other info that might help us debug this: [ 13.114895][ C0] Possible unsafe locking scenario: [ 13.114895][ C0] [ 13.115209][ C0] CPU0 [ 13.115373][ C0] ---- [ 13.115530][ C0] lock(pin_fs_lock); [ 13.115695][ C0] [ 13.115862][ C0] lock(pin_fs_lock); [ 13.116028][ C0] [ 13.116028][ C0] *** DEADLOCK *** [ 13.116028][ C0] [ 13.116329][ C0] 1 lock held by swapper/0/0: [ 13.116528][ C0] #0: ffffffff92974480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.116906][ C0] [ 13.116906][ C0] stack backtrace: [ 13.117157][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.117162][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.117164][ C0] Call Trace: [ 13.117166][ C0] [ 13.117168][ C0] dump_stack_lvl+0x82/0xd0 [ 13.117175][ C0] print_usage_bug.part.0+0x25f/0x360 [ 13.117181][ C0] mark_lock_irq+0x343/0x400 [ 13.117184][ C0] ? is_bpf_text_address+0x67/0x120 [ 13.117188][ C0] ? __lock_release+0x5d/0x170 [ 13.117192][ C0] ? save_trace+0x52/0x170 [ 13.117198][ C0] mark_lock+0x174/0x2f0 [ 13.117202][ C0] mark_usage+0x46/0x150 [ 13.117204][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.117209][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.117211][ C0] ? simple_pin_fs+0x24/0x150 [ 13.117216][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.117220][ C0] ? lock_acquire+0x10c/0x170 [ 13.117222][ C0] ? simple_pin_fs+0x24/0x150 [ 13.117225][ C0] _raw_spin_lock+0x33/0x40 [ 13.117229][ C0] ? simple_pin_fs+0x24/0x150 [ 13.117231][ C0] simple_pin_fs+0x24/0x150 [ 13.117235][ C0] debugfs_remove+0x35/0x70 [ 13.117239][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.117245][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.117249][ C0] ? __sk_destruct+0x383/0x780 [ 13.117254][ C0] ? rcu_do_batch+0x34c/0xf20 [ 13.117257][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.117261][ C0] ? irq_exit_rcu+0xe/0x30 [ 13.117264][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.117268][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.117272][ C0] ? pv_native_safe_halt+0xf/0x20 [ 13.117275][ C0] ? default_idle+0x9/0x10 [ 13.117278][ C0] ? default_idle_call+0x6d/0xb0 [ 13.117280][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.117283][ C0] ? do_idle+0xf6/0x160 [ 13.117286][ C0] ? cpu_startup_entry+0x54/0x60 [ 13.117288][ C0] ? rest_init+0x14b/0x260 [ 13.117290][ C0] ? start_kernel+0x350/0x410 [ 13.117297][ C0] __put_net+0x19/0x60 [ 13.117300][ C0] __sk_destruct+0x58a/0x780 [ 13.117304][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.117307][ C0] rcu_do_batch+0x34c/0xf20 [ 13.117311][ C0] ? find_held_lock+0x2b/0x80 [ 13.117315][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.117319][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.117322][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.117326][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.117330][ C0] rcu_core+0x2bb/0x500 [ 13.117334][ C0] handle_softirqs+0x218/0x620 [ 13.117342][ C0] __irq_exit_rcu+0xfa/0x160 [ 13.117347][ C0] irq_exit_rcu+0xe/0x30 [ 13.117350][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.117356][ C0] [ 13.117358][ C0] [ 13.117361][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.117366][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.117374][ C0] Code: a0 b7 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 a3 a0 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.117379][ C0] RSP: 0018:ffffffff92607df8 EFLAGS: 00000246 [ 13.117384][ C0] RAX: 000000000005f933 RBX: 1ffffffff24c0fc3 RCX: ffffffff91968a19 [ 13.117387][ C0] RDX: 0000000000000000 RSI: ffffffff924881e1 RDI: ffffffff91c50e20 [ 13.117389][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005e8667a [ 13.117391][ C0] R10: ffff88802f4333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.117393][ C0] R13: ffffffff9261f240 R14: dffffc0000000000 R15: 0000000000014770 [ 13.117397][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.117403][ C0] default_idle+0x9/0x10 [ 13.117406][ C0] default_idle_call+0x6d/0xb0 [ 13.117408][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 13.117412][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.117415][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.117420][ C0] do_idle+0xf6/0x160 [ 13.117423][ C0] cpu_startup_entry+0x54/0x60 [ 13.117425][ C0] rest_init+0x14b/0x260 [ 13.117428][ C0] start_kernel+0x350/0x410 [ 13.117432][ C0] x86_64_start_reservations+0x18/0x30 [ 13.117436][ C0] x86_64_start_kernel+0xba/0x110 [ 13.117440][ C0] common_startup_64+0x13e/0x148 [ 13.117448][ C0] [ 13.135455][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.135790][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 13.136150][ C0] preempt_count: 101, expected: 0 [ 13.136342][ C0] RCU nest depth: 0, expected: 0 [ 13.136535][ C0] INFO: lockdep is turned off. [ 13.136729][ C0] Preemption disabled at: [ 13.136731][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 13.137159][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.137164][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.137166][ C0] Call Trace: [ 13.137168][ C0] [ 13.137170][ C0] dump_stack_lvl+0xb0/0xd0 [ 13.137176][ C0] __might_resched+0x360/0x5a0 [ 13.137183][ C0] down_write+0x72/0x210 [ 13.137186][ C0] ? __pfx_down_write+0x10/0x10 [ 13.137189][ C0] ? simple_recursive_removal+0x3a/0x860 [ 13.137194][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.137198][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.137204][ C0] simple_recursive_removal+0x166/0x860 [ 13.137207][ C0] ? __pfx_remove_one+0x10/0x10 [ 13.137212][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.137217][ C0] debugfs_remove+0x44/0x70 [ 13.137220][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.137225][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.137229][ C0] ? __sk_destruct+0x383/0x780 [ 13.137234][ C0] ? rcu_do_batch+0x34c/0xf20 [ 13.137239][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.137242][ C0] ? irq_exit_rcu+0xe/0x30 [ 13.137246][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.137252][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.137257][ C0] ? pv_native_safe_halt+0xf/0x20 [ 13.137261][ C0] ? default_idle+0x9/0x10 [ 13.137265][ C0] ? default_idle_call+0x6d/0xb0 [ 13.137267][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.137270][ C0] ? do_idle+0xf6/0x160 [ 13.137273][ C0] ? cpu_startup_entry+0x54/0x60 [ 13.137275][ C0] ? rest_init+0x14b/0x260 [ 13.137278][ C0] ? start_kernel+0x350/0x410 [ 13.137286][ C0] __put_net+0x19/0x60 [ 13.137289][ C0] __sk_destruct+0x58a/0x780 [ 13.137293][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.137296][ C0] rcu_do_batch+0x34c/0xf20 [ 13.137300][ C0] ? find_held_lock+0x2b/0x80 [ 13.137305][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.137309][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.137314][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.137317][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.137322][ C0] rcu_core+0x2bb/0x500 [ 13.137326][ C0] handle_softirqs+0x218/0x620 [ 13.137330][ C0] __irq_exit_rcu+0xfa/0x160 [ 13.137333][ C0] irq_exit_rcu+0xe/0x30 [ 13.137335][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.137339][ C0] [ 13.137340][ C0] [ 13.137341][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.137344][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.137348][ C0] Code: a0 b7 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 a3 a0 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.137350][ C0] RSP: 0018:ffffffff92607df8 EFLAGS: 00000246 [ 13.137354][ C0] RAX: 000000000005f933 RBX: 1ffffffff24c0fc3 RCX: ffffffff91968a19 [ 13.137356][ C0] RDX: 0000000000000000 RSI: ffffffff924881e1 RDI: ffffffff91c50e20 [ 13.137358][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005e8667a [ 13.137360][ C0] R10: ffff88802f4333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.137361][ C0] R13: ffffffff9261f240 R14: dffffc0000000000 R15: 0000000000014770 [ 13.137365][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.137370][ C0] default_idle+0x9/0x10 [ 13.137374][ C0] default_idle_call+0x6d/0xb0 [ 13.137376][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 13.137379][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.137382][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.137387][ C0] do_idle+0xf6/0x160 [ 13.137390][ C0] cpu_startup_entry+0x54/0x60 [ 13.137393][ C0] rest_init+0x14b/0x260 [ 13.137396][ C0] start_kernel+0x350/0x410 [ 13.137399][ C0] x86_64_start_reservations+0x18/0x30 [ 13.137404][ C0] x86_64_start_kernel+0xba/0x110 [ 13.137408][ C0] common_startup_64+0x13e/0x148 [ 13.137416][ C0]