[ 19.827176][ C3] [ 19.827328][ C3] ================================ [ 19.827556][ C3] WARNING: inconsistent lock state [ 19.827774][ C3] 6.15.0-rc7-virtme #1 Not tainted [ 19.828004][ C3] -------------------------------- [ 19.828224][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 19.828470][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 19.828747][ C3] ffffffff913bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 19.829102][ C3] {SOFTIRQ-ON-W} state was registered at: [ 19.829313][ C3] __lock_acquire+0x3eb/0x9d0 [ 19.829539][ C3] lock_acquire.part.0+0xb6/0x240 [ 19.829735][ C3] _raw_spin_lock+0x33/0x40 [ 19.829948][ C3] simple_pin_fs+0x24/0x150 [ 19.830166][ C3] start_creating.part.0+0x3f/0x2f0 [ 19.830404][ C3] debugfs_create_dir+0x6a/0x540 [ 19.830600][ C3] component_debug_init+0x17/0x30 [ 19.830797][ C3] do_one_initcall+0x8f/0x1e0 [ 19.830993][ C3] do_initcalls+0x176/0x280 [ 19.831208][ C3] kernel_init_freeable+0x22d/0x300 [ 19.831397][ C3] kernel_init+0x20/0x200 [ 19.831588][ C3] ret_from_fork+0x31/0x70 [ 19.831785][ C3] ret_from_fork_asm+0x1a/0x30 [ 19.831981][ C3] irq event stamp: 306576 [ 19.832129][ C3] hardirqs last enabled at (306576): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.832513][ C3] hardirqs last disabled at (306575): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 19.832900][ C3] softirqs last enabled at (305252): [] handle_softirqs+0x358/0x620 [ 19.833235][ C3] softirqs last disabled at (305289): [] __irq_exit_rcu+0xfa/0x160 [ 19.833569][ C3] [ 19.833569][ C3] other info that might help us debug this: [ 19.833850][ C3] Possible unsafe locking scenario: [ 19.833850][ C3] [ 19.834142][ C3] CPU0 [ 19.834296][ C3] ---- [ 19.834448][ C3] lock(pin_fs_lock); [ 19.834605][ C3] [ 19.834761][ C3] lock(pin_fs_lock); [ 19.834917][ C3] [ 19.834917][ C3] *** DEADLOCK *** [ 19.834917][ C3] [ 19.835229][ C3] 1 lock held by swapper/3/0: [ 19.835436][ C3] #0: ffffffff911749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 19.835807][ C3] [ 19.835807][ C3] stack backtrace: [ 19.836063][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 19.836068][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.836070][ C3] Call Trace: [ 19.836072][ C3] [ 19.836075][ C3] dump_stack_lvl+0x82/0xd0 [ 19.836081][ C3] print_usage_bug.part.0+0x25f/0x360 [ 19.836087][ C3] mark_lock_irq+0x343/0x400 [ 19.836093][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 19.836098][ C3] ? save_trace+0x52/0x170 [ 19.836103][ C3] mark_lock+0x174/0x2f0 [ 19.836107][ C3] mark_usage+0x46/0x150 [ 19.836111][ C3] __lock_acquire+0x3eb/0x9d0 [ 19.836117][ C3] lock_acquire.part.0+0xb6/0x240 [ 19.836119][ C3] ? simple_pin_fs+0x24/0x150 [ 19.836123][ C3] ? rcu_is_watching+0x12/0xc0 [ 19.836128][ C3] ? lock_acquire+0x10c/0x170 [ 19.836130][ C3] ? simple_pin_fs+0x24/0x150 [ 19.836134][ C3] _raw_spin_lock+0x33/0x40 [ 19.836137][ C3] ? simple_pin_fs+0x24/0x150 [ 19.836139][ C3] simple_pin_fs+0x24/0x150 [ 19.836143][ C3] debugfs_remove+0x35/0x70 [ 19.836146][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 19.836151][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.836154][ C3] ? __sk_destruct+0x383/0x780 [ 19.836159][ C3] ? rcu_do_batch+0x34f/0xf20 [ 19.836162][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.836165][ C3] ? irq_exit_rcu+0xe/0x30 [ 19.836167][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.836172][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.836176][ C3] ? pv_native_safe_halt+0xf/0x20 [ 19.836179][ C3] ? default_idle+0x9/0x10 [ 19.836181][ C3] ? default_idle_call+0x6d/0xb0 [ 19.836183][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.836188][ C3] ? do_idle+0xf6/0x160 [ 19.836191][ C3] ? cpu_startup_entry+0x54/0x60 [ 19.836194][ C3] ? start_secondary+0x213/0x2a0 [ 19.836199][ C3] ? common_startup_64+0x13e/0x148 [ 19.836205][ C3] __put_net+0x19/0x60 [ 19.836210][ C3] __sk_destruct+0x58a/0x780 [ 19.836214][ C3] ? rcu_do_batch+0x34a/0xf20 [ 19.836217][ C3] rcu_do_batch+0x34f/0xf20 [ 19.836221][ C3] ? find_held_lock+0x2b/0x80 [ 19.836225][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.836228][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.836232][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.836236][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 19.836240][ C3] rcu_core+0x2bb/0x500 [ 19.836244][ C3] handle_softirqs+0x218/0x620 [ 19.836249][ C3] __irq_exit_rcu+0xfa/0x160 [ 19.836251][ C3] irq_exit_rcu+0xe/0x30 [ 19.836254][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.836257][ C3] [ 19.836258][ C3] [ 19.836260][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.836262][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 19.836266][ C3] Code: 60 b8 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 75 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 19.836269][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 19.836272][ C3] RAX: 000000000004a887 RBX: 1ffff9200002afc1 RCX: ffffffff9015ba19 [ 19.836275][ C3] RDX: 0000000000000000 RSI: ffffffff90c87785 RDI: ffffffff90451260 [ 19.836276][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 19.836278][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 19.836280][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 19.836284][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 19.836288][ C3] default_idle+0x9/0x10 [ 19.836290][ C3] default_idle_call+0x6d/0xb0 [ 19.836293][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 19.836297][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 19.836301][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 19.836306][ C3] do_idle+0xf6/0x160 [ 19.836310][ C3] cpu_startup_entry+0x54/0x60 [ 19.836313][ C3] start_secondary+0x213/0x2a0 [ 19.836317][ C3] ? __pfx_start_secondary+0x10/0x10 [ 19.836322][ C3] common_startup_64+0x13e/0x148 [ 19.836328][ C3] [ 19.852496][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 19.852845][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 19.853178][ C3] preempt_count: 101, expected: 0 [ 19.853375][ C3] RCU nest depth: 0, expected: 0 [ 19.853699][ C3] INFO: lockdep is turned off. [ 19.853891][ C3] Preemption disabled at: [ 19.853893][ C3] [<0000000000000000>] 0x0 [ 19.854225][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 19.854230][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.854233][ C3] Call Trace: [ 19.854235][ C3] [ 19.854237][ C3] dump_stack_lvl+0xb0/0xd0 [ 19.854246][ C3] __might_resched+0x360/0x5a0 [ 19.854253][ C3] down_write+0x72/0x210 [ 19.854258][ C3] ? __pfx_down_write+0x10/0x10 [ 19.854261][ C3] ? simple_recursive_removal+0x3a/0x860 [ 19.854265][ C3] ? rcu_is_watching+0x12/0xc0 [ 19.854271][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 19.854276][ C3] simple_recursive_removal+0x166/0x860 [ 19.854279][ C3] ? __pfx_remove_one+0x10/0x10 [ 19.854284][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 19.854288][ C3] debugfs_remove+0x44/0x70 [ 19.854291][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 19.854296][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.854299][ C3] ? __sk_destruct+0x383/0x780 [ 19.854304][ C3] ? rcu_do_batch+0x34f/0xf20 [ 19.854308][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.854312][ C3] ? irq_exit_rcu+0xe/0x30 [ 19.854316][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.854322][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.854326][ C3] ? pv_native_safe_halt+0xf/0x20 [ 19.854330][ C3] ? default_idle+0x9/0x10 [ 19.854334][ C3] ? default_idle_call+0x6d/0xb0 [ 19.854337][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.854343][ C3] ? do_idle+0xf6/0x160 [ 19.854347][ C3] ? cpu_startup_entry+0x54/0x60 [ 19.854350][ C3] ? start_secondary+0x213/0x2a0 [ 19.854355][ C3] ? common_startup_64+0x13e/0x148 [ 19.854362][ C3] __put_net+0x19/0x60 [ 19.854365][ C3] __sk_destruct+0x58a/0x780 [ 19.854369][ C3] ? rcu_do_batch+0x34a/0xf20 [ 19.854372][ C3] rcu_do_batch+0x34f/0xf20 [ 19.854378][ C3] ? find_held_lock+0x2b/0x80 [ 19.854385][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.854391][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.854396][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.854401][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 19.854408][ C3] rcu_core+0x2bb/0x500 [ 19.854415][ C3] handle_softirqs+0x218/0x620 [ 19.854420][ C3] __irq_exit_rcu+0xfa/0x160 [ 19.854423][ C3] irq_exit_rcu+0xe/0x30 [ 19.854425][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.854429][ C3] [ 19.854430][ C3] [ 19.854432][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.854434][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 19.854439][ C3] Code: 60 b8 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 75 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 19.854442][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 19.854445][ C3] RAX: 000000000004a887 RBX: 1ffff9200002afc1 RCX: ffffffff9015ba19 [ 19.854447][ C3] RDX: 0000000000000000 RSI: ffffffff90c87785 RDI: ffffffff90451260 [ 19.854449][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 19.854451][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 19.854453][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 19.854457][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 19.854461][ C3] default_idle+0x9/0x10 [ 19.854464][ C3] default_idle_call+0x6d/0xb0 [ 19.854466][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 19.854470][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 19.854474][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 19.854479][ C3] do_idle+0xf6/0x160 [ 19.854483][ C3] cpu_startup_entry+0x54/0x60 [ 19.854487][ C3] start_secondary+0x213/0x2a0 [ 19.854493][ C3] ? __pfx_start_secondary+0x10/0x10 [ 19.854500][ C3] common_startup_64+0x13e/0x148 [ 19.854511][ C3] [ 23.922013][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 23.922386][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 23.922726][ C0] preempt_count: 101, expected: 0 [ 23.922920][ C0] RCU nest depth: 0, expected: 0 [ 23.923109][ C0] INFO: lockdep is turned off. [ 23.923298][ C0] Preemption disabled at: [ 23.923300][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 23.923740][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 23.923745][ C0] Tainted: [W]=WARN [ 23.923746][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 23.923748][ C0] Call Trace: [ 23.923751][ C0] [ 23.923752][ C0] dump_stack_lvl+0xb0/0xd0 [ 23.923758][ C0] __might_resched+0x360/0x5a0 [ 23.923765][ C0] down_write+0x72/0x210 [ 23.923769][ C0] ? __pfx_down_write+0x10/0x10 [ 23.923772][ C0] ? simple_recursive_removal+0x3a/0x860 [ 23.923776][ C0] ? rcu_is_watching+0x12/0xc0 [ 23.923783][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 23.923788][ C0] simple_recursive_removal+0x166/0x860 [ 23.923791][ C0] ? __pfx_remove_one+0x10/0x10 [ 23.923795][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 23.923800][ C0] debugfs_remove+0x44/0x70 [ 23.923803][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 23.923808][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 23.923811][ C0] ? __sk_destruct+0x383/0x780 [ 23.923817][ C0] ? rcu_do_batch+0x34f/0xf20 [ 23.923821][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 23.923824][ C0] ? irq_exit_rcu+0xe/0x30 [ 23.923828][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 23.923833][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 23.923836][ C0] ? pv_native_safe_halt+0xf/0x20 [ 23.923839][ C0] ? default_idle+0x9/0x10 [ 23.923842][ C0] ? default_idle_call+0x6d/0xb0 [ 23.923844][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 23.923849][ C0] ? do_idle+0xf6/0x160 [ 23.923852][ C0] ? cpu_startup_entry+0x54/0x60 [ 23.923855][ C0] ? rest_init+0x14b/0x260 [ 23.923858][ C0] ? start_kernel+0x350/0x410 [ 23.923864][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 23.923869][ C0] ? rcu_is_watching+0x12/0xc0 [ 23.923874][ C0] __put_net+0x19/0x60 [ 23.923877][ C0] __sk_destruct+0x58a/0x780 [ 23.923881][ C0] ? rcu_do_batch+0x34a/0xf20 [ 23.923884][ C0] rcu_do_batch+0x34f/0xf20 [ 23.923889][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 23.923893][ C0] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 23.923898][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 23.923904][ C0] rcu_core+0x2bb/0x500 [ 23.923907][ C0] handle_softirqs+0x218/0x620 [ 23.923912][ C0] __irq_exit_rcu+0xfa/0x160 [ 23.923915][ C0] irq_exit_rcu+0xe/0x30 [ 23.923917][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 23.923920][ C0] [ 23.923922][ C0] [ 23.923923][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 23.923926][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 23.923930][ C0] Code: 60 b8 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 75 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 23.923933][ C0] RSP: 0018:ffffffff90e07df8 EFLAGS: 00000246 [ 23.923937][ C0] RAX: 0000000000000000 RBX: 1ffffffff21c0fc3 RCX: ffffffff9015ba19 [ 23.923939][ C0] RDX: ffffed1006c0667b RSI: ffffffff904511e0 RDI: ffffffff8d98633f [ 23.923941][ C0] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c0667a [ 23.923942][ C0] R10: ffff8880360333d3 R11: ffffffff93ab3438 R12: 0000000000000000 [ 23.923944][ C0] R13: ffffffff90e1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 23.923948][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 23.923951][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 23.923956][ C0] default_idle+0x9/0x10 [ 23.923958][ C0] default_idle_call+0x6d/0xb0 [ 23.923961][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 23.923964][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 23.923969][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 23.923975][ C0] do_idle+0xf6/0x160 [ 23.923980][ C0] cpu_startup_entry+0x54/0x60 [ 23.923983][ C0] rest_init+0x14b/0x260 [ 23.923987][ C0] start_kernel+0x350/0x410 [ 23.923991][ C0] x86_64_start_reservations+0x18/0x30 [ 23.923996][ C0] x86_64_start_kernel+0xba/0x110 [ 23.924000][ C0] common_startup_64+0x13e/0x148 [ 23.924008][ C0]