[ 18.506941][ C0] [ 18.507116][ C0] ================================ [ 18.507329][ C0] WARNING: inconsistent lock state [ 18.507561][ C0] 6.15.0-rc5-virtme #1 Not tainted [ 18.507802][ C0] -------------------------------- [ 18.508139][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 18.508570][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 18.509002][ C0] ffffffffa95bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 18.509601][ C0] {SOFTIRQ-ON-W} state was registered at: [ 18.509898][ C0] __lock_acquire+0x3eb/0x9d0 [ 18.510275][ C0] lock_acquire.part.0+0xb6/0x240 [ 18.510623][ C0] _raw_spin_lock+0x33/0x40 [ 18.510928][ C0] simple_pin_fs+0x24/0x150 [ 18.511188][ C0] start_creating.part.0+0x3f/0x2f0 [ 18.511482][ C0] debugfs_create_dir+0x6a/0x540 [ 18.511795][ C0] component_debug_init+0x17/0x30 [ 18.512155][ C0] do_one_initcall+0x8c/0x1e0 [ 18.512454][ C0] do_initcalls+0x176/0x280 [ 18.512805][ C0] kernel_init_freeable+0x22d/0x300 [ 18.513139][ C0] kernel_init+0x20/0x200 [ 18.513403][ C0] ret_from_fork+0x31/0x70 [ 18.513753][ C0] ret_from_fork_asm+0x1a/0x30 [ 18.514106][ C0] irq event stamp: 464962 [ 18.514375][ C0] hardirqs last enabled at (464962): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 18.515069][ C0] hardirqs last disabled at (464961): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 18.515761][ C0] softirqs last enabled at (464356): [] handle_softirqs+0x358/0x620 [ 18.516357][ C0] softirqs last disabled at (464369): [] __irq_exit_rcu+0xfa/0x160 [ 18.516869][ C0] [ 18.516869][ C0] other info that might help us debug this: [ 18.517302][ C0] Possible unsafe locking scenario: [ 18.517302][ C0] [ 18.517813][ C0] CPU0 [ 18.517997][ C0] ---- [ 18.518221][ C0] lock(pin_fs_lock); [ 18.518439][ C0] [ 18.518701][ C0] lock(pin_fs_lock); [ 18.518940][ C0] [ 18.518940][ C0] *** DEADLOCK *** [ 18.518940][ C0] [ 18.519371][ C0] 1 lock held by swapper/0/0: [ 18.519617][ C0] #0: ffffffffa9374480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 18.520265][ C0] [ 18.520265][ C0] stack backtrace: [ 18.520696][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 18.520705][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.520707][ C0] Call Trace: [ 18.520710][ C0] [ 18.520713][ C0] dump_stack_lvl+0x82/0xd0 [ 18.520723][ C0] print_usage_bug.part.0+0x25f/0x360 [ 18.520733][ C0] mark_lock_irq+0x343/0x400 [ 18.520740][ C0] ? is_bpf_text_address+0x67/0x120 [ 18.520749][ C0] ? __lock_release+0x5d/0x170 [ 18.520757][ C0] ? save_trace+0x52/0x170 [ 18.520765][ C0] mark_lock+0x174/0x2f0 [ 18.520771][ C0] mark_usage+0x46/0x150 [ 18.520777][ C0] __lock_acquire+0x3eb/0x9d0 [ 18.520785][ C0] lock_acquire.part.0+0xb6/0x240 [ 18.520791][ C0] ? simple_pin_fs+0x24/0x150 [ 18.520798][ C0] ? rcu_is_watching+0x12/0xc0 [ 18.520806][ C0] ? lock_acquire+0x10c/0x170 [ 18.520810][ C0] ? simple_pin_fs+0x24/0x150 [ 18.520818][ C0] _raw_spin_lock+0x33/0x40 [ 18.520823][ C0] ? simple_pin_fs+0x24/0x150 [ 18.520828][ C0] simple_pin_fs+0x24/0x150 [ 18.520835][ C0] debugfs_remove+0x35/0x70 [ 18.520841][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 18.520849][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.520854][ C0] ? __sk_destruct+0x383/0x780 [ 18.520864][ C0] ? rcu_do_batch+0x34c/0xf20 [ 18.520870][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.520875][ C0] ? irq_exit_rcu+0xe/0x30 [ 18.520879][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.520887][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.520893][ C0] ? pv_native_safe_halt+0xf/0x20 [ 18.520898][ C0] ? default_idle+0x9/0x10 [ 18.520902][ C0] ? default_idle_call+0x6d/0xb0 [ 18.520906][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.520915][ C0] ? do_idle+0xf6/0x160 [ 18.520920][ C0] ? cpu_startup_entry+0x54/0x60 [ 18.520925][ C0] ? rest_init+0x14b/0x260 [ 18.520929][ C0] ? start_kernel+0x350/0x410 [ 18.520940][ C0] __put_net+0x19/0x60 [ 18.520947][ C0] __sk_destruct+0x58a/0x780 [ 18.520953][ C0] ? rcu_do_batch+0x34a/0xf20 [ 18.520957][ C0] rcu_do_batch+0x34c/0xf20 [ 18.520964][ C0] ? find_held_lock+0x2b/0x80 [ 18.520971][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.520978][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 18.520983][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 18.520989][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 18.520997][ C0] rcu_core+0x2bb/0x500 [ 18.521003][ C0] handle_softirqs+0x218/0x620 [ 18.521011][ C0] __irq_exit_rcu+0xfa/0x160 [ 18.521016][ C0] irq_exit_rcu+0xe/0x30 [ 18.521019][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.521025][ C0] [ 18.521027][ C0] [ 18.521029][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.521034][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 18.521040][ C0] Code: b0 b8 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 d0 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 [ 18.521045][ C0] RSP: 0018:ffffffffa9007df8 EFLAGS: 00000242 [ 18.521050][ C0] RAX: 00000000000715ef RBX: 1ffffffff5200fc3 RCX: ffffffffa8355a19 [ 18.521054][ C0] RDX: 0000000000000000 RSI: ffffffffa8e85f31 RDI: ffffffffa8650ce0 [ 18.521058][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ec667a [ 18.521060][ C0] R10: ffff88802f6333d3 R11: 0000000000000000 R12: 0000000000000000 [ 18.521064][ C0] R13: ffffffffa901f240 R14: dffffc0000000000 R15: 0000000000014770 [ 18.521070][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 18.521080][ C0] default_idle+0x9/0x10 [ 18.521084][ C0] default_idle_call+0x6d/0xb0 [ 18.521089][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 18.521095][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 18.521102][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 18.521115][ C0] do_idle+0xf6/0x160 [ 18.521122][ C0] cpu_startup_entry+0x54/0x60 [ 18.521128][ C0] rest_init+0x14b/0x260 [ 18.521133][ C0] start_kernel+0x350/0x410 [ 18.521140][ C0] x86_64_start_reservations+0x18/0x30 [ 18.521147][ C0] x86_64_start_kernel+0xba/0x110 [ 18.521154][ C0] common_startup_64+0x13e/0x148 [ 18.521169][ C0] [ 18.550801][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.551582][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 18.552162][ C0] preempt_count: 101, expected: 0 [ 18.552482][ C0] RCU nest depth: 0, expected: 0 [ 18.553043][ C0] INFO: lockdep is turned off. [ 18.553377][ C0] Preemption disabled at: [ 18.553380][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 18.554129][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 18.554136][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.554139][ C0] Call Trace: [ 18.554141][ C0] [ 18.554144][ C0] dump_stack_lvl+0xb0/0xd0 [ 18.554152][ C0] __might_resched+0x360/0x5a0 [ 18.554162][ C0] down_write+0x72/0x210 [ 18.554168][ C0] ? __pfx_down_write+0x10/0x10 [ 18.554173][ C0] ? simple_recursive_removal+0x3a/0x860 [ 18.554180][ C0] ? rcu_is_watching+0x12/0xc0 [ 18.554188][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 18.554195][ C0] simple_recursive_removal+0x166/0x860 [ 18.554200][ C0] ? __pfx_remove_one+0x10/0x10 [ 18.554206][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 18.554214][ C0] debugfs_remove+0x44/0x70 [ 18.554219][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 18.554227][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.554232][ C0] ? __sk_destruct+0x383/0x780 [ 18.554239][ C0] ? rcu_do_batch+0x34c/0xf20 [ 18.554246][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.554250][ C0] ? irq_exit_rcu+0xe/0x30 [ 18.554255][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.554260][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.554266][ C0] ? pv_native_safe_halt+0xf/0x20 [ 18.554270][ C0] ? default_idle+0x9/0x10 [ 18.554274][ C0] ? default_idle_call+0x6d/0xb0 [ 18.554278][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.554284][ C0] ? do_idle+0xf6/0x160 [ 18.554289][ C0] ? cpu_startup_entry+0x54/0x60 [ 18.554294][ C0] ? rest_init+0x14b/0x260 [ 18.554298][ C0] ? start_kernel+0x350/0x410 [ 18.554309][ C0] __put_net+0x19/0x60 [ 18.554314][ C0] __sk_destruct+0x58a/0x780 [ 18.554321][ C0] ? rcu_do_batch+0x34a/0xf20 [ 18.554326][ C0] rcu_do_batch+0x34c/0xf20 [ 18.554332][ C0] ? find_held_lock+0x2b/0x80 [ 18.554340][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.554345][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 18.554351][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 18.554357][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 18.554365][ C0] rcu_core+0x2bb/0x500 [ 18.554371][ C0] handle_softirqs+0x218/0x620 [ 18.554380][ C0] __irq_exit_rcu+0xfa/0x160 [ 18.554385][ C0] irq_exit_rcu+0xe/0x30 [ 18.554389][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.554395][ C0] [ 18.554397][ C0] [ 18.554399][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.554404][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 18.554410][ C0] Code: b0 b8 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 d0 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 [ 18.554414][ C0] RSP: 0018:ffffffffa9007df8 EFLAGS: 00000242 [ 18.554420][ C0] RAX: 00000000000715ef RBX: 1ffffffff5200fc3 RCX: ffffffffa8355a19 [ 18.554423][ C0] RDX: 0000000000000000 RSI: ffffffffa8e85f31 RDI: ffffffffa8650ce0 [ 18.554426][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ec667a [ 18.554429][ C0] R10: ffff88802f6333d3 R11: 0000000000000000 R12: 0000000000000000 [ 18.554431][ C0] R13: ffffffffa901f240 R14: dffffc0000000000 R15: 0000000000014770 [ 18.554437][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 18.554445][ C0] default_idle+0x9/0x10 [ 18.554448][ C0] default_idle_call+0x6d/0xb0 [ 18.554451][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 18.554457][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 18.554463][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 18.554472][ C0] do_idle+0xf6/0x160 [ 18.554478][ C0] cpu_startup_entry+0x54/0x60 [ 18.554483][ C0] rest_init+0x14b/0x260 [ 18.554488][ C0] start_kernel+0x350/0x410 [ 18.554495][ C0] x86_64_start_reservations+0x18/0x30 [ 18.554501][ C0] x86_64_start_kernel+0xba/0x110 [ 18.554507][ C0] common_startup_64+0x13e/0x148 [ 18.554520][ C0] [ 21.451409][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 21.451799][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 21.452139][ C3] preempt_count: 101, expected: 0 [ 21.452333][ C3] RCU nest depth: 0, expected: 0 [ 21.452528][ C3] INFO: lockdep is turned off. [ 21.452774][ C3] Preemption disabled at: [ 21.452776][ C3] [<0000000000000000>] 0x0 [ 21.453128][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 21.453134][ C3] Tainted: [W]=WARN [ 21.453135][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.453137][ C3] Call Trace: [ 21.453139][ C3] [ 21.453141][ C3] dump_stack_lvl+0xb0/0xd0 [ 21.453150][ C3] __might_resched+0x360/0x5a0 [ 21.453156][ C3] down_write+0x72/0x210 [ 21.453160][ C3] ? __pfx_down_write+0x10/0x10 [ 21.453163][ C3] ? simple_recursive_removal+0x3a/0x860 [ 21.453167][ C3] ? rcu_is_watching+0x12/0xc0 [ 21.453173][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 21.453178][ C3] simple_recursive_removal+0x166/0x860 [ 21.453180][ C3] ? __pfx_remove_one+0x10/0x10 [ 21.453185][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 21.453189][ C3] debugfs_remove+0x44/0x70 [ 21.453192][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 21.453197][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 21.453200][ C3] ? __sk_destruct+0x383/0x780 [ 21.453206][ C3] ? rcu_do_batch+0x34c/0xf20 [ 21.453210][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 21.453213][ C3] ? irq_exit_rcu+0xe/0x30 [ 21.453217][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 21.453221][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 21.453225][ C3] ? pv_native_safe_halt+0xf/0x20 [ 21.453228][ C3] ? default_idle+0x9/0x10 [ 21.453230][ C3] ? default_idle_call+0x6d/0xb0 [ 21.453233][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 21.453237][ C3] ? do_idle+0xf6/0x160 [ 21.453240][ C3] ? cpu_startup_entry+0x54/0x60 [ 21.453243][ C3] ? start_secondary+0x213/0x2a0 [ 21.453248][ C3] ? common_startup_64+0x13e/0x148 [ 21.453253][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 21.453258][ C3] ? rcu_is_watching+0x12/0xc0 [ 21.453263][ C3] __put_net+0x19/0x60 [ 21.453266][ C3] __sk_destruct+0x58a/0x780 [ 21.453270][ C3] ? rcu_do_batch+0x34a/0xf20 [ 21.453273][ C3] rcu_do_batch+0x34c/0xf20 [ 21.453278][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 21.453281][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 21.453286][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 21.453291][ C3] rcu_core+0x2bb/0x500 [ 21.453295][ C3] handle_softirqs+0x218/0x620 [ 21.453299][ C3] __irq_exit_rcu+0xfa/0x160 [ 21.453302][ C3] irq_exit_rcu+0xe/0x30 [ 21.453304][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 21.453307][ C3] [ 21.453308][ C3] [ 21.453310][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 21.453312][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 21.453316][ C3] Code: b0 b8 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 d0 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 [ 21.453320][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 21.453324][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffffa8355a19 [ 21.453326][ C3] RDX: ffffed1005ef667b RSI: ffffffffa8650c60 RDI: ffffffffa5b84d8f [ 21.453328][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1005ef667a [ 21.453329][ C3] R10: ffff88802f7b33d3 R11: ffff88800be5a858 R12: 0000000000000000 [ 21.453331][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 21.453335][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 21.453339][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 21.453344][ C3] default_idle+0x9/0x10 [ 21.453346][ C3] default_idle_call+0x6d/0xb0 [ 21.453348][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 21.453352][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 21.453356][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 21.453361][ C3] do_idle+0xf6/0x160 [ 21.453365][ C3] cpu_startup_entry+0x54/0x60 [ 21.453368][ C3] start_secondary+0x213/0x2a0 [ 21.453372][ C3] ? __pfx_start_secondary+0x10/0x10 [ 21.453377][ C3] common_startup_64+0x13e/0x148 [ 21.453383][ C3]