[ 20.306799][ C0] [ 20.307027][ C0] ================================ [ 20.307236][ C0] WARNING: inconsistent lock state [ 20.307447][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 20.307653][ C0] -------------------------------- [ 20.307856][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 20.308107][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 20.308366][ C0] ffffffff919bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 20.308732][ C0] {SOFTIRQ-ON-W} state was registered at: [ 20.308935][ C0] __lock_acquire+0x3eb/0x9d0 [ 20.309148][ C0] lock_acquire.part.0+0xb6/0x240 [ 20.309357][ C0] _raw_spin_lock+0x33/0x40 [ 20.309567][ C0] simple_pin_fs+0x24/0x150 [ 20.309772][ C0] start_creating.part.0+0x3f/0x2f0 [ 20.309979][ C0] debugfs_create_dir+0x6a/0x540 [ 20.310187][ C0] component_debug_init+0x17/0x30 [ 20.310392][ C0] do_one_initcall+0x8f/0x1e0 [ 20.310599][ C0] do_initcalls+0x176/0x280 [ 20.310805][ C0] kernel_init_freeable+0x22d/0x300 [ 20.311012][ C0] kernel_init+0x20/0x200 [ 20.311216][ C0] ret_from_fork+0x31/0x70 [ 20.311420][ C0] ret_from_fork_asm+0x1a/0x30 [ 20.311627][ C0] irq event stamp: 435488 [ 20.311785][ C0] hardirqs last enabled at (435488): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.312194][ C0] hardirqs last disabled at (435487): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 20.312604][ C0] softirqs last enabled at (433532): [] handle_softirqs+0x358/0x620 [ 20.312959][ C0] softirqs last disabled at (433539): [] __irq_exit_rcu+0xfa/0x160 [ 20.313311][ C0] [ 20.313311][ C0] other info that might help us debug this: [ 20.313613][ C0] Possible unsafe locking scenario: [ 20.313613][ C0] [ 20.313926][ C0] CPU0 [ 20.314078][ C0] ---- [ 20.314232][ C0] lock(pin_fs_lock); [ 20.314416][ C0] [ 20.314569][ C0] lock(pin_fs_lock); [ 20.314732][ C0] [ 20.314732][ C0] *** DEADLOCK *** [ 20.314732][ C0] [ 20.315032][ C0] 1 lock held by swapper/0/0: [ 20.315238][ C0] #0: ffffffff917749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 20.315633][ C0] [ 20.315633][ C0] stack backtrace: [ 20.315890][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 20.315895][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.315897][ C0] Call Trace: [ 20.315899][ C0] [ 20.315901][ C0] dump_stack_lvl+0x82/0xd0 [ 20.315907][ C0] print_usage_bug.part.0+0x25f/0x360 [ 20.315914][ C0] mark_lock_irq+0x343/0x400 [ 20.315918][ C0] ? is_bpf_text_address+0x67/0x120 [ 20.315923][ C0] ? __lock_release+0x5d/0x170 [ 20.315927][ C0] ? save_trace+0x52/0x170 [ 20.315931][ C0] mark_lock+0x174/0x2f0 [ 20.315935][ C0] mark_usage+0x46/0x150 [ 20.315939][ C0] __lock_acquire+0x3eb/0x9d0 [ 20.315944][ C0] lock_acquire.part.0+0xb6/0x240 [ 20.315947][ C0] ? simple_pin_fs+0x24/0x150 [ 20.315951][ C0] ? rcu_is_watching+0x12/0xc0 [ 20.315956][ C0] ? lock_acquire+0x10c/0x170 [ 20.315958][ C0] ? simple_pin_fs+0x24/0x150 [ 20.315961][ C0] _raw_spin_lock+0x33/0x40 [ 20.315965][ C0] ? simple_pin_fs+0x24/0x150 [ 20.315968][ C0] simple_pin_fs+0x24/0x150 [ 20.315971][ C0] debugfs_remove+0x35/0x70 [ 20.315974][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 20.315979][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.315983][ C0] ? __sk_destruct+0x383/0x780 [ 20.315988][ C0] ? rcu_do_batch+0x34f/0xf20 [ 20.315991][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.315994][ C0] ? irq_exit_rcu+0xe/0x30 [ 20.315996][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.316001][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.316005][ C0] ? pv_native_safe_halt+0xf/0x20 [ 20.316008][ C0] ? default_idle+0x9/0x10 [ 20.316010][ C0] ? default_idle_call+0x6d/0xb0 [ 20.316013][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 20.316018][ C0] ? do_idle+0xf6/0x160 [ 20.316021][ C0] ? cpu_startup_entry+0x54/0x60 [ 20.316024][ C0] ? rest_init+0x14b/0x260 [ 20.316026][ C0] ? start_kernel+0x350/0x410 [ 20.316033][ C0] __put_net+0x19/0x60 [ 20.316037][ C0] __sk_destruct+0x58a/0x780 [ 20.316041][ C0] ? rcu_do_batch+0x34a/0xf20 [ 20.316044][ C0] rcu_do_batch+0x34f/0xf20 [ 20.316048][ C0] ? find_held_lock+0x2b/0x80 [ 20.316052][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.316056][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.316059][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.316063][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 20.316067][ C0] rcu_core+0x2bb/0x500 [ 20.316071][ C0] handle_softirqs+0x218/0x620 [ 20.316076][ C0] __irq_exit_rcu+0xfa/0x160 [ 20.316078][ C0] irq_exit_rcu+0xe/0x30 [ 20.316081][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.316084][ C0] [ 20.316085][ C0] [ 20.316087][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.316089][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 20.316093][ 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 [ 20.316096][ C0] RSP: 0018:ffffffff91407df8 EFLAGS: 00000246 [ 20.316099][ C0] RAX: 0000000000069d81 RBX: 1ffffffff2280fc3 RCX: ffffffff9075ba19 [ 20.316101][ C0] RDX: 0000000000000000 RSI: ffffffff91287785 RDI: ffffffff90a51260 [ 20.316103][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 20.316105][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 20.316106][ C0] R13: ffffffff9141f240 R14: dffffc0000000000 R15: 0000000000014770 [ 20.316110][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 20.316115][ C0] default_idle+0x9/0x10 [ 20.316117][ C0] default_idle_call+0x6d/0xb0 [ 20.316120][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 20.316124][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 20.316128][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 20.316135][ C0] do_idle+0xf6/0x160 [ 20.316139][ C0] cpu_startup_entry+0x54/0x60 [ 20.316142][ C0] rest_init+0x14b/0x260 [ 20.316145][ C0] start_kernel+0x350/0x410 [ 20.316150][ C0] x86_64_start_reservations+0x18/0x30 [ 20.316154][ C0] x86_64_start_kernel+0xba/0x110 [ 20.316158][ C0] common_startup_64+0x13e/0x148 [ 20.316166][ C0] [ 20.333777][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 20.334382][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 20.334716][ C0] preempt_count: 101, expected: 0 [ 20.335032][ C0] RCU nest depth: 0, expected: 0 [ 20.335225][ C0] INFO: lockdep is turned off. [ 20.335423][ C0] Preemption disabled at: [ 20.335424][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 20.335994][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 20.335999][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.336001][ C0] Call Trace: [ 20.336002][ C0] [ 20.336004][ C0] dump_stack_lvl+0xb0/0xd0 [ 20.336010][ C0] __might_resched+0x360/0x5a0 [ 20.336016][ C0] down_write+0x72/0x210 [ 20.336020][ C0] ? __pfx_down_write+0x10/0x10 [ 20.336022][ C0] ? simple_recursive_removal+0x3a/0x860 [ 20.336027][ C0] ? rcu_is_watching+0x12/0xc0 [ 20.336033][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 20.336037][ C0] simple_recursive_removal+0x166/0x860 [ 20.336040][ C0] ? __pfx_remove_one+0x10/0x10 [ 20.336044][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 20.336049][ C0] debugfs_remove+0x44/0x70 [ 20.336052][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 20.336056][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.336059][ C0] ? __sk_destruct+0x383/0x780 [ 20.336064][ C0] ? rcu_do_batch+0x34f/0xf20 [ 20.336069][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.336071][ C0] ? irq_exit_rcu+0xe/0x30 [ 20.336075][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.336079][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.336083][ C0] ? pv_native_safe_halt+0xf/0x20 [ 20.336086][ C0] ? default_idle+0x9/0x10 [ 20.336088][ C0] ? default_idle_call+0x6d/0xb0 [ 20.336091][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 20.336095][ C0] ? do_idle+0xf6/0x160 [ 20.336098][ C0] ? cpu_startup_entry+0x54/0x60 [ 20.336101][ C0] ? rest_init+0x14b/0x260 [ 20.336104][ C0] ? start_kernel+0x350/0x410 [ 20.336111][ C0] __put_net+0x19/0x60 [ 20.336115][ C0] __sk_destruct+0x58a/0x780 [ 20.336118][ C0] ? rcu_do_batch+0x34a/0xf20 [ 20.336121][ C0] rcu_do_batch+0x34f/0xf20 [ 20.336125][ C0] ? find_held_lock+0x2b/0x80 [ 20.336130][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.336134][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.336138][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.336142][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 20.336146][ C0] rcu_core+0x2bb/0x500 [ 20.336150][ C0] handle_softirqs+0x218/0x620 [ 20.336155][ C0] __irq_exit_rcu+0xfa/0x160 [ 20.336157][ C0] irq_exit_rcu+0xe/0x30 [ 20.336160][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.336163][ C0] [ 20.336164][ C0] [ 20.336166][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.336169][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 20.336173][ 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 [ 20.336176][ C0] RSP: 0018:ffffffff91407df8 EFLAGS: 00000246 [ 20.336179][ C0] RAX: 0000000000069d81 RBX: 1ffffffff2280fc3 RCX: ffffffff9075ba19 [ 20.336181][ C0] RDX: 0000000000000000 RSI: ffffffff91287785 RDI: ffffffff90a51260 [ 20.336183][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 20.336184][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 20.336186][ C0] R13: ffffffff9141f240 R14: dffffc0000000000 R15: 0000000000014770 [ 20.336190][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 20.336194][ C0] default_idle+0x9/0x10 [ 20.336197][ C0] default_idle_call+0x6d/0xb0 [ 20.336199][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 20.336203][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 20.336207][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 20.336213][ C0] do_idle+0xf6/0x160 [ 20.336217][ C0] cpu_startup_entry+0x54/0x60 [ 20.336221][ C0] rest_init+0x14b/0x260 [ 20.336224][ C0] start_kernel+0x350/0x410 [ 20.336229][ C0] x86_64_start_reservations+0x18/0x30 [ 20.336233][ C0] x86_64_start_kernel+0xba/0x110 [ 20.336237][ C0] common_startup_64+0x13e/0x148 [ 20.336244][ C0] [ 26.185865][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 26.186283][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 26.186602][ C3] preempt_count: 101, expected: 0 [ 26.186785][ C3] RCU nest depth: 0, expected: 0 [ 26.186967][ C3] INFO: lockdep is turned off. [ 26.187142][ C3] Preemption disabled at: [ 26.187143][ C3] [<0000000000000000>] 0x0 [ 26.187455][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 26.187460][ C3] Tainted: [W]=WARN [ 26.187462][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 26.187464][ C3] Call Trace: [ 26.187466][ C3] [ 26.187468][ C3] dump_stack_lvl+0xb0/0xd0 [ 26.187477][ C3] __might_resched+0x360/0x5a0 [ 26.187484][ C3] down_write+0x72/0x210 [ 26.187489][ C3] ? __pfx_down_write+0x10/0x10 [ 26.187492][ C3] ? simple_recursive_removal+0x3a/0x860 [ 26.187496][ C3] ? rcu_is_watching+0x12/0xc0 [ 26.187502][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 26.187507][ C3] simple_recursive_removal+0x166/0x860 [ 26.187510][ C3] ? __pfx_remove_one+0x10/0x10 [ 26.187515][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 26.187519][ C3] debugfs_remove+0x44/0x70 [ 26.187523][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 26.187527][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 26.187531][ C3] ? __sk_destruct+0x383/0x780 [ 26.187536][ C3] ? rcu_do_batch+0x34f/0xf20 [ 26.187540][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 26.187543][ C3] ? irq_exit_rcu+0xe/0x30 [ 26.187547][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 26.187551][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 26.187555][ C3] ? pv_native_safe_halt+0xf/0x20 [ 26.187558][ C3] ? default_idle+0x9/0x10 [ 26.187560][ C3] ? default_idle_call+0x6d/0xb0 [ 26.187563][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 26.187568][ C3] ? do_idle+0xf6/0x160 [ 26.187571][ C3] ? cpu_startup_entry+0x54/0x60 [ 26.187574][ C3] ? start_secondary+0x213/0x2a0 [ 26.187579][ C3] ? common_startup_64+0x13e/0x148 [ 26.187584][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 26.187588][ C3] ? rcu_is_watching+0x12/0xc0 [ 26.187593][ C3] __put_net+0x19/0x60 [ 26.187596][ C3] __sk_destruct+0x58a/0x780 [ 26.187600][ C3] ? rcu_do_batch+0x34a/0xf20 [ 26.187603][ C3] rcu_do_batch+0x34f/0xf20 [ 26.187609][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 26.187613][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 26.187617][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 26.187624][ C3] rcu_core+0x2bb/0x500 [ 26.187628][ C3] handle_softirqs+0x218/0x620 [ 26.187632][ C3] __irq_exit_rcu+0xfa/0x160 [ 26.187635][ C3] irq_exit_rcu+0xe/0x30 [ 26.187637][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 26.187640][ C3] [ 26.187642][ C3] [ 26.187643][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 26.187646][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 26.187650][ 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 [ 26.187653][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 26.187657][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffff9075ba19 [ 26.187659][ C3] RDX: ffffed1006c3667b RSI: ffffffff90a511e0 RDI: ffffffff8df8633f [ 26.187661][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c3667a [ 26.187662][ C3] R10: ffff8880361b33d3 R11: ffff8880092b0558 R12: 0000000000000000 [ 26.187664][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 26.187668][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 26.187671][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 26.187675][ C3] default_idle+0x9/0x10 [ 26.187678][ C3] default_idle_call+0x6d/0xb0 [ 26.187680][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 26.187684][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 26.187688][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 26.187694][ C3] do_idle+0xf6/0x160 [ 26.187698][ C3] cpu_startup_entry+0x54/0x60 [ 26.187702][ C3] start_secondary+0x213/0x2a0 [ 26.187705][ C3] ? __pfx_start_secondary+0x10/0x10 [ 26.187710][ C3] common_startup_64+0x13e/0x148 [ 26.187717][ C3]