[ 14.415581][ C3] [ 14.415718][ C3] ================================ [ 14.415906][ C3] WARNING: inconsistent lock state [ 14.416086][ C3] 6.15.0-rc5-virtme #1 Not tainted [ 14.416277][ C3] -------------------------------- [ 14.416457][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.416683][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.416912][ C3] ffffffffa03bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.417236][ C3] {SOFTIRQ-ON-W} state was registered at: [ 14.417415][ C3] __lock_acquire+0x3eb/0x9d0 [ 14.417606][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.417790][ C3] _raw_spin_lock+0x33/0x40 [ 14.417974][ C3] simple_pin_fs+0x24/0x150 [ 14.418156][ C3] start_creating.part.0+0x3f/0x2f0 [ 14.418339][ C3] debugfs_create_dir+0x6a/0x540 [ 14.418520][ C3] component_debug_init+0x17/0x30 [ 14.418705][ C3] do_one_initcall+0x8c/0x1e0 [ 14.418893][ C3] do_initcalls+0x176/0x280 [ 14.419073][ C3] kernel_init_freeable+0x22d/0x300 [ 14.419253][ C3] kernel_init+0x20/0x200 [ 14.419433][ C3] ret_from_fork+0x31/0x70 [ 14.419614][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.419792][ C3] irq event stamp: 283290 [ 14.419928][ C3] hardirqs last enabled at (283290): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.420281][ C3] hardirqs last disabled at (283289): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.420665][ C3] softirqs last enabled at (281142): [] handle_softirqs+0x358/0x620 [ 14.420984][ C3] softirqs last disabled at (281149): [] __irq_exit_rcu+0xfa/0x160 [ 14.421303][ C3] [ 14.421303][ C3] other info that might help us debug this: [ 14.421573][ C3] Possible unsafe locking scenario: [ 14.421573][ C3] [ 14.421843][ C3] CPU0 [ 14.421985][ C3] ---- [ 14.422122][ C3] lock(pin_fs_lock); [ 14.422261][ C3] [ 14.422398][ C3] lock(pin_fs_lock); [ 14.422533][ C3] [ 14.422533][ C3] *** DEADLOCK *** [ 14.422533][ C3] [ 14.422804][ C3] 1 lock held by swapper/3/0: [ 14.422987][ C3] #0: ffffffffa0174480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.423328][ C3] [ 14.423328][ C3] stack backtrace: [ 14.423557][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.423562][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.423565][ C3] Call Trace: [ 14.423566][ C3] [ 14.423569][ C3] dump_stack_lvl+0x82/0xd0 [ 14.423574][ C3] print_usage_bug.part.0+0x25f/0x360 [ 14.423579][ C3] mark_lock_irq+0x343/0x400 [ 14.423584][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.423589][ C3] ? save_trace+0x52/0x170 [ 14.423594][ C3] mark_lock+0x174/0x2f0 [ 14.423598][ C3] mark_usage+0x46/0x150 [ 14.423601][ C3] __lock_acquire+0x3eb/0x9d0 [ 14.423607][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.423610][ C3] ? simple_pin_fs+0x24/0x150 [ 14.423614][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.423620][ C3] ? lock_acquire+0x10c/0x170 [ 14.423623][ C3] ? simple_pin_fs+0x24/0x150 [ 14.423627][ C3] _raw_spin_lock+0x33/0x40 [ 14.423630][ C3] ? simple_pin_fs+0x24/0x150 [ 14.423634][ C3] simple_pin_fs+0x24/0x150 [ 14.423637][ C3] debugfs_remove+0x35/0x70 [ 14.423640][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.423646][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.423649][ C3] ? __sk_destruct+0x383/0x780 [ 14.423654][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.423657][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.423660][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.423663][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.423667][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.423671][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.423674][ C3] ? default_idle+0x9/0x10 [ 14.423676][ C3] ? default_idle_call+0x6d/0xb0 [ 14.423678][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.423683][ C3] ? do_idle+0xf6/0x160 [ 14.423685][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.423689][ C3] ? start_secondary+0x213/0x2a0 [ 14.423693][ C3] ? common_startup_64+0x13e/0x148 [ 14.423699][ C3] __put_net+0x19/0x60 [ 14.423703][ C3] __sk_destruct+0x58a/0x780 [ 14.423706][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.423709][ C3] rcu_do_batch+0x34c/0xf20 [ 14.423713][ C3] ? find_held_lock+0x2b/0x80 [ 14.423717][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.423720][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.423724][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.423727][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.423732][ C3] rcu_core+0x2bb/0x500 [ 14.423735][ C3] handle_softirqs+0x218/0x620 [ 14.423740][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.423742][ C3] irq_exit_rcu+0xe/0x30 [ 14.423744][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.423748][ C3] [ 14.423749][ C3] [ 14.423751][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.423753][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.423757][ 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 [ 14.423760][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 14.423764][ C3] RAX: 0000000000044a3b RBX: 1ffff9200002afc1 RCX: ffffffff9f155a19 [ 14.423766][ C3] RDX: 0000000000000000 RSI: ffffffff9fc85f31 RDI: ffffffff9f450ce0 [ 14.423768][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 14.423769][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.423771][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 14.423775][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.423780][ C3] default_idle+0x9/0x10 [ 14.423782][ C3] default_idle_call+0x6d/0xb0 [ 14.423784][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.423788][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.423792][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.423797][ C3] do_idle+0xf6/0x160 [ 14.423801][ C3] cpu_startup_entry+0x54/0x60 [ 14.423804][ C3] start_secondary+0x213/0x2a0 [ 14.423808][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.423813][ C3] common_startup_64+0x13e/0x148 [ 14.423819][ C3] [ 14.438161][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.438462][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 14.438771][ C3] preempt_count: 101, expected: 0 [ 14.438946][ C3] RCU nest depth: 0, expected: 0 [ 14.439115][ C3] INFO: lockdep is turned off. [ 14.439285][ C3] Preemption disabled at: [ 14.439286][ C3] [<0000000000000000>] 0x0 [ 14.439581][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.439585][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.439587][ C3] Call Trace: [ 14.439588][ C3] [ 14.439590][ C3] dump_stack_lvl+0xb0/0xd0 [ 14.439595][ C3] __might_resched+0x360/0x5a0 [ 14.439601][ C3] down_write+0x72/0x210 [ 14.439604][ C3] ? __pfx_down_write+0x10/0x10 [ 14.439607][ C3] ? simple_recursive_removal+0x3a/0x860 [ 14.439610][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.439615][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.439619][ C3] simple_recursive_removal+0x166/0x860 [ 14.439621][ C3] ? __pfx_remove_one+0x10/0x10 [ 14.439626][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.439630][ C3] debugfs_remove+0x44/0x70 [ 14.439633][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.439637][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.439640][ C3] ? __sk_destruct+0x383/0x780 [ 14.439644][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.439647][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.439650][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.439653][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.439657][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.439660][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.439664][ C3] ? default_idle+0x9/0x10 [ 14.439666][ C3] ? default_idle_call+0x6d/0xb0 [ 14.439668][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.439672][ C3] ? do_idle+0xf6/0x160 [ 14.439675][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.439678][ C3] ? start_secondary+0x213/0x2a0 [ 14.439682][ C3] ? common_startup_64+0x13e/0x148 [ 14.439688][ C3] __put_net+0x19/0x60 [ 14.439691][ C3] __sk_destruct+0x58a/0x780 [ 14.439694][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.439697][ C3] rcu_do_batch+0x34c/0xf20 [ 14.439701][ C3] ? find_held_lock+0x2b/0x80 [ 14.439705][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.439709][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.439713][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.439716][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.439721][ C3] rcu_core+0x2bb/0x500 [ 14.439724][ C3] handle_softirqs+0x218/0x620 [ 14.439732][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.439734][ C3] irq_exit_rcu+0xe/0x30 [ 14.439736][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.439740][ C3] [ 14.439741][ C3] [ 14.439743][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.439745][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.439749][ 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 [ 14.439751][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 14.439754][ C3] RAX: 0000000000044a3b RBX: 1ffff9200002afc1 RCX: ffffffff9f155a19 [ 14.439756][ C3] RDX: 0000000000000000 RSI: ffffffff9fc85f31 RDI: ffffffff9f450ce0 [ 14.439758][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 14.439760][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.439762][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 14.439765][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.439771][ C3] default_idle+0x9/0x10 [ 14.439773][ C3] default_idle_call+0x6d/0xb0 [ 14.439775][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.439779][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.439783][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.439788][ C3] do_idle+0xf6/0x160 [ 14.439791][ C3] cpu_startup_entry+0x54/0x60 [ 14.439795][ C3] start_secondary+0x213/0x2a0 [ 14.439799][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.439804][ C3] common_startup_64+0x13e/0x148 [ 14.439810][ C3] [ 16.005105][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.005463][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 16.005796][ C0] preempt_count: 101, expected: 0 [ 16.005980][ C0] RCU nest depth: 0, expected: 0 [ 16.006161][ C0] INFO: lockdep is turned off. [ 16.006346][ C0] Preemption disabled at: [ 16.006348][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 16.006783][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.006788][ C0] Tainted: [W]=WARN [ 16.006790][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.006792][ C0] Call Trace: [ 16.006794][ C0] [ 16.006795][ C0] dump_stack_lvl+0xb0/0xd0 [ 16.006801][ C0] __might_resched+0x360/0x5a0 [ 16.006808][ C0] down_write+0x72/0x210 [ 16.006811][ C0] ? __pfx_down_write+0x10/0x10 [ 16.006814][ C0] ? simple_recursive_removal+0x3a/0x860 [ 16.006818][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.006824][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.006829][ C0] simple_recursive_removal+0x166/0x860 [ 16.006831][ C0] ? __pfx_remove_one+0x10/0x10 [ 16.006835][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.006840][ C0] debugfs_remove+0x44/0x70 [ 16.006843][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 16.006848][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.006851][ C0] ? __sk_destruct+0x383/0x780 [ 16.006856][ C0] ? rcu_do_batch+0x34c/0xf20 [ 16.006860][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.006863][ C0] ? irq_exit_rcu+0xe/0x30 [ 16.006866][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.006870][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.006874][ C0] ? pv_native_safe_halt+0xf/0x20 [ 16.006877][ C0] ? default_idle+0x9/0x10 [ 16.006880][ C0] ? default_idle_call+0x6d/0xb0 [ 16.006882][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.006886][ C0] ? do_idle+0xf6/0x160 [ 16.006889][ C0] ? cpu_startup_entry+0x54/0x60 [ 16.006892][ C0] ? rest_init+0x14b/0x260 [ 16.006895][ C0] ? start_kernel+0x350/0x410 [ 16.006900][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.006904][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.006909][ C0] __put_net+0x19/0x60 [ 16.006912][ C0] __sk_destruct+0x58a/0x780 [ 16.006916][ C0] ? rcu_do_batch+0x34a/0xf20 [ 16.006919][ C0] rcu_do_batch+0x34c/0xf20 [ 16.006924][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.006927][ C0] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.006932][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.006938][ C0] rcu_core+0x2bb/0x500 [ 16.006941][ C0] handle_softirqs+0x218/0x620 [ 16.006946][ C0] __irq_exit_rcu+0xfa/0x160 [ 16.006948][ C0] irq_exit_rcu+0xe/0x30 [ 16.006951][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.006954][ C0] [ 16.006955][ C0] [ 16.006957][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.006959][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.006963][ 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 [ 16.006966][ C0] RSP: 0018:ffffffff9fe07df8 EFLAGS: 00000246 [ 16.006970][ C0] RAX: 0000000000000000 RBX: 1ffffffff3fc0fc3 RCX: ffffffff9f155a19 [ 16.006972][ C0] RDX: ffffed1006c0667b RSI: ffffffff9f450c60 RDI: ffffffff9c984d8f [ 16.006974][ C0] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c0667a [ 16.006975][ C0] R10: ffff8880360333d3 R11: ffffffffa2a2fba8 R12: 0000000000000000 [ 16.006977][ C0] R13: ffffffff9fe1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 16.006981][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.006985][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.006990][ C0] default_idle+0x9/0x10 [ 16.006992][ C0] default_idle_call+0x6d/0xb0 [ 16.006994][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 16.006998][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.007002][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.007009][ C0] do_idle+0xf6/0x160 [ 16.007013][ C0] cpu_startup_entry+0x54/0x60 [ 16.007016][ C0] rest_init+0x14b/0x260 [ 16.007019][ C0] start_kernel+0x350/0x410 [ 16.007023][ C0] x86_64_start_reservations+0x18/0x30 [ 16.007028][ C0] x86_64_start_kernel+0xba/0x110 [ 16.007031][ C0] common_startup_64+0x13e/0x148 [ 16.007039][ C0]