[ 17.091741][ C3] [ 17.091899][ C3] ================================ [ 17.092103][ C3] WARNING: inconsistent lock state [ 17.092296][ C3] 6.15.0-rc5-virtme #1 Not tainted [ 17.092520][ C3] -------------------------------- [ 17.092722][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 17.092968][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 17.093211][ C3] ffffffff9adbf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 17.093556][ C3] {SOFTIRQ-ON-W} state was registered at: [ 17.093752][ C3] __lock_acquire+0x3eb/0x9d0 [ 17.093980][ C3] lock_acquire.part.0+0xb6/0x240 [ 17.094160][ C3] _raw_spin_lock+0x33/0x40 [ 17.094347][ C3] simple_pin_fs+0x24/0x150 [ 17.094535][ C3] start_creating.part.0+0x3f/0x2f0 [ 17.094716][ C3] debugfs_create_dir+0x6a/0x540 [ 17.094893][ C3] component_debug_init+0x17/0x30 [ 17.095075][ C3] do_one_initcall+0x8c/0x1e0 [ 17.095258][ C3] do_initcalls+0x176/0x280 [ 17.095437][ C3] kernel_init_freeable+0x22d/0x300 [ 17.095613][ C3] kernel_init+0x20/0x200 [ 17.095788][ C3] ret_from_fork+0x31/0x70 [ 17.095975][ C3] ret_from_fork_asm+0x1a/0x30 [ 17.096151][ C3] irq event stamp: 266224 [ 17.096285][ C3] hardirqs last enabled at (266224): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.096667][ C3] hardirqs last disabled at (266223): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 17.097029][ C3] softirqs last enabled at (265298): [] handle_softirqs+0x358/0x620 [ 17.097341][ C3] softirqs last disabled at (265305): [] __irq_exit_rcu+0xfa/0x160 [ 17.097651][ C3] [ 17.097651][ C3] other info that might help us debug this: [ 17.097923][ C3] Possible unsafe locking scenario: [ 17.097923][ C3] [ 17.098187][ C3] CPU0 [ 17.098319][ C3] ---- [ 17.098454][ C3] lock(pin_fs_lock); [ 17.098593][ C3] [ 17.098727][ C3] lock(pin_fs_lock); [ 17.098866][ C3] [ 17.098866][ C3] *** DEADLOCK *** [ 17.098866][ C3] [ 17.099128][ C3] 1 lock held by swapper/3/0: [ 17.099305][ C3] #0: ffffffff9ab74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 17.099631][ C3] [ 17.099631][ C3] stack backtrace: [ 17.099857][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 17.099863][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.099865][ C3] Call Trace: [ 17.099867][ C3] [ 17.099870][ C3] dump_stack_lvl+0x82/0xd0 [ 17.099877][ C3] print_usage_bug.part.0+0x25f/0x360 [ 17.099884][ C3] mark_lock_irq+0x343/0x400 [ 17.099889][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 17.099896][ C3] ? save_trace+0x52/0x170 [ 17.099900][ C3] mark_lock+0x174/0x2f0 [ 17.099905][ C3] mark_usage+0x46/0x150 [ 17.099908][ C3] __lock_acquire+0x3eb/0x9d0 [ 17.099914][ C3] lock_acquire.part.0+0xb6/0x240 [ 17.099917][ C3] ? simple_pin_fs+0x24/0x150 [ 17.099922][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.099928][ C3] ? lock_acquire+0x10c/0x170 [ 17.099932][ C3] ? simple_pin_fs+0x24/0x150 [ 17.099936][ C3] _raw_spin_lock+0x33/0x40 [ 17.099939][ C3] ? simple_pin_fs+0x24/0x150 [ 17.099942][ C3] simple_pin_fs+0x24/0x150 [ 17.099946][ C3] debugfs_remove+0x35/0x70 [ 17.099951][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 17.099957][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.099960][ C3] ? __sk_destruct+0x383/0x780 [ 17.099967][ C3] ? rcu_do_batch+0x34c/0xf20 [ 17.099970][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.099973][ C3] ? irq_exit_rcu+0xe/0x30 [ 17.099976][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.099979][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.099983][ C3] ? pv_native_safe_halt+0xf/0x20 [ 17.099986][ C3] ? default_idle+0x9/0x10 [ 17.099988][ C3] ? default_idle_call+0x6d/0xb0 [ 17.099991][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.099996][ C3] ? do_idle+0xf6/0x160 [ 17.099999][ C3] ? cpu_startup_entry+0x54/0x60 [ 17.100003][ C3] ? start_secondary+0x213/0x2a0 [ 17.100009][ C3] ? common_startup_64+0x13e/0x148 [ 17.100016][ C3] __put_net+0x19/0x60 [ 17.100020][ C3] __sk_destruct+0x58a/0x780 [ 17.100024][ C3] ? rcu_do_batch+0x34a/0xf20 [ 17.100027][ C3] rcu_do_batch+0x34c/0xf20 [ 17.100030][ C3] ? find_held_lock+0x2b/0x80 [ 17.100034][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.100038][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.100042][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.100046][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.100050][ C3] rcu_core+0x2bb/0x500 [ 17.100053][ C3] handle_softirqs+0x218/0x620 [ 17.100058][ C3] __irq_exit_rcu+0xfa/0x160 [ 17.100060][ C3] irq_exit_rcu+0xe/0x30 [ 17.100062][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.100066][ C3] [ 17.100067][ C3] [ 17.100068][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.100071][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.100076][ 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 [ 17.100079][ C3] RSP: 0000:ffffc90000157de8 EFLAGS: 00000242 [ 17.100083][ C3] RAX: 0000000000040c57 RBX: 1ffff9200002afc1 RCX: ffffffff99b55a19 [ 17.100085][ C3] RDX: 0000000000000000 RSI: ffffffff9a685f31 RDI: ffffffff99e50ce0 [ 17.100087][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 17.100089][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 17.100091][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 17.100095][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.100100][ C3] default_idle+0x9/0x10 [ 17.100102][ C3] default_idle_call+0x6d/0xb0 [ 17.100104][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 17.100109][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.100113][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.100118][ C3] do_idle+0xf6/0x160 [ 17.100122][ C3] cpu_startup_entry+0x54/0x60 [ 17.100125][ C3] start_secondary+0x213/0x2a0 [ 17.100128][ C3] ? __pfx_start_secondary+0x10/0x10 [ 17.100134][ C3] common_startup_64+0x13e/0x148 [ 17.100140][ C3] [ 17.114493][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.114801][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 17.115122][ C3] preempt_count: 101, expected: 0 [ 17.115305][ C3] RCU nest depth: 0, expected: 0 [ 17.115492][ C3] INFO: lockdep is turned off. [ 17.115676][ C3] Preemption disabled at: [ 17.115678][ C3] [<0000000000000000>] 0x0 [ 17.116006][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 17.116011][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.116013][ C3] Call Trace: [ 17.116015][ C3] [ 17.116018][ C3] dump_stack_lvl+0xb0/0xd0 [ 17.116027][ C3] __might_resched+0x360/0x5a0 [ 17.116035][ C3] down_write+0x72/0x210 [ 17.116039][ C3] ? __pfx_down_write+0x10/0x10 [ 17.116042][ C3] ? simple_recursive_removal+0x3a/0x860 [ 17.116047][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.116055][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.116060][ C3] simple_recursive_removal+0x166/0x860 [ 17.116063][ C3] ? __pfx_remove_one+0x10/0x10 [ 17.116068][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.116073][ C3] debugfs_remove+0x44/0x70 [ 17.116076][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 17.116082][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.116085][ C3] ? __sk_destruct+0x383/0x780 [ 17.116091][ C3] ? rcu_do_batch+0x34c/0xf20 [ 17.116096][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.116099][ C3] ? irq_exit_rcu+0xe/0x30 [ 17.116103][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.116109][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.116114][ C3] ? pv_native_safe_halt+0xf/0x20 [ 17.116117][ C3] ? default_idle+0x9/0x10 [ 17.116119][ C3] ? default_idle_call+0x6d/0xb0 [ 17.116122][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.116127][ C3] ? do_idle+0xf6/0x160 [ 17.116130][ C3] ? cpu_startup_entry+0x54/0x60 [ 17.116133][ C3] ? start_secondary+0x213/0x2a0 [ 17.116139][ C3] ? common_startup_64+0x13e/0x148 [ 17.116146][ C3] __put_net+0x19/0x60 [ 17.116150][ C3] __sk_destruct+0x58a/0x780 [ 17.116154][ C3] ? rcu_do_batch+0x34a/0xf20 [ 17.116157][ C3] rcu_do_batch+0x34c/0xf20 [ 17.116161][ C3] ? find_held_lock+0x2b/0x80 [ 17.116166][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.116170][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.116174][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.116178][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.116182][ C3] rcu_core+0x2bb/0x500 [ 17.116186][ C3] handle_softirqs+0x218/0x620 [ 17.116191][ C3] __irq_exit_rcu+0xfa/0x160 [ 17.116193][ C3] irq_exit_rcu+0xe/0x30 [ 17.116195][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.116199][ C3] [ 17.116200][ C3] [ 17.116201][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.116204][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.116208][ 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 [ 17.116211][ C3] RSP: 0000:ffffc90000157de8 EFLAGS: 00000242 [ 17.116215][ C3] RAX: 0000000000040c57 RBX: 1ffff9200002afc1 RCX: ffffffff99b55a19 [ 17.116217][ C3] RDX: 0000000000000000 RSI: ffffffff9a685f31 RDI: ffffffff99e50ce0 [ 17.116219][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 17.116221][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 17.116222][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 17.116226][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.116231][ C3] default_idle+0x9/0x10 [ 17.116234][ C3] default_idle_call+0x6d/0xb0 [ 17.116236][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 17.116240][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.116244][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.116249][ C3] do_idle+0xf6/0x160 [ 17.116252][ C3] cpu_startup_entry+0x54/0x60 [ 17.116256][ C3] start_secondary+0x213/0x2a0 [ 17.116259][ C3] ? __pfx_start_secondary+0x10/0x10 [ 17.116264][ C3] common_startup_64+0x13e/0x148 [ 17.116271][ C3] [ 19.832415][ T260] packetdrill (260) used greatest stack depth: 24600 bytes left [ 19.835904][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 19.836275][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 19.836589][ C3] preempt_count: 101, expected: 0 [ 19.836766][ C3] RCU nest depth: 0, expected: 0 [ 19.836952][ C3] INFO: lockdep is turned off. [ 19.837130][ C3] Preemption disabled at: [ 19.837132][ C3] [<0000000000000000>] 0x0 [ 19.837455][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 19.837461][ C3] Tainted: [W]=WARN [ 19.837463][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.837465][ C3] Call Trace: [ 19.837467][ C3] [ 19.837469][ C3] dump_stack_lvl+0xb0/0xd0 [ 19.837482][ C3] __might_resched+0x360/0x5a0 [ 19.837490][ C3] down_write+0x72/0x210 [ 19.837494][ C3] ? __pfx_down_write+0x10/0x10 [ 19.837497][ C3] ? simple_recursive_removal+0x3a/0x860 [ 19.837502][ C3] ? rcu_is_watching+0x12/0xc0 [ 19.837511][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 19.837516][ C3] simple_recursive_removal+0x166/0x860 [ 19.837519][ C3] ? __pfx_remove_one+0x10/0x10 [ 19.837525][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 19.837529][ C3] debugfs_remove+0x44/0x70 [ 19.837532][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 19.837539][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.837542][ C3] ? __sk_destruct+0x383/0x780 [ 19.837549][ C3] ? rcu_do_batch+0x34c/0xf20 [ 19.837554][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.837556][ C3] ? irq_exit_rcu+0xe/0x30 [ 19.837562][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.837567][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.837571][ C3] ? pv_native_safe_halt+0xf/0x20 [ 19.837574][ C3] ? default_idle+0x9/0x10 [ 19.837577][ C3] ? default_idle_call+0x6d/0xb0 [ 19.837579][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.837585][ C3] ? do_idle+0xf6/0x160 [ 19.837588][ C3] ? cpu_startup_entry+0x54/0x60 [ 19.837591][ C3] ? start_secondary+0x213/0x2a0 [ 19.837597][ C3] ? common_startup_64+0x13e/0x148 [ 19.837603][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 19.837608][ C3] ? rcu_is_watching+0x12/0xc0 [ 19.837612][ C3] __put_net+0x19/0x60 [ 19.837616][ C3] __sk_destruct+0x58a/0x780 [ 19.837620][ C3] ? rcu_do_batch+0x34a/0xf20 [ 19.837623][ C3] rcu_do_batch+0x34c/0xf20 [ 19.837628][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.837632][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 19.837638][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 19.837644][ C3] rcu_core+0x2bb/0x500 [ 19.837648][ C3] handle_softirqs+0x218/0x620 [ 19.837653][ C3] __irq_exit_rcu+0xfa/0x160 [ 19.837656][ C3] irq_exit_rcu+0xe/0x30 [ 19.837658][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.837661][ C3] [ 19.837662][ C3] [ 19.837664][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.837667][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 19.837671][ 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 [ 19.837674][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 19.837678][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffff99b55a19 [ 19.837680][ C3] RDX: ffffed1006c3667b RSI: ffffffff99e50c60 RDI: ffffffff97384d8f [ 19.837682][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c3667a [ 19.837684][ C3] R10: ffff8880361b33d3 R11: ffffc900001579d8 R12: 0000000000000000 [ 19.837686][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 19.837689][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 19.837693][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.837698][ C3] default_idle+0x9/0x10 [ 19.837700][ C3] default_idle_call+0x6d/0xb0 [ 19.837702][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 19.837706][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 19.837710][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 19.837716][ C3] do_idle+0xf6/0x160 [ 19.837720][ C3] cpu_startup_entry+0x54/0x60 [ 19.837723][ C3] start_secondary+0x213/0x2a0 [ 19.837727][ C3] ? __pfx_start_secondary+0x10/0x10 [ 19.837732][ C3] common_startup_64+0x13e/0x148 [ 19.837738][ C3]