[ 17.356640][ C0] [ 17.356847][ C0] ================================ [ 17.357191][ C0] WARNING: inconsistent lock state [ 17.357549][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 17.357891][ C0] -------------------------------- [ 17.358219][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 17.358666][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 17.359114][ C0] ffffffffa19bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 17.359735][ C0] {SOFTIRQ-ON-W} state was registered at: [ 17.360072][ C0] __lock_acquire+0x3eb/0x9d0 [ 17.360421][ C0] lock_acquire.part.0+0xb6/0x240 [ 17.360767][ C0] _raw_spin_lock+0x33/0x40 [ 17.361115][ C0] simple_pin_fs+0x24/0x150 [ 17.361458][ C0] start_creating.part.0+0x3f/0x2f0 [ 17.361810][ C0] debugfs_create_dir+0x6a/0x540 [ 17.362154][ C0] component_debug_init+0x17/0x30 [ 17.362505][ C0] do_one_initcall+0x8f/0x1e0 [ 17.362858][ C0] do_initcalls+0x176/0x280 [ 17.363207][ C0] kernel_init_freeable+0x22d/0x300 [ 17.363558][ C0] kernel_init+0x20/0x200 [ 17.363908][ C0] ret_from_fork+0x31/0x70 [ 17.364260][ C0] ret_from_fork_asm+0x1a/0x30 [ 17.364598][ C0] irq event stamp: 473836 [ 17.364829][ C0] hardirqs last enabled at (473836): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.365489][ C0] hardirqs last disabled at (473835): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 17.366117][ C0] softirqs last enabled at (473712): [] handle_softirqs+0x358/0x620 [ 17.366724][ C0] softirqs last disabled at (473767): [] __irq_exit_rcu+0xfa/0x160 [ 17.367333][ C0] [ 17.367333][ C0] other info that might help us debug this: [ 17.367842][ C0] Possible unsafe locking scenario: [ 17.367842][ C0] [ 17.368363][ C0] CPU0 [ 17.368599][ C0] ---- [ 17.368867][ C0] lock(pin_fs_lock); [ 17.369149][ C0] [ 17.369427][ C0] lock(pin_fs_lock); [ 17.369698][ C0] [ 17.369698][ C0] *** DEADLOCK *** [ 17.369698][ C0] [ 17.370229][ C0] 1 lock held by swapper/0/0: [ 17.370600][ C0] #0: ffffffffa17749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 17.371233][ C0] [ 17.371233][ C0] stack backtrace: [ 17.371671][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 17.371679][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.371682][ C0] Call Trace: [ 17.371684][ C0] [ 17.371687][ C0] dump_stack_lvl+0x82/0xd0 [ 17.371696][ C0] print_usage_bug.part.0+0x25f/0x360 [ 17.371706][ C0] mark_lock_irq+0x343/0x400 [ 17.371713][ C0] ? is_bpf_text_address+0x67/0x120 [ 17.371721][ C0] ? __lock_release+0x5d/0x170 [ 17.371728][ C0] ? save_trace+0x52/0x170 [ 17.371736][ C0] mark_lock+0x174/0x2f0 [ 17.371743][ C0] mark_usage+0x46/0x150 [ 17.371750][ C0] __lock_acquire+0x3eb/0x9d0 [ 17.371759][ C0] lock_acquire.part.0+0xb6/0x240 [ 17.371763][ C0] ? simple_pin_fs+0x24/0x150 [ 17.371770][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.371778][ C0] ? lock_acquire+0x10c/0x170 [ 17.371783][ C0] ? simple_pin_fs+0x24/0x150 [ 17.371790][ C0] _raw_spin_lock+0x33/0x40 [ 17.371795][ C0] ? simple_pin_fs+0x24/0x150 [ 17.371798][ C0] simple_pin_fs+0x24/0x150 [ 17.371803][ C0] debugfs_remove+0x35/0x70 [ 17.371809][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 17.371817][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.371822][ C0] ? __sk_destruct+0x383/0x780 [ 17.371829][ C0] ? rcu_do_batch+0x34f/0xf20 [ 17.371835][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.371840][ C0] ? irq_exit_rcu+0xe/0x30 [ 17.371845][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.371852][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.371856][ C0] ? pv_native_safe_halt+0xf/0x20 [ 17.371860][ C0] ? default_idle+0x9/0x10 [ 17.371863][ C0] ? default_idle_call+0x6d/0xb0 [ 17.371867][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.371874][ C0] ? do_idle+0xf6/0x160 [ 17.371878][ C0] ? cpu_startup_entry+0x54/0x60 [ 17.371883][ C0] ? rest_init+0x14b/0x260 [ 17.371888][ C0] ? start_kernel+0x350/0x410 [ 17.371900][ C0] __put_net+0x19/0x60 [ 17.371905][ C0] __sk_destruct+0x58a/0x780 [ 17.371912][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.371917][ C0] rcu_do_batch+0x34f/0xf20 [ 17.371924][ C0] ? find_held_lock+0x2b/0x80 [ 17.371931][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.371938][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.371943][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.371949][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.371958][ C0] rcu_core+0x2bb/0x500 [ 17.371965][ C0] handle_softirqs+0x218/0x620 [ 17.371974][ C0] __irq_exit_rcu+0xfa/0x160 [ 17.371979][ C0] irq_exit_rcu+0xe/0x30 [ 17.371983][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.371990][ C0] [ 17.371991][ C0] [ 17.371994][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.371999][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.372005][ 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.372010][ C0] RSP: 0018:ffffffffa1407df8 EFLAGS: 00000246 [ 17.372015][ C0] RAX: 0000000000073aa5 RBX: 1ffffffff4280fc3 RCX: ffffffffa075ba19 [ 17.372019][ C0] RDX: 0000000000000000 RSI: ffffffffa1287785 RDI: ffffffffa0a51260 [ 17.372023][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 17.372026][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 17.372029][ C0] R13: ffffffffa141f240 R14: dffffc0000000000 R15: 0000000000014770 [ 17.372037][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.372046][ C0] default_idle+0x9/0x10 [ 17.372050][ C0] default_idle_call+0x6d/0xb0 [ 17.372055][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 17.372061][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.372069][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.372080][ C0] do_idle+0xf6/0x160 [ 17.372087][ C0] cpu_startup_entry+0x54/0x60 [ 17.372093][ C0] rest_init+0x14b/0x260 [ 17.372099][ C0] start_kernel+0x350/0x410 [ 17.372106][ C0] x86_64_start_reservations+0x18/0x30 [ 17.372113][ C0] x86_64_start_kernel+0xba/0x110 [ 17.372120][ C0] common_startup_64+0x13e/0x148 [ 17.372135][ C0] [ 17.403905][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.404481][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 17.405057][ C0] preempt_count: 101, expected: 0 [ 17.405388][ C0] RCU nest depth: 0, expected: 0 [ 17.405731][ C0] INFO: lockdep is turned off. [ 17.406054][ C0] Preemption disabled at: [ 17.406057][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 17.407005][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 17.407012][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.407015][ C0] Call Trace: [ 17.407017][ C0] [ 17.407020][ C0] dump_stack_lvl+0xb0/0xd0 [ 17.407030][ C0] __might_resched+0x360/0x5a0 [ 17.407039][ C0] down_write+0x72/0x210 [ 17.407044][ C0] ? __pfx_down_write+0x10/0x10 [ 17.407048][ C0] ? simple_recursive_removal+0x3a/0x860 [ 17.407054][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.407063][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.407070][ C0] simple_recursive_removal+0x166/0x860 [ 17.407075][ C0] ? __pfx_remove_one+0x10/0x10 [ 17.407080][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.407089][ C0] debugfs_remove+0x44/0x70 [ 17.407094][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 17.407101][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.407106][ C0] ? __sk_destruct+0x383/0x780 [ 17.407113][ C0] ? rcu_do_batch+0x34f/0xf20 [ 17.407119][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.407123][ C0] ? irq_exit_rcu+0xe/0x30 [ 17.407128][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.407134][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.407139][ C0] ? pv_native_safe_halt+0xf/0x20 [ 17.407144][ C0] ? default_idle+0x9/0x10 [ 17.407147][ C0] ? default_idle_call+0x6d/0xb0 [ 17.407151][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.407158][ C0] ? do_idle+0xf6/0x160 [ 17.407163][ C0] ? cpu_startup_entry+0x54/0x60 [ 17.407167][ C0] ? rest_init+0x14b/0x260 [ 17.407171][ C0] ? start_kernel+0x350/0x410 [ 17.407182][ C0] __put_net+0x19/0x60 [ 17.407188][ C0] __sk_destruct+0x58a/0x780 [ 17.407195][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.407199][ C0] rcu_do_batch+0x34f/0xf20 [ 17.407205][ C0] ? find_held_lock+0x2b/0x80 [ 17.407213][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.407220][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.407226][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.407232][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.407241][ C0] rcu_core+0x2bb/0x500 [ 17.407247][ C0] handle_softirqs+0x218/0x620 [ 17.407257][ C0] __irq_exit_rcu+0xfa/0x160 [ 17.407262][ C0] irq_exit_rcu+0xe/0x30 [ 17.407266][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.407272][ C0] [ 17.407274][ C0] [ 17.407276][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.407281][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.407287][ 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.407291][ C0] RSP: 0018:ffffffffa1407df8 EFLAGS: 00000246 [ 17.407297][ C0] RAX: 0000000000073aa5 RBX: 1ffffffff4280fc3 RCX: ffffffffa075ba19 [ 17.407300][ C0] RDX: 0000000000000000 RSI: ffffffffa1287785 RDI: ffffffffa0a51260 [ 17.407303][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 17.407306][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 17.407310][ C0] R13: ffffffffa141f240 R14: dffffc0000000000 R15: 0000000000014770 [ 17.407318][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.407327][ C0] default_idle+0x9/0x10 [ 17.407331][ C0] default_idle_call+0x6d/0xb0 [ 17.407336][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 17.407342][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.407349][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.407359][ C0] do_idle+0xf6/0x160 [ 17.407366][ C0] cpu_startup_entry+0x54/0x60 [ 17.407372][ C0] rest_init+0x14b/0x260 [ 17.407379][ C0] start_kernel+0x350/0x410 [ 17.407386][ C0] x86_64_start_reservations+0x18/0x30 [ 17.407393][ C0] x86_64_start_kernel+0xba/0x110 [ 17.407399][ C0] common_startup_64+0x13e/0x148 [ 17.407414][ C0] [ 19.942722][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 19.943108][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 19.943423][ C2] preempt_count: 101, expected: 0 [ 19.943632][ C2] RCU nest depth: 0, expected: 0 [ 19.943817][ C2] INFO: lockdep is turned off. [ 19.944002][ C2] Preemption disabled at: [ 19.944004][ C2] [<0000000000000000>] 0x0 [ 19.944336][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 19.944342][ C2] Tainted: [W]=WARN [ 19.944343][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.944345][ C2] Call Trace: [ 19.944348][ C2] [ 19.944350][ C2] dump_stack_lvl+0xb0/0xd0 [ 19.944358][ C2] __might_resched+0x360/0x5a0 [ 19.944365][ C2] down_write+0x72/0x210 [ 19.944369][ C2] ? __pfx_down_write+0x10/0x10 [ 19.944372][ C2] ? simple_recursive_removal+0x3a/0x860 [ 19.944377][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.944383][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 19.944388][ C2] simple_recursive_removal+0x166/0x860 [ 19.944391][ C2] ? __pfx_remove_one+0x10/0x10 [ 19.944396][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 19.944401][ C2] debugfs_remove+0x44/0x70 [ 19.944404][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 19.944409][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.944412][ C2] ? __sk_destruct+0x383/0x780 [ 19.944418][ C2] ? rcu_do_batch+0x34f/0xf20 [ 19.944422][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.944425][ C2] ? irq_exit_rcu+0xe/0x30 [ 19.944429][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.944438][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.944443][ C2] ? pv_native_safe_halt+0xf/0x20 [ 19.944447][ C2] ? default_idle+0x9/0x10 [ 19.944451][ C2] ? default_idle_call+0x6d/0xb0 [ 19.944455][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.944460][ C2] ? do_idle+0xf6/0x160 [ 19.944463][ C2] ? cpu_startup_entry+0x54/0x60 [ 19.944466][ C2] ? start_secondary+0x213/0x2a0 [ 19.944471][ C2] ? common_startup_64+0x13e/0x148 [ 19.944476][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 19.944481][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.944486][ C2] __put_net+0x19/0x60 [ 19.944489][ C2] __sk_destruct+0x58a/0x780 [ 19.944493][ C2] ? rcu_do_batch+0x34a/0xf20 [ 19.944496][ C2] rcu_do_batch+0x34f/0xf20 [ 19.944501][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.944505][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 19.944510][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 19.944515][ C2] rcu_core+0x2bb/0x500 [ 19.944519][ C2] handle_softirqs+0x218/0x620 [ 19.944524][ C2] __irq_exit_rcu+0xfa/0x160 [ 19.944526][ C2] irq_exit_rcu+0xe/0x30 [ 19.944529][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.944532][ C2] [ 19.944533][ C2] [ 19.944535][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.944538][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 19.944542][ 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 [ 19.944545][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 19.944548][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffffa075ba19 [ 19.944550][ C2] RDX: ffffed1006c2667b RSI: ffffffffa0a511e0 RDI: ffffffff9df8633f [ 19.944552][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c2667a [ 19.944554][ C2] R10: ffff8880361333d3 R11: ffffffffa4132c20 R12: 0000000000000000 [ 19.944556][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 19.944560][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 19.944563][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.944567][ C2] default_idle+0x9/0x10 [ 19.944570][ C2] default_idle_call+0x6d/0xb0 [ 19.944572][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 19.944576][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 19.944580][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 19.944585][ C2] do_idle+0xf6/0x160 [ 19.944589][ C2] cpu_startup_entry+0x54/0x60 [ 19.944593][ C2] start_secondary+0x213/0x2a0 [ 19.944596][ C2] ? __pfx_start_secondary+0x10/0x10 [ 19.944602][ C2] common_startup_64+0x13e/0x148 [ 19.944608][ C2]