[ 19.244987][ C2] [ 19.245191][ C2] ================================ [ 19.245496][ C2] WARNING: inconsistent lock state [ 19.245792][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 19.246094][ C2] -------------------------------- [ 19.246395][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 19.246774][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 19.247158][ C2] ffffffffa73bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 19.247700][ C2] {SOFTIRQ-ON-W} state was registered at: [ 19.248018][ C2] __lock_acquire+0x3eb/0x9d0 [ 19.248330][ C2] lock_acquire.part.0+0xb6/0x240 [ 19.248638][ C2] _raw_spin_lock+0x33/0x40 [ 19.248941][ C2] simple_pin_fs+0x24/0x150 [ 19.249249][ C2] start_creating.part.0+0x3f/0x2f0 [ 19.249556][ C2] debugfs_create_dir+0x6a/0x540 [ 19.249856][ C2] component_debug_init+0x17/0x30 [ 19.250167][ C2] do_one_initcall+0x8c/0x1e0 [ 19.250473][ C2] do_initcalls+0x176/0x280 [ 19.250779][ C2] kernel_init_freeable+0x22d/0x300 [ 19.251081][ C2] kernel_init+0x20/0x200 [ 19.251373][ C2] ret_from_fork+0x31/0x70 [ 19.251674][ C2] ret_from_fork_asm+0x1a/0x30 [ 19.251977][ C2] irq event stamp: 310022 [ 19.252211][ C2] hardirqs last enabled at (310022): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.252813][ C2] hardirqs last disabled at (310021): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 19.253383][ C2] softirqs last enabled at (308986): [] handle_softirqs+0x358/0x620 [ 19.253898][ C2] softirqs last disabled at (309005): [] __irq_exit_rcu+0xfa/0x160 [ 19.254440][ C2] [ 19.254440][ C2] other info that might help us debug this: [ 19.254889][ C2] Possible unsafe locking scenario: [ 19.254889][ C2] [ 19.255335][ C2] CPU0 [ 19.255560][ C2] ---- [ 19.255785][ C2] lock(pin_fs_lock); [ 19.256016][ C2] [ 19.256233][ C2] lock(pin_fs_lock); [ 19.256458][ C2] [ 19.256458][ C2] *** DEADLOCK *** [ 19.256458][ C2] [ 19.256886][ C2] 1 lock held by swapper/2/0: [ 19.257177][ C2] #0: ffffffffa7174480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 19.257683][ C2] [ 19.257683][ C2] stack backtrace: [ 19.258034][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 19.258041][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.258044][ C2] Call Trace: [ 19.258047][ C2] [ 19.258050][ C2] dump_stack_lvl+0x82/0xd0 [ 19.258059][ C2] print_usage_bug.part.0+0x25f/0x360 [ 19.258068][ C2] mark_lock_irq+0x343/0x400 [ 19.258075][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 19.258083][ C2] ? save_trace+0x52/0x170 [ 19.258089][ C2] mark_lock+0x174/0x2f0 [ 19.258096][ C2] mark_usage+0x46/0x150 [ 19.258101][ C2] __lock_acquire+0x3eb/0x9d0 [ 19.258109][ C2] lock_acquire.part.0+0xb6/0x240 [ 19.258114][ C2] ? simple_pin_fs+0x24/0x150 [ 19.258122][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.258129][ C2] ? lock_acquire+0x10c/0x170 [ 19.258134][ C2] ? simple_pin_fs+0x24/0x150 [ 19.258141][ C2] _raw_spin_lock+0x33/0x40 [ 19.258146][ C2] ? simple_pin_fs+0x24/0x150 [ 19.258151][ C2] simple_pin_fs+0x24/0x150 [ 19.258157][ C2] debugfs_remove+0x35/0x70 [ 19.258162][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 19.258168][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.258173][ C2] ? __sk_destruct+0x383/0x780 [ 19.258180][ C2] ? rcu_do_batch+0x34c/0xf20 [ 19.258185][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.258189][ C2] ? irq_exit_rcu+0xe/0x30 [ 19.258194][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.258200][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.258205][ C2] ? pv_native_safe_halt+0xf/0x20 [ 19.258209][ C2] ? default_idle+0x9/0x10 [ 19.258213][ C2] ? default_idle_call+0x6d/0xb0 [ 19.258216][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.258222][ C2] ? do_idle+0xf6/0x160 [ 19.258226][ C2] ? cpu_startup_entry+0x54/0x60 [ 19.258231][ C2] ? start_secondary+0x213/0x2a0 [ 19.258237][ C2] ? common_startup_64+0x13e/0x148 [ 19.258246][ C2] __put_net+0x19/0x60 [ 19.258251][ C2] __sk_destruct+0x58a/0x780 [ 19.258256][ C2] ? rcu_do_batch+0x34a/0xf20 [ 19.258261][ C2] rcu_do_batch+0x34c/0xf20 [ 19.258266][ C2] ? find_held_lock+0x2b/0x80 [ 19.258272][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.258278][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.258284][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.258289][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 19.258296][ C2] rcu_core+0x2bb/0x500 [ 19.258302][ C2] handle_softirqs+0x218/0x620 [ 19.258310][ C2] __irq_exit_rcu+0xfa/0x160 [ 19.258314][ C2] irq_exit_rcu+0xe/0x30 [ 19.258318][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.258323][ C2] [ 19.258326][ C2] [ 19.258328][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.258333][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 19.258338][ C2] 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.258343][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 19.258348][ C2] RAX: 000000000004b70b RBX: 1ffff92000028fc1 RCX: ffffffffa6155a19 [ 19.258352][ C2] RDX: 0000000000000000 RSI: ffffffffa6c85f31 RDI: ffffffffa6450ce0 [ 19.258355][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 19.258357][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 19.258360][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 19.258367][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 19.258376][ C2] default_idle+0x9/0x10 [ 19.258379][ C2] default_idle_call+0x6d/0xb0 [ 19.258383][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 19.258389][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 19.258396][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 19.258403][ C2] do_idle+0xf6/0x160 [ 19.258410][ C2] cpu_startup_entry+0x54/0x60 [ 19.258416][ C2] start_secondary+0x213/0x2a0 [ 19.258421][ C2] ? __pfx_start_secondary+0x10/0x10 [ 19.258429][ C2] common_startup_64+0x13e/0x148 [ 19.258440][ C2] [ 19.281395][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 19.281821][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 19.282122][ C2] preempt_count: 101, expected: 0 [ 19.282305][ C2] RCU nest depth: 0, expected: 0 [ 19.282484][ C2] INFO: lockdep is turned off. [ 19.282668][ C2] Preemption disabled at: [ 19.282670][ C2] [<0000000000000000>] 0x0 [ 19.283099][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 19.283104][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.283106][ C2] Call Trace: [ 19.283108][ C2] [ 19.283110][ C2] dump_stack_lvl+0xb0/0xd0 [ 19.283117][ C2] __might_resched+0x360/0x5a0 [ 19.283124][ C2] down_write+0x72/0x210 [ 19.283128][ C2] ? __pfx_down_write+0x10/0x10 [ 19.283130][ C2] ? simple_recursive_removal+0x3a/0x860 [ 19.283135][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.283141][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 19.283146][ C2] simple_recursive_removal+0x166/0x860 [ 19.283148][ C2] ? __pfx_remove_one+0x10/0x10 [ 19.283152][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 19.283156][ C2] debugfs_remove+0x44/0x70 [ 19.283159][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 19.283165][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.283168][ C2] ? __sk_destruct+0x383/0x780 [ 19.283173][ C2] ? rcu_do_batch+0x34c/0xf20 [ 19.283177][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.283180][ C2] ? irq_exit_rcu+0xe/0x30 [ 19.283184][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.283188][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.283192][ C2] ? pv_native_safe_halt+0xf/0x20 [ 19.283195][ C2] ? default_idle+0x9/0x10 [ 19.283197][ C2] ? default_idle_call+0x6d/0xb0 [ 19.283200][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.283204][ C2] ? do_idle+0xf6/0x160 [ 19.283207][ C2] ? cpu_startup_entry+0x54/0x60 [ 19.283210][ C2] ? start_secondary+0x213/0x2a0 [ 19.283215][ C2] ? common_startup_64+0x13e/0x148 [ 19.283221][ C2] __put_net+0x19/0x60 [ 19.283224][ C2] __sk_destruct+0x58a/0x780 [ 19.283228][ C2] ? rcu_do_batch+0x34a/0xf20 [ 19.283231][ C2] rcu_do_batch+0x34c/0xf20 [ 19.283235][ C2] ? find_held_lock+0x2b/0x80 [ 19.283240][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.283244][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.283248][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.283252][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 19.283257][ C2] rcu_core+0x2bb/0x500 [ 19.283260][ C2] handle_softirqs+0x218/0x620 [ 19.283265][ C2] __irq_exit_rcu+0xfa/0x160 [ 19.283267][ C2] irq_exit_rcu+0xe/0x30 [ 19.283271][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.283275][ C2] [ 19.283276][ C2] [ 19.283277][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.283280][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 19.283284][ C2] 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.283286][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 19.283290][ C2] RAX: 000000000004b70b RBX: 1ffff92000028fc1 RCX: ffffffffa6155a19 [ 19.283292][ C2] RDX: 0000000000000000 RSI: ffffffffa6c85f31 RDI: ffffffffa6450ce0 [ 19.283294][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 19.283295][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 19.283297][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 19.283301][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 19.283306][ C2] default_idle+0x9/0x10 [ 19.283309][ C2] default_idle_call+0x6d/0xb0 [ 19.283311][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 19.283315][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 19.283319][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 19.283324][ C2] do_idle+0xf6/0x160 [ 19.283328][ C2] cpu_startup_entry+0x54/0x60 [ 19.283331][ C2] start_secondary+0x213/0x2a0 [ 19.283335][ C2] ? __pfx_start_secondary+0x10/0x10 [ 19.283340][ C2] common_startup_64+0x13e/0x148 [ 19.283346][ C2] [ 24.030783][ T258] packetdrill (258) used greatest stack depth: 24488 bytes left [ 24.036920][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 24.037237][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 24.037532][ C3] preempt_count: 101, expected: 0 [ 24.037698][ C3] RCU nest depth: 0, expected: 0 [ 24.037864][ C3] INFO: lockdep is turned off. [ 24.038102][ C3] Preemption disabled at: [ 24.038104][ C3] [<0000000000000000>] 0x0 [ 24.038479][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 24.038485][ C3] Tainted: [W]=WARN [ 24.038487][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 24.038489][ C3] Call Trace: [ 24.038490][ C3] [ 24.038493][ C3] dump_stack_lvl+0xb0/0xd0 [ 24.038501][ C3] __might_resched+0x360/0x5a0 [ 24.038507][ C3] down_write+0x72/0x210 [ 24.038511][ C3] ? __pfx_down_write+0x10/0x10 [ 24.038514][ C3] ? simple_recursive_removal+0x3a/0x860 [ 24.038519][ C3] ? rcu_is_watching+0x12/0xc0 [ 24.038525][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 24.038529][ C3] simple_recursive_removal+0x166/0x860 [ 24.038532][ C3] ? __pfx_remove_one+0x10/0x10 [ 24.038536][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 24.038540][ C3] debugfs_remove+0x44/0x70 [ 24.038543][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 24.038548][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 24.038551][ C3] ? __sk_destruct+0x383/0x780 [ 24.038557][ C3] ? rcu_do_batch+0x34c/0xf20 [ 24.038562][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 24.038564][ C3] ? irq_exit_rcu+0xe/0x30 [ 24.038568][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 24.038573][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 24.038576][ C3] ? pv_native_safe_halt+0xf/0x20 [ 24.038579][ C3] ? default_idle+0x9/0x10 [ 24.038582][ C3] ? default_idle_call+0x6d/0xb0 [ 24.038584][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 24.038589][ C3] ? do_idle+0xf6/0x160 [ 24.038592][ C3] ? cpu_startup_entry+0x54/0x60 [ 24.038595][ C3] ? start_secondary+0x213/0x2a0 [ 24.038599][ C3] ? common_startup_64+0x13e/0x148 [ 24.038604][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 24.038608][ C3] ? rcu_is_watching+0x12/0xc0 [ 24.038613][ C3] __put_net+0x19/0x60 [ 24.038616][ C3] __sk_destruct+0x58a/0x780 [ 24.038619][ C3] ? rcu_do_batch+0x34a/0xf20 [ 24.038622][ C3] rcu_do_batch+0x34c/0xf20 [ 24.038628][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 24.038632][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 24.038637][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 24.038642][ C3] rcu_core+0x2bb/0x500 [ 24.038645][ C3] handle_softirqs+0x218/0x620 [ 24.038650][ C3] __irq_exit_rcu+0xfa/0x160 [ 24.038653][ C3] irq_exit_rcu+0xe/0x30 [ 24.038655][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 24.038658][ C3] [ 24.038659][ C3] [ 24.038661][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 24.038663][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 24.038667][ 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 [ 24.038670][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 24.038674][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffffa6155a19 [ 24.038676][ C3] RDX: ffffed1006c3667b RSI: ffffffffa6450c60 RDI: ffffffffa3984d8f [ 24.038678][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c3667a [ 24.038680][ C3] R10: ffff8880361b33d3 R11: ffffc900001579d8 R12: 0000000000000000 [ 24.038681][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 24.038685][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 24.038689][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 24.038693][ C3] default_idle+0x9/0x10 [ 24.038696][ C3] default_idle_call+0x6d/0xb0 [ 24.038698][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 24.038702][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 24.038706][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 24.038711][ C3] do_idle+0xf6/0x160 [ 24.038715][ C3] cpu_startup_entry+0x54/0x60 [ 24.038718][ C3] start_secondary+0x213/0x2a0 [ 24.038722][ C3] ? __pfx_start_secondary+0x10/0x10 [ 24.038727][ C3] common_startup_64+0x13e/0x148 [ 24.038733][ C3]