[ 19.821550][ C0] [ 19.821758][ C0] ================================ [ 19.822052][ C0] WARNING: inconsistent lock state [ 19.822341][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 19.822634][ C0] -------------------------------- [ 19.822927][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 19.823301][ C0] ksoftirqd/0/14 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 19.823669][ C0] ffffffffa43bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 19.824202][ C0] {SOFTIRQ-ON-W} state was registered at: [ 19.824496][ C0] __lock_acquire+0x3eb/0x9d0 [ 19.824809][ C0] lock_acquire.part.0+0xb6/0x240 [ 19.825118][ C0] _raw_spin_lock+0x33/0x40 [ 19.825421][ C0] simple_pin_fs+0x24/0x150 [ 19.825738][ C0] start_creating.part.0+0x3f/0x2f0 [ 19.826048][ C0] debugfs_create_dir+0x6a/0x540 [ 19.826344][ C0] component_debug_init+0x17/0x30 [ 19.826654][ C0] do_one_initcall+0x8f/0x1e0 [ 19.826946][ C0] do_initcalls+0x176/0x280 [ 19.827225][ C0] kernel_init_freeable+0x22d/0x300 [ 19.827521][ C0] kernel_init+0x20/0x200 [ 19.827819][ C0] ret_from_fork+0x31/0x70 [ 19.828119][ C0] ret_from_fork_asm+0x1a/0x30 [ 19.828412][ C0] irq event stamp: 204676 [ 19.828638][ C0] hardirqs last enabled at (204676): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.829238][ C0] hardirqs last disabled at (204675): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 19.829839][ C0] softirqs last enabled at (203404): [] handle_softirqs+0x358/0x620 [ 19.830364][ C0] softirqs last disabled at (203415): [] run_ksoftirqd+0x3f/0x70 [ 19.830821][ C0] [ 19.830821][ C0] other info that might help us debug this: [ 19.831093][ C0] Possible unsafe locking scenario: [ 19.831093][ C0] [ 19.831431][ C0] CPU0 [ 19.831613][ C0] ---- [ 19.831813][ C0] lock(pin_fs_lock); [ 19.832025][ C0] [ 19.832195][ C0] lock(pin_fs_lock); [ 19.832409][ C0] [ 19.832409][ C0] *** DEADLOCK *** [ 19.832409][ C0] [ 19.832809][ C0] 1 lock held by ksoftirqd/0/14: [ 19.833109][ C0] #0: ffffffffa41749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 19.833624][ C0] [ 19.833624][ C0] stack backtrace: [ 19.833977][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 19.833985][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.833989][ C0] Call Trace: [ 19.833992][ C0] [ 19.833996][ C0] dump_stack_lvl+0x82/0xd0 [ 19.834006][ C0] print_usage_bug.part.0+0x25f/0x360 [ 19.834016][ C0] mark_lock_irq+0x343/0x400 [ 19.834025][ C0] ? __pfx_unwind_next_frame+0x10/0x10 [ 19.834035][ C0] ? save_trace+0x52/0x170 [ 19.834043][ C0] mark_lock+0x174/0x2f0 [ 19.834050][ C0] mark_usage+0x46/0x150 [ 19.834055][ C0] __lock_acquire+0x3eb/0x9d0 [ 19.834063][ C0] lock_acquire.part.0+0xb6/0x240 [ 19.834068][ C0] ? simple_pin_fs+0x24/0x150 [ 19.834076][ C0] ? rcu_is_watching+0x12/0xc0 [ 19.834085][ C0] ? lock_acquire+0x10c/0x170 [ 19.834089][ C0] ? simple_pin_fs+0x24/0x150 [ 19.834095][ C0] _raw_spin_lock+0x33/0x40 [ 19.834102][ C0] ? simple_pin_fs+0x24/0x150 [ 19.834106][ C0] simple_pin_fs+0x24/0x150 [ 19.834111][ C0] debugfs_remove+0x35/0x70 [ 19.834118][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 19.834127][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.834133][ C0] ? __sk_destruct+0x383/0x780 [ 19.834141][ C0] ? rcu_do_batch+0x34f/0xf20 [ 19.834146][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.834151][ C0] ? smpboot_thread_fn+0x307/0x960 [ 19.834156][ C0] ? kthread+0x37b/0x600 [ 19.834163][ C0] ? ret_from_fork+0x31/0x70 [ 19.834168][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 19.834175][ C0] ? migrate_enable+0x1f2/0x270 [ 19.834183][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 19.834194][ C0] __put_net+0x19/0x60 [ 19.834200][ C0] __sk_destruct+0x58a/0x780 [ 19.834206][ C0] ? rcu_do_batch+0x34a/0xf20 [ 19.834211][ C0] rcu_do_batch+0x34f/0xf20 [ 19.834218][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.834228][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.834233][ C0] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 19.834243][ C0] ? rcu_is_watching+0x12/0xc0 [ 19.834249][ C0] ? note_gp_changes+0x182/0x1e0 [ 19.834255][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.834263][ C0] rcu_core+0x2bb/0x500 [ 19.834269][ C0] handle_softirqs+0x218/0x620 [ 19.834277][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 19.834283][ C0] run_ksoftirqd+0x3f/0x70 [ 19.834287][ C0] smpboot_thread_fn+0x307/0x960 [ 19.834292][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 19.834298][ C0] kthread+0x37b/0x600 [ 19.834303][ C0] ? __pfx_kthread+0x10/0x10 [ 19.834307][ C0] ? ret_from_fork+0x1b/0x70 [ 19.834310][ C0] ? __lock_release+0x5d/0x170 [ 19.834316][ C0] ? rcu_is_watching+0x12/0xc0 [ 19.834322][ C0] ? __pfx_kthread+0x10/0x10 [ 19.834329][ C0] ret_from_fork+0x31/0x70 [ 19.834333][ C0] ? __pfx_kthread+0x10/0x10 [ 19.834337][ C0] ret_from_fork_asm+0x1a/0x30 [ 19.834349][ C0] [ 19.851386][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 19.852049][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 14, name: ksoftirqd/0 [ 19.852502][ C0] preempt_count: 100, expected: 0 [ 19.852765][ C0] RCU nest depth: 0, expected: 0 [ 19.853195][ C0] INFO: lockdep is turned off. [ 19.853456][ C0] Preemption disabled at: [ 19.853459][ C0] [] handle_softirqs+0xe5/0x620 [ 19.853990][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 19.853998][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.854002][ C0] Call Trace: [ 19.854005][ C0] [ 19.854009][ C0] dump_stack_lvl+0xb0/0xd0 [ 19.854020][ C0] __might_resched+0x360/0x5a0 [ 19.854030][ C0] down_write+0x72/0x210 [ 19.854037][ C0] ? __pfx_down_write+0x10/0x10 [ 19.854041][ C0] ? simple_recursive_removal+0x3a/0x860 [ 19.854048][ C0] ? rcu_is_watching+0x12/0xc0 [ 19.854059][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 19.854068][ C0] simple_recursive_removal+0x166/0x860 [ 19.854073][ C0] ? __pfx_remove_one+0x10/0x10 [ 19.854080][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 19.854087][ C0] debugfs_remove+0x44/0x70 [ 19.854091][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 19.854099][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.854104][ C0] ? __sk_destruct+0x383/0x780 [ 19.854112][ C0] ? rcu_do_batch+0x34f/0xf20 [ 19.854118][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.854123][ C0] ? smpboot_thread_fn+0x307/0x960 [ 19.854128][ C0] ? kthread+0x37b/0x600 [ 19.854134][ C0] ? ret_from_fork+0x31/0x70 [ 19.854139][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 19.854147][ C0] ? migrate_enable+0x1f2/0x270 [ 19.854156][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 19.854167][ C0] __put_net+0x19/0x60 [ 19.854173][ C0] __sk_destruct+0x58a/0x780 [ 19.854180][ C0] ? rcu_do_batch+0x34a/0xf20 [ 19.854186][ C0] rcu_do_batch+0x34f/0xf20 [ 19.854193][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.854203][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.854208][ C0] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 19.854218][ C0] ? rcu_is_watching+0x12/0xc0 [ 19.854223][ C0] ? note_gp_changes+0x182/0x1e0 [ 19.854229][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.854237][ C0] rcu_core+0x2bb/0x500 [ 19.854244][ C0] handle_softirqs+0x218/0x620 [ 19.854252][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 19.854258][ C0] run_ksoftirqd+0x3f/0x70 [ 19.854262][ C0] smpboot_thread_fn+0x307/0x960 [ 19.854268][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 19.854275][ C0] kthread+0x37b/0x600 [ 19.854281][ C0] ? __pfx_kthread+0x10/0x10 [ 19.854285][ C0] ? ret_from_fork+0x1b/0x70 [ 19.854289][ C0] ? __lock_release+0x5d/0x170 [ 19.854295][ C0] ? rcu_is_watching+0x12/0xc0 [ 19.854300][ C0] ? __pfx_kthread+0x10/0x10 [ 19.854306][ C0] ret_from_fork+0x31/0x70 [ 19.854309][ C0] ? __pfx_kthread+0x10/0x10 [ 19.854314][ C0] ret_from_fork_asm+0x1a/0x30 [ 19.854325][ C0] [ 24.732128][ T258] packetdrill (258) used greatest stack depth: 24584 bytes left [ 24.752168][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 24.752534][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 24.752885][ C3] preempt_count: 101, expected: 0 [ 24.753078][ C3] RCU nest depth: 0, expected: 0 [ 24.753270][ C3] INFO: lockdep is turned off. [ 24.753460][ C3] Preemption disabled at: [ 24.753462][ C3] [<0000000000000000>] 0x0 [ 24.753800][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 24.753806][ C3] Tainted: [W]=WARN [ 24.753808][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 24.753811][ C3] Call Trace: [ 24.753813][ C3] [ 24.753816][ C3] dump_stack_lvl+0xb0/0xd0 [ 24.753826][ C3] __might_resched+0x360/0x5a0 [ 24.753835][ C3] down_write+0x72/0x210 [ 24.753841][ C3] ? __pfx_down_write+0x10/0x10 [ 24.753844][ C3] ? simple_recursive_removal+0x3a/0x860 [ 24.753850][ C3] ? rcu_is_watching+0x12/0xc0 [ 24.753859][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 24.753869][ C3] simple_recursive_removal+0x166/0x860 [ 24.753872][ C3] ? __pfx_remove_one+0x10/0x10 [ 24.753877][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 24.753882][ C3] debugfs_remove+0x44/0x70 [ 24.753885][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 24.753892][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 24.753895][ C3] ? __sk_destruct+0x383/0x780 [ 24.753902][ C3] ? rcu_do_batch+0x34f/0xf20 [ 24.753907][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 24.753911][ C3] ? irq_exit_rcu+0xe/0x30 [ 24.753916][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 24.753922][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 24.753927][ C3] ? pv_native_safe_halt+0xf/0x20 [ 24.753931][ C3] ? default_idle+0x9/0x10 [ 24.753933][ C3] ? default_idle_call+0x6d/0xb0 [ 24.753936][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 24.753942][ C3] ? do_idle+0xf6/0x160 [ 24.753945][ C3] ? cpu_startup_entry+0x54/0x60 [ 24.753948][ C3] ? start_secondary+0x213/0x2a0 [ 24.753954][ C3] ? common_startup_64+0x13e/0x148 [ 24.753960][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 24.753965][ C3] ? rcu_is_watching+0x12/0xc0 [ 24.753970][ C3] __put_net+0x19/0x60 [ 24.753975][ C3] __sk_destruct+0x58a/0x780 [ 24.753979][ C3] ? rcu_do_batch+0x34a/0xf20 [ 24.753982][ C3] rcu_do_batch+0x34f/0xf20 [ 24.753987][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 24.753991][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 24.753998][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 24.754004][ C3] rcu_core+0x2bb/0x500 [ 24.754009][ C3] handle_softirqs+0x218/0x620 [ 24.754014][ C3] __irq_exit_rcu+0xfa/0x160 [ 24.754016][ C3] irq_exit_rcu+0xe/0x30 [ 24.754019][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 24.754022][ C3] [ 24.754023][ C3] [ 24.754025][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 24.754028][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 24.754033][ 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 [ 24.754036][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 24.754040][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffffa315ba19 [ 24.754043][ C3] RDX: ffffed1006c3667b RSI: ffffffffa34511e0 RDI: ffffffffa098633f [ 24.754045][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c3667a [ 24.754047][ C3] R10: ffff8880361b33d3 R11: ffffffffa6b33a78 R12: 0000000000000000 [ 24.754049][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 24.754053][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 24.754056][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 24.754061][ C3] default_idle+0x9/0x10 [ 24.754063][ C3] default_idle_call+0x6d/0xb0 [ 24.754066][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 24.754069][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 24.754074][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 24.754079][ C3] do_idle+0xf6/0x160 [ 24.754083][ C3] cpu_startup_entry+0x54/0x60 [ 24.754087][ C3] start_secondary+0x213/0x2a0 [ 24.754090][ C3] ? __pfx_start_secondary+0x10/0x10 [ 24.754095][ C3] common_startup_64+0x13e/0x148 [ 24.754102][ C3]