[ 15.470420][ C2] [ 15.470569][ C2] ================================ [ 15.470774][ C2] WARNING: inconsistent lock state [ 15.470973][ C2] 6.15.0-rc7-virtme #1 Not tainted [ 15.471173][ C2] -------------------------------- [ 15.471372][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.471623][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.471873][ C2] ffffffffacfbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.472229][ C2] {SOFTIRQ-ON-W} state was registered at: [ 15.472427][ C2] __lock_acquire+0x3eb/0x9d0 [ 15.472632][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.472835][ C2] _raw_spin_lock+0x33/0x40 [ 15.473037][ C2] simple_pin_fs+0x24/0x150 [ 15.473238][ C2] start_creating.part.0+0x3f/0x2f0 [ 15.473436][ C2] debugfs_create_dir+0x6a/0x540 [ 15.473636][ C2] component_debug_init+0x17/0x30 [ 15.473837][ C2] do_one_initcall+0x8f/0x1e0 [ 15.474039][ C2] do_initcalls+0x176/0x280 [ 15.474244][ C2] kernel_init_freeable+0x22d/0x300 [ 15.474445][ C2] kernel_init+0x20/0x200 [ 15.474646][ C2] ret_from_fork+0x31/0x70 [ 15.474844][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.475043][ C2] irq event stamp: 293208 [ 15.475191][ C2] hardirqs last enabled at (293208): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.475601][ C2] hardirqs last disabled at (293207): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.475992][ C2] softirqs last enabled at (292130): [] handle_softirqs+0x358/0x620 [ 15.476346][ C2] softirqs last disabled at (292173): [] __irq_exit_rcu+0xfa/0x160 [ 15.476692][ C2] [ 15.476692][ C2] other info that might help us debug this: [ 15.476987][ C2] Possible unsafe locking scenario: [ 15.476987][ C2] [ 15.477278][ C2] CPU0 [ 15.477430][ C2] ---- [ 15.477579][ C2] lock(pin_fs_lock); [ 15.477729][ C2] [ 15.477879][ C2] lock(pin_fs_lock); [ 15.478030][ C2] [ 15.478030][ C2] *** DEADLOCK *** [ 15.478030][ C2] [ 15.478321][ C2] 1 lock held by swapper/2/0: [ 15.478520][ C2] #0: ffffffffacd749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.478885][ C2] [ 15.478885][ C2] stack backtrace: [ 15.479134][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.479139][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.479141][ C2] Call Trace: [ 15.479143][ C2] [ 15.479145][ C2] dump_stack_lvl+0x82/0xd0 [ 15.479151][ C2] print_usage_bug.part.0+0x25f/0x360 [ 15.479156][ C2] mark_lock_irq+0x343/0x400 [ 15.479161][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.479167][ C2] ? save_trace+0x52/0x170 [ 15.479172][ C2] mark_lock+0x174/0x2f0 [ 15.479176][ C2] mark_usage+0x46/0x150 [ 15.479180][ C2] __lock_acquire+0x3eb/0x9d0 [ 15.479185][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.479188][ C2] ? simple_pin_fs+0x24/0x150 [ 15.479191][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.479196][ C2] ? lock_acquire+0x10c/0x170 [ 15.479198][ C2] ? simple_pin_fs+0x24/0x150 [ 15.479202][ C2] _raw_spin_lock+0x33/0x40 [ 15.479205][ C2] ? simple_pin_fs+0x24/0x150 [ 15.479207][ C2] simple_pin_fs+0x24/0x150 [ 15.479210][ C2] debugfs_remove+0x35/0x70 [ 15.479213][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.479219][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.479222][ C2] ? __sk_destruct+0x383/0x780 [ 15.479227][ C2] ? rcu_do_batch+0x34f/0xf20 [ 15.479230][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.479233][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.479235][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.479240][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.479243][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.479246][ C2] ? default_idle+0x9/0x10 [ 15.479248][ C2] ? default_idle_call+0x6d/0xb0 [ 15.479251][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.479255][ C2] ? do_idle+0xf6/0x160 [ 15.479257][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.479260][ C2] ? start_secondary+0x213/0x2a0 [ 15.479265][ C2] ? common_startup_64+0x13e/0x148 [ 15.479271][ C2] __put_net+0x19/0x60 [ 15.479275][ C2] __sk_destruct+0x58a/0x780 [ 15.479279][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.479282][ C2] rcu_do_batch+0x34f/0xf20 [ 15.479286][ C2] ? find_held_lock+0x2b/0x80 [ 15.479290][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.479294][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.479297][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.479301][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.479305][ C2] rcu_core+0x2bb/0x500 [ 15.479310][ C2] handle_softirqs+0x218/0x620 [ 15.479314][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.479317][ C2] irq_exit_rcu+0xe/0x30 [ 15.479319][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.479323][ C2] [ 15.479324][ C2] [ 15.479325][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.479328][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.479332][ C2] 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 [ 15.479335][ C2] RSP: 0000:ffffc90000147de8 EFLAGS: 00000246 [ 15.479338][ C2] RAX: 000000000004754b RBX: 1ffff92000028fc1 RCX: ffffffffabd5ba19 [ 15.479340][ C2] RDX: 0000000000000000 RSI: ffffffffac887785 RDI: ffffffffac051260 [ 15.479342][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ea667a [ 15.479343][ C2] R10: ffff88802f5333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.479345][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 15.479349][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.479354][ C2] default_idle+0x9/0x10 [ 15.479356][ C2] default_idle_call+0x6d/0xb0 [ 15.479359][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.479363][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.479367][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.479372][ C2] do_idle+0xf6/0x160 [ 15.479376][ C2] cpu_startup_entry+0x54/0x60 [ 15.479380][ C2] start_secondary+0x213/0x2a0 [ 15.479383][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.479388][ C2] common_startup_64+0x13e/0x148 [ 15.479395][ C2] [ 15.495788][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.496139][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 15.496489][ C2] preempt_count: 101, expected: 0 [ 15.496689][ C2] RCU nest depth: 0, expected: 0 [ 15.496887][ C2] INFO: lockdep is turned off. [ 15.497194][ C2] Preemption disabled at: [ 15.497196][ C2] [<0000000000000000>] 0x0 [ 15.497551][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.497556][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.497558][ C2] Call Trace: [ 15.497560][ C2] [ 15.497562][ C2] dump_stack_lvl+0xb0/0xd0 [ 15.497569][ C2] __might_resched+0x360/0x5a0 [ 15.497575][ C2] down_write+0x72/0x210 [ 15.497579][ C2] ? __pfx_down_write+0x10/0x10 [ 15.497582][ C2] ? simple_recursive_removal+0x3a/0x860 [ 15.497586][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.497592][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.497597][ C2] simple_recursive_removal+0x166/0x860 [ 15.497599][ C2] ? __pfx_remove_one+0x10/0x10 [ 15.497603][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.497608][ C2] debugfs_remove+0x44/0x70 [ 15.497611][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.497616][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.497619][ C2] ? __sk_destruct+0x383/0x780 [ 15.497624][ C2] ? rcu_do_batch+0x34f/0xf20 [ 15.497628][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.497631][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.497634][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.497638][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.497641][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.497645][ C2] ? default_idle+0x9/0x10 [ 15.497647][ C2] ? default_idle_call+0x6d/0xb0 [ 15.497650][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.497654][ C2] ? do_idle+0xf6/0x160 [ 15.497657][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.497661][ C2] ? start_secondary+0x213/0x2a0 [ 15.497665][ C2] ? common_startup_64+0x13e/0x148 [ 15.497672][ C2] __put_net+0x19/0x60 [ 15.497675][ C2] __sk_destruct+0x58a/0x780 [ 15.497679][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.497682][ C2] rcu_do_batch+0x34f/0xf20 [ 15.497686][ C2] ? find_held_lock+0x2b/0x80 [ 15.497691][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.497695][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.497698][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.497702][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.497707][ C2] rcu_core+0x2bb/0x500 [ 15.497711][ C2] handle_softirqs+0x218/0x620 [ 15.497716][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.497719][ C2] irq_exit_rcu+0xe/0x30 [ 15.497721][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.497725][ C2] [ 15.497726][ C2] [ 15.497727][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.497730][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.497734][ C2] 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 [ 15.497736][ C2] RSP: 0000:ffffc90000147de8 EFLAGS: 00000246 [ 15.497740][ C2] RAX: 000000000004754b RBX: 1ffff92000028fc1 RCX: ffffffffabd5ba19 [ 15.497743][ C2] RDX: 0000000000000000 RSI: ffffffffac887785 RDI: ffffffffac051260 [ 15.497745][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ea667a [ 15.497747][ C2] R10: ffff88802f5333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.497748][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 15.497752][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.497757][ C2] default_idle+0x9/0x10 [ 15.497759][ C2] default_idle_call+0x6d/0xb0 [ 15.497762][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.497765][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.497770][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.497775][ C2] do_idle+0xf6/0x160 [ 15.497779][ C2] cpu_startup_entry+0x54/0x60 [ 15.497782][ C2] start_secondary+0x213/0x2a0 [ 15.497786][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.497791][ C2] common_startup_64+0x13e/0x148 [ 15.497798][ C2] [ 17.194719][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.195129][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 17.195519][ C0] preempt_count: 101, expected: 0 [ 17.195723][ C0] RCU nest depth: 0, expected: 0 [ 17.195923][ C0] INFO: lockdep is turned off. [ 17.196130][ C0] Preemption disabled at: [ 17.196131][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 17.196601][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 17.196607][ C0] Tainted: [W]=WARN [ 17.196608][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.196610][ C0] Call Trace: [ 17.196612][ C0] [ 17.196613][ C0] dump_stack_lvl+0xb0/0xd0 [ 17.196619][ C0] __might_resched+0x360/0x5a0 [ 17.196625][ C0] down_write+0x72/0x210 [ 17.196629][ C0] ? __pfx_down_write+0x10/0x10 [ 17.196632][ C0] ? simple_recursive_removal+0x3a/0x860 [ 17.196637][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.196643][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.196648][ C0] simple_recursive_removal+0x166/0x860 [ 17.196651][ C0] ? __pfx_remove_one+0x10/0x10 [ 17.196655][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.196660][ C0] debugfs_remove+0x44/0x70 [ 17.196663][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 17.196668][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.196671][ C0] ? __sk_destruct+0x383/0x780 [ 17.196677][ C0] ? rcu_do_batch+0x34f/0xf20 [ 17.196681][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.196684][ C0] ? irq_exit_rcu+0xe/0x30 [ 17.196689][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.196693][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.196697][ C0] ? pv_native_safe_halt+0xf/0x20 [ 17.196697][ T220] perl (220) used greatest stack depth: 24768 bytes left [ 17.196700][ C0] ? default_idle+0x9/0x10 [ 17.196703][ C0] ? default_idle_call+0x6d/0xb0 [ 17.196705][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.196710][ C0] ? do_idle+0xf6/0x160 [ 17.196713][ C0] ? cpu_startup_entry+0x54/0x60 [ 17.196716][ C0] ? rest_init+0x14b/0x260 [ 17.196719][ C0] ? start_kernel+0x350/0x410 [ 17.196725][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.196729][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.196734][ C0] __put_net+0x19/0x60 [ 17.196737][ C0] __sk_destruct+0x58a/0x780 [ 17.196741][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.196745][ C0] rcu_do_batch+0x34f/0xf20 [ 17.196750][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.196754][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.196759][ C0] rcu_core+0x2bb/0x500 [ 17.196763][ C0] handle_softirqs+0x218/0x620 [ 17.196768][ C0] __irq_exit_rcu+0xfa/0x160 [ 17.196771][ C0] irq_exit_rcu+0xe/0x30 [ 17.196773][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.196776][ C0] [ 17.196778][ C0] [ 17.196779][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.196782][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.196786][ 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 [ 17.196788][ C0] RSP: 0000:ffffffffaca07df8 EFLAGS: 00000246 [ 17.196792][ C0] RAX: 0000000000000000 RBX: 1ffffffff5940fc3 RCX: ffffffffabd5ba19 [ 17.196794][ C0] RDX: ffffed1005e8667b RSI: ffffffffac0511e0 RDI: ffffffffa958633f [ 17.196796][ C0] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1005e8667a [ 17.196798][ C0] R10: ffff88802f4333d3 R11: ffff888001bdcb58 R12: 0000000000000000 [ 17.196800][ C0] R13: ffffffffaca1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 17.196804][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.196807][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.196811][ C0] default_idle+0x9/0x10 [ 17.196814][ C0] default_idle_call+0x6d/0xb0 [ 17.196816][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 17.196820][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.196824][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.196831][ C0] do_idle+0xf6/0x160 [ 17.196835][ C0] cpu_startup_entry+0x54/0x60 [ 17.196838][ C0] rest_init+0x14b/0x260 [ 17.196841][ C0] start_kernel+0x350/0x410 [ 17.196846][ C0] x86_64_start_reservations+0x18/0x30 [ 17.196850][ C0] x86_64_start_kernel+0xba/0x110 [ 17.196854][ C0] common_startup_64+0x13e/0x148 [ 17.196862][ C0]