[ 21.044200][ C3] [ 21.044367][ C3] ================================ [ 21.044562][ C3] WARNING: inconsistent lock state [ 21.044753][ C3] 6.15.0-virtme #1 Not tainted [ 21.044942][ C3] -------------------------------- [ 21.045144][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 21.045393][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 21.045649][ C3] ffffffff8bdc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 21.046012][ C3] {SOFTIRQ-ON-W} state was registered at: [ 21.046222][ C3] __lock_acquire+0x20b/0x7e0 [ 21.046459][ C3] lock_acquire.part.0+0xb6/0x240 [ 21.046655][ C3] _raw_spin_lock+0x33/0x40 [ 21.046853][ C3] simple_pin_fs+0x24/0x150 [ 21.047072][ C3] start_creating.part.0+0x52/0x310 [ 21.047290][ C3] debugfs_create_dir+0x6a/0x540 [ 21.047504][ C3] component_debug_init+0x17/0x30 [ 21.047722][ C3] do_one_initcall+0x8f/0x1e0 [ 21.047932][ C3] do_initcalls+0x176/0x280 [ 21.048129][ C3] kernel_init_freeable+0x22d/0x300 [ 21.048326][ C3] kernel_init+0x20/0x200 [ 21.048539][ C3] ret_from_fork+0x240/0x320 [ 21.048738][ C3] ret_from_fork_asm+0x1a/0x30 [ 21.048961][ C3] irq event stamp: 273938 [ 21.049140][ C3] hardirqs last enabled at (273938): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 21.049605][ C3] hardirqs last disabled at (273937): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 21.050067][ C3] softirqs last enabled at (272960): [] handle_softirqs+0x358/0x620 [ 21.050443][ C3] softirqs last disabled at (272991): [] __irq_exit_rcu+0xfa/0x160 [ 21.050823][ C3] [ 21.050823][ C3] other info that might help us debug this: [ 21.051099][ C3] Possible unsafe locking scenario: [ 21.051099][ C3] [ 21.051379][ C3] CPU0 [ 21.051526][ C3] ---- [ 21.051668][ C3] lock(pin_fs_lock); [ 21.051818][ C3] [ 21.051959][ C3] lock(pin_fs_lock); [ 21.052120][ C3] [ 21.052120][ C3] *** DEADLOCK *** [ 21.052120][ C3] [ 21.052401][ C3] 1 lock held by swapper/3/0: [ 21.052597][ C3] #0: ffffffff8bb774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 21.052944][ C3] [ 21.052944][ C3] stack backtrace: [ 21.053180][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 21.053185][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.053187][ C3] Call Trace: [ 21.053189][ C3] [ 21.053192][ C3] dump_stack_lvl+0x82/0xd0 [ 21.053199][ C3] print_usage_bug.part.0+0x25f/0x360 [ 21.053208][ C3] mark_lock_irq+0x343/0x400 [ 21.053215][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 21.053221][ C3] ? save_trace+0x52/0x170 [ 21.053230][ C3] mark_lock+0x174/0x2f0 [ 21.053235][ C3] mark_usage+0x46/0x150 [ 21.053238][ C3] __lock_acquire+0x20b/0x7e0 [ 21.053241][ C3] ? __lock_acquire+0x44d/0x7e0 [ 21.053246][ C3] lock_acquire.part.0+0xb6/0x240 [ 21.053249][ C3] ? simple_pin_fs+0x24/0x150 [ 21.053254][ C3] ? rcu_is_watching+0x12/0xc0 [ 21.053258][ C3] ? lock_acquire+0x10c/0x170 [ 21.053261][ C3] ? simple_pin_fs+0x24/0x150 [ 21.053265][ C3] _raw_spin_lock+0x33/0x40 [ 21.053269][ C3] ? simple_pin_fs+0x24/0x150 [ 21.053272][ C3] simple_pin_fs+0x24/0x150 [ 21.053276][ C3] debugfs_remove+0x35/0x70 [ 21.053281][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 21.053287][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 21.053290][ C3] ? __sk_destruct+0x383/0x780 [ 21.053296][ C3] ? rcu_do_batch+0x34c/0xf20 [ 21.053298][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 21.053302][ C3] ? irq_exit_rcu+0xe/0x30 [ 21.053306][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 21.053310][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 21.053315][ C3] ? pv_native_safe_halt+0xf/0x20 [ 21.053318][ C3] ? default_idle+0x9/0x10 [ 21.053321][ C3] ? default_idle_call+0x6d/0xb0 [ 21.053324][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 21.053327][ C3] ? do_idle+0xf6/0x160 [ 21.053329][ C3] ? cpu_startup_entry+0x54/0x60 [ 21.053332][ C3] ? start_secondary+0x213/0x2a0 [ 21.053336][ C3] ? common_startup_64+0x13e/0x148 [ 21.053343][ C3] __put_net+0x19/0x60 [ 21.053347][ C3] __sk_destruct+0x58a/0x780 [ 21.053351][ C3] ? rcu_do_batch+0x34a/0xf20 [ 21.053353][ C3] rcu_do_batch+0x34c/0xf20 [ 21.053356][ C3] ? find_held_lock+0x2b/0x80 [ 21.053361][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 21.053364][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 21.053368][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 21.053370][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 21.053375][ C3] rcu_core+0x2bb/0x500 [ 21.053380][ C3] handle_softirqs+0x218/0x620 [ 21.053385][ C3] __irq_exit_rcu+0xfa/0x160 [ 21.053388][ C3] irq_exit_rcu+0xe/0x30 [ 21.053390][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 21.053394][ C3] [ 21.053395][ C3] [ 21.053397][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 21.053400][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 21.053404][ C3] Code: 92 b5 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 83 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 21.053407][ C3] RSP: 0000:ffffc90000157de8 EFLAGS: 00000242 [ 21.053410][ C3] RAX: 0000000000042a5d RBX: 1ffff9200002afc1 RCX: ffffffff8ab905d9 [ 21.053412][ C3] RDX: 0000000000000000 RSI: ffffffff8b68f4e4 RDI: ffffffff8ae53be0 [ 21.053414][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 21.053416][ C3] R10: ffff8880361b37d3 R11: ffffffff8b811288 R12: 0000000000000000 [ 21.053418][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 21.053422][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 21.053427][ C3] default_idle+0x9/0x10 [ 21.053430][ C3] default_idle_call+0x6d/0xb0 [ 21.053432][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 21.053436][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 21.053440][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 21.053444][ C3] do_idle+0xf6/0x160 [ 21.053447][ C3] cpu_startup_entry+0x54/0x60 [ 21.053450][ C3] start_secondary+0x213/0x2a0 [ 21.053453][ C3] ? __pfx_start_secondary+0x10/0x10 [ 21.053458][ C3] common_startup_64+0x13e/0x148 [ 21.053465][ C3] [ 21.069978][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 21.070339][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 21.070691][ C3] preempt_count: 101, expected: 0 [ 21.070884][ C3] RCU nest depth: 0, expected: 0 [ 21.071071][ C3] INFO: lockdep is turned off. [ 21.071280][ C3] Preemption disabled at: [ 21.071282][ C3] [<0000000000000000>] 0x0 [ 21.071728][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 21.071733][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.071736][ C3] Call Trace: [ 21.071738][ C3] [ 21.071740][ C3] dump_stack_lvl+0xb0/0xd0 [ 21.071749][ C3] __might_resched+0x360/0x5a0 [ 21.071755][ C3] down_write+0x72/0x210 [ 21.071760][ C3] ? __pfx_down_write+0x10/0x10 [ 21.071763][ C3] ? simple_recursive_removal+0x33/0x610 [ 21.071767][ C3] ? rcu_is_watching+0x12/0xc0 [ 21.071772][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 21.071778][ C3] simple_recursive_removal+0x6a/0x610 [ 21.071781][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 21.071785][ C3] ? __pfx_remove_one+0x10/0x10 [ 21.071790][ C3] debugfs_remove+0x44/0x70 [ 21.071793][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 21.071799][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 21.071802][ C3] ? __sk_destruct+0x383/0x780 [ 21.071808][ C3] ? rcu_do_batch+0x34c/0xf20 [ 21.071812][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 21.071817][ C3] ? irq_exit_rcu+0xe/0x30 [ 21.071822][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 21.071828][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 21.071833][ C3] ? pv_native_safe_halt+0xf/0x20 [ 21.071837][ C3] ? default_idle+0x9/0x10 [ 21.071841][ C3] ? default_idle_call+0x6d/0xb0 [ 21.071844][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 21.071849][ C3] ? do_idle+0xf6/0x160 [ 21.071852][ C3] ? cpu_startup_entry+0x54/0x60 [ 21.071855][ C3] ? start_secondary+0x213/0x2a0 [ 21.071859][ C3] ? common_startup_64+0x13e/0x148 [ 21.071867][ C3] __put_net+0x19/0x60 [ 21.071871][ C3] __sk_destruct+0x58a/0x780 [ 21.071875][ C3] ? rcu_do_batch+0x34a/0xf20 [ 21.071878][ C3] rcu_do_batch+0x34c/0xf20 [ 21.071881][ C3] ? find_held_lock+0x2b/0x80 [ 21.071887][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 21.071890][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 21.071895][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 21.071898][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 21.071903][ C3] rcu_core+0x2bb/0x500 [ 21.071908][ C3] handle_softirqs+0x218/0x620 [ 21.071913][ C3] __irq_exit_rcu+0xfa/0x160 [ 21.071916][ C3] irq_exit_rcu+0xe/0x30 [ 21.071919][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 21.071922][ C3] [ 21.071923][ C3] [ 21.071925][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 21.071928][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 21.071932][ C3] Code: 92 b5 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 83 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 21.071935][ C3] RSP: 0000:ffffc90000157de8 EFLAGS: 00000242 [ 21.071939][ C3] RAX: 0000000000042a5d RBX: 1ffff9200002afc1 RCX: ffffffff8ab905d9 [ 21.071941][ C3] RDX: 0000000000000000 RSI: ffffffff8b68f4e4 RDI: ffffffff8ae53be0 [ 21.071943][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 21.071944][ C3] R10: ffff8880361b37d3 R11: ffffffff8b811288 R12: 0000000000000000 [ 21.071946][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 21.071950][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 21.071955][ C3] default_idle+0x9/0x10 [ 21.071957][ C3] default_idle_call+0x6d/0xb0 [ 21.071960][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 21.071963][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 21.071967][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 21.071972][ C3] do_idle+0xf6/0x160 [ 21.071975][ C3] cpu_startup_entry+0x54/0x60 [ 21.071978][ C3] start_secondary+0x213/0x2a0 [ 21.071981][ C3] ? __pfx_start_secondary+0x10/0x10 [ 21.071985][ C3] common_startup_64+0x13e/0x148 [ 21.071992][ C3] [ 25.984495][ T258] packetdrill (258) used greatest stack depth: 24584 bytes left [ 25.989585][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 25.989962][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 25.990288][ C3] preempt_count: 100, expected: 0 [ 25.990465][ C3] RCU nest depth: 0, expected: 0 [ 25.990642][ C3] INFO: lockdep is turned off. [ 25.990833][ C3] Preemption disabled at: [ 25.990834][ C3] [] handle_softirqs+0xe5/0x620 [ 25.991198][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 25.991204][ C3] Tainted: [W]=WARN [ 25.991206][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 25.991207][ C3] Call Trace: [ 25.991209][ C3] [ 25.991211][ C3] dump_stack_lvl+0xb0/0xd0 [ 25.991219][ C3] __might_resched+0x360/0x5a0 [ 25.991226][ C3] down_write+0x72/0x210 [ 25.991231][ C3] ? __pfx_down_write+0x10/0x10 [ 25.991234][ C3] ? simple_recursive_removal+0x33/0x610 [ 25.991238][ C3] ? rcu_is_watching+0x12/0xc0 [ 25.991244][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 25.991250][ C3] simple_recursive_removal+0x6a/0x610 [ 25.991253][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 25.991256][ C3] ? __pfx_remove_one+0x10/0x10 [ 25.991262][ C3] debugfs_remove+0x44/0x70 [ 25.991265][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 25.991271][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 25.991275][ C3] ? __sk_destruct+0x383/0x780 [ 25.991280][ C3] ? rcu_do_batch+0x34c/0xf20 [ 25.991284][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 25.991287][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 25.991291][ C3] ? kthread+0x37e/0x600 [ 25.991294][ C3] ? ret_from_fork+0x240/0x320 [ 25.991298][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 25.991304][ C3] ? migrate_enable+0x1f2/0x270 [ 25.991308][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 25.991311][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 25.991316][ C3] ? rcu_is_watching+0x12/0xc0 [ 25.991321][ C3] __put_net+0x19/0x60 [ 25.991325][ C3] __sk_destruct+0x58a/0x780 [ 25.991329][ C3] ? rcu_do_batch+0x34a/0xf20 [ 25.991331][ C3] rcu_do_batch+0x34c/0xf20 [ 25.991334][ C3] ? __schedule+0x87b/0x1b00 [ 25.991340][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 25.991344][ C3] ? rcu_is_watching+0x12/0xc0 [ 25.991347][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 25.991354][ C3] rcu_core+0x2bb/0x500 [ 25.991358][ C3] handle_softirqs+0x218/0x620 [ 25.991362][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 25.991366][ C3] run_ksoftirqd+0x3f/0x70 [ 25.991369][ C3] smpboot_thread_fn+0x30a/0x960 [ 25.991373][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 25.991377][ C3] kthread+0x37e/0x600 [ 25.991379][ C3] ? __pfx_kthread+0x10/0x10 [ 25.991382][ C3] ? ret_from_fork+0x1b/0x320 [ 25.991384][ C3] ? __lock_release+0x5d/0x170 [ 25.991388][ C3] ? rcu_is_watching+0x12/0xc0 [ 25.991391][ C3] ? __pfx_kthread+0x10/0x10 [ 25.991394][ C3] ret_from_fork+0x240/0x320 [ 25.991397][ C3] ? __pfx_kthread+0x10/0x10 [ 25.991399][ C3] ret_from_fork_asm+0x1a/0x30 [ 25.991407][ C3]