[ 15.453526][ C0] [ 15.453753][ C0] ================================ [ 15.453990][ C0] WARNING: inconsistent lock state [ 15.454223][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 15.454448][ C0] -------------------------------- [ 15.454677][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.454974][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.455261][ C0] ffffffff953bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.455671][ C0] {SOFTIRQ-ON-W} state was registered at: [ 15.455904][ C0] __lock_acquire+0x3eb/0x9d0 [ 15.456136][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.456362][ C0] _raw_spin_lock+0x33/0x40 [ 15.456589][ C0] simple_pin_fs+0x24/0x150 [ 15.456814][ C0] start_creating.part.0+0x3f/0x2f0 [ 15.457040][ C0] debugfs_create_dir+0x6a/0x540 [ 15.457265][ C0] component_debug_init+0x17/0x30 [ 15.457490][ C0] do_one_initcall+0x8f/0x1e0 [ 15.457719][ C0] do_initcalls+0x176/0x280 [ 15.457950][ C0] kernel_init_freeable+0x22d/0x300 [ 15.458175][ C0] kernel_init+0x20/0x200 [ 15.458404][ C0] ret_from_fork+0x31/0x70 [ 15.458630][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.458855][ C0] irq event stamp: 453624 [ 15.459028][ C0] hardirqs last enabled at (453624): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.459495][ C0] hardirqs last disabled at (453623): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.459943][ C0] softirqs last enabled at (453090): [] handle_softirqs+0x358/0x620 [ 15.460343][ C0] softirqs last disabled at (453097): [] __irq_exit_rcu+0xfa/0x160 [ 15.460739][ C0] [ 15.460739][ C0] other info that might help us debug this: [ 15.461073][ C0] Possible unsafe locking scenario: [ 15.461073][ C0] [ 15.461408][ C0] CPU0 [ 15.461577][ C0] ---- [ 15.461745][ C0] lock(pin_fs_lock); [ 15.461920][ C0] [ 15.462089][ C0] lock(pin_fs_lock); [ 15.462260][ C0] [ 15.462260][ C0] *** DEADLOCK *** [ 15.462260][ C0] [ 15.462586][ C0] 1 lock held by swapper/0/0: [ 15.462810][ C0] #0: ffffffff951749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.463209][ C0] [ 15.463209][ C0] stack backtrace: [ 15.463482][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.463487][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.463490][ C0] Call Trace: [ 15.463492][ C0] [ 15.463494][ C0] dump_stack_lvl+0x82/0xd0 [ 15.463501][ C0] print_usage_bug.part.0+0x25f/0x360 [ 15.463508][ C0] mark_lock_irq+0x343/0x400 [ 15.463512][ C0] ? is_bpf_text_address+0x67/0x120 [ 15.463518][ C0] ? __lock_release+0x5d/0x170 [ 15.463522][ C0] ? save_trace+0x52/0x170 [ 15.463526][ C0] mark_lock+0x174/0x2f0 [ 15.463531][ C0] mark_usage+0x46/0x150 [ 15.463534][ C0] __lock_acquire+0x3eb/0x9d0 [ 15.463540][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.463543][ C0] ? simple_pin_fs+0x24/0x150 [ 15.463546][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.463553][ C0] ? lock_acquire+0x10c/0x170 [ 15.463555][ C0] ? simple_pin_fs+0x24/0x150 [ 15.463559][ C0] _raw_spin_lock+0x33/0x40 [ 15.463562][ C0] ? simple_pin_fs+0x24/0x150 [ 15.463564][ C0] simple_pin_fs+0x24/0x150 [ 15.463567][ C0] debugfs_remove+0x35/0x70 [ 15.463571][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.463577][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.463581][ C0] ? __sk_destruct+0x383/0x780 [ 15.463587][ C0] ? rcu_do_batch+0x34f/0xf20 [ 15.463590][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.463593][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.463596][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.463602][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.463606][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.463609][ C0] ? default_idle+0x9/0x10 [ 15.463611][ C0] ? default_idle_call+0x6d/0xb0 [ 15.463614][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.463620][ C0] ? do_idle+0xf6/0x160 [ 15.463623][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.463626][ C0] ? rest_init+0x14b/0x260 [ 15.463629][ C0] ? start_kernel+0x350/0x410 [ 15.463635][ C0] __put_net+0x19/0x60 [ 15.463640][ C0] __sk_destruct+0x58a/0x780 [ 15.463644][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.463647][ C0] rcu_do_batch+0x34f/0xf20 [ 15.463651][ C0] ? find_held_lock+0x2b/0x80 [ 15.463656][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.463660][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.463664][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.463667][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.463672][ C0] rcu_core+0x2bb/0x500 [ 15.463676][ C0] handle_softirqs+0x218/0x620 [ 15.463681][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.463684][ C0] irq_exit_rcu+0xe/0x30 [ 15.463686][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.463690][ C0] [ 15.463691][ C0] [ 15.463692][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.463695][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.463700][ 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 [ 15.463703][ C0] RSP: 0018:ffffffff94e07df8 EFLAGS: 00000246 [ 15.463707][ C0] RAX: 000000000006e9e7 RBX: 1ffffffff29c0fc3 RCX: ffffffff9415ba19 [ 15.463709][ C0] RDX: 0000000000000000 RSI: ffffffff94c87785 RDI: ffffffff94451260 [ 15.463711][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 15.463712][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.463714][ C0] R13: ffffffff94e1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.463718][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.463723][ C0] default_idle+0x9/0x10 [ 15.463725][ C0] default_idle_call+0x6d/0xb0 [ 15.463728][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.463732][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.463736][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.463743][ C0] do_idle+0xf6/0x160 [ 15.463748][ C0] cpu_startup_entry+0x54/0x60 [ 15.463751][ C0] rest_init+0x14b/0x260 [ 15.463755][ C0] start_kernel+0x350/0x410 [ 15.463759][ C0] x86_64_start_reservations+0x18/0x30 [ 15.463764][ C0] x86_64_start_kernel+0xba/0x110 [ 15.463768][ C0] common_startup_64+0x13e/0x148 [ 15.463777][ C0] [ 15.482704][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.483083][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 15.483451][ C0] preempt_count: 101, expected: 0 [ 15.483796][ C0] RCU nest depth: 0, expected: 0 [ 15.484009][ C0] INFO: lockdep is turned off. [ 15.484220][ C0] Preemption disabled at: [ 15.484221][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 15.484704][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.484709][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.484711][ C0] Call Trace: [ 15.484713][ C0] [ 15.484715][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.484721][ C0] __might_resched+0x360/0x5a0 [ 15.484729][ C0] down_write+0x72/0x210 [ 15.484733][ C0] ? __pfx_down_write+0x10/0x10 [ 15.484736][ C0] ? simple_recursive_removal+0x3a/0x860 [ 15.484741][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.484748][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.484754][ C0] simple_recursive_removal+0x166/0x860 [ 15.484757][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.484761][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.484766][ C0] debugfs_remove+0x44/0x70 [ 15.484769][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.484774][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.484777][ C0] ? __sk_destruct+0x383/0x780 [ 15.484783][ C0] ? rcu_do_batch+0x34f/0xf20 [ 15.484788][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.484791][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.484795][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.484801][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.484805][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.484808][ C0] ? default_idle+0x9/0x10 [ 15.484811][ C0] ? default_idle_call+0x6d/0xb0 [ 15.484813][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.484818][ C0] ? do_idle+0xf6/0x160 [ 15.484822][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.484825][ C0] ? rest_init+0x14b/0x260 [ 15.484827][ C0] ? start_kernel+0x350/0x410 [ 15.484838][ C0] __put_net+0x19/0x60 [ 15.484842][ C0] __sk_destruct+0x58a/0x780 [ 15.484846][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.484849][ C0] rcu_do_batch+0x34f/0xf20 [ 15.484852][ C0] ? find_held_lock+0x2b/0x80 [ 15.484858][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.484861][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.484866][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.484869][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.484874][ C0] rcu_core+0x2bb/0x500 [ 15.484879][ C0] handle_softirqs+0x218/0x620 [ 15.484884][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.484887][ C0] irq_exit_rcu+0xe/0x30 [ 15.484889][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.484893][ C0] [ 15.484894][ C0] [ 15.484896][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.484899][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.484903][ 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 [ 15.484905][ C0] RSP: 0018:ffffffff94e07df8 EFLAGS: 00000246 [ 15.484908][ C0] RAX: 000000000006e9e7 RBX: 1ffffffff29c0fc3 RCX: ffffffff9415ba19 [ 15.484911][ C0] RDX: 0000000000000000 RSI: ffffffff94c87785 RDI: ffffffff94451260 [ 15.484913][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 15.484914][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.484916][ C0] R13: ffffffff94e1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.484920][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.484925][ C0] default_idle+0x9/0x10 [ 15.484927][ C0] default_idle_call+0x6d/0xb0 [ 15.484929][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.484934][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.484938][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.484945][ C0] do_idle+0xf6/0x160 [ 15.484949][ C0] cpu_startup_entry+0x54/0x60 [ 15.484952][ C0] rest_init+0x14b/0x260 [ 15.484956][ C0] start_kernel+0x350/0x410 [ 15.484960][ C0] x86_64_start_reservations+0x18/0x30 [ 15.484965][ C0] x86_64_start_kernel+0xba/0x110 [ 15.484969][ C0] common_startup_64+0x13e/0x148 [ 15.484977][ C0] [ 17.177207][ T258] packetdrill (258) used greatest stack depth: 24584 bytes left [ 17.182983][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.183317][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 17.183641][ C1] preempt_count: 100, expected: 0 [ 17.183823][ C1] RCU nest depth: 0, expected: 0 [ 17.184022][ C1] INFO: lockdep is turned off. [ 17.184199][ C1] Preemption disabled at: [ 17.184201][ C1] [] handle_softirqs+0xe5/0x620 [ 17.184601][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 17.184607][ C1] Tainted: [W]=WARN [ 17.184608][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.184610][ C1] Call Trace: [ 17.184613][ C1] [ 17.184615][ C1] dump_stack_lvl+0xb0/0xd0 [ 17.184624][ C1] __might_resched+0x360/0x5a0 [ 17.184632][ C1] down_write+0x72/0x210 [ 17.184638][ C1] ? __pfx_down_write+0x10/0x10 [ 17.184641][ C1] ? simple_recursive_removal+0x3a/0x860 [ 17.184648][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.184656][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 17.184662][ C1] simple_recursive_removal+0x166/0x860 [ 17.184665][ C1] ? __pfx_remove_one+0x10/0x10 [ 17.184670][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 17.184683][ C1] debugfs_remove+0x44/0x70 [ 17.184687][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 17.184694][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.184697][ C1] ? __sk_destruct+0x383/0x780 [ 17.184704][ C1] ? rcu_do_batch+0x34f/0xf20 [ 17.184709][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.184712][ C1] ? smpboot_thread_fn+0x307/0x960 [ 17.184717][ C1] ? kthread+0x37b/0x600 [ 17.184722][ C1] ? ret_from_fork+0x31/0x70 [ 17.184726][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 17.184733][ C1] ? migrate_enable+0x1f2/0x270 [ 17.184739][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 17.184743][ C1] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.184749][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.184754][ C1] __put_net+0x19/0x60 [ 17.184758][ C1] __sk_destruct+0x58a/0x780 [ 17.184762][ C1] ? rcu_do_batch+0x34a/0xf20 [ 17.184765][ C1] rcu_do_batch+0x34f/0xf20 [ 17.184770][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.184774][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.184778][ C1] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.184785][ C1] rcu_core+0x2bb/0x500 [ 17.184789][ C1] handle_softirqs+0x218/0x620 [ 17.184793][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 17.184796][ C1] run_ksoftirqd+0x3f/0x70 [ 17.184799][ C1] smpboot_thread_fn+0x307/0x960 [ 17.184802][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 17.184805][ C1] kthread+0x37b/0x600 [ 17.184809][ C1] ? __pfx_kthread+0x10/0x10 [ 17.184812][ C1] ? ret_from_fork+0x1b/0x70 [ 17.184814][ C1] ? __lock_release+0x5d/0x170 [ 17.184817][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.184820][ C1] ? __pfx_kthread+0x10/0x10 [ 17.184824][ C1] ret_from_fork+0x31/0x70 [ 17.184826][ C1] ? __pfx_kthread+0x10/0x10 [ 17.184829][ C1] ret_from_fork_asm+0x1a/0x30 [ 17.184839][ C1]