[ 15.021372][ C3] [ 15.021575][ C3] ================================ [ 15.021764][ C3] WARNING: inconsistent lock state [ 15.021952][ C3] 6.15.0-virtme #1 Not tainted [ 15.022146][ C3] -------------------------------- [ 15.022334][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.022562][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.022794][ C3] ffffffffb4bc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.023130][ C3] {SOFTIRQ-ON-W} state was registered at: [ 15.023316][ C3] __lock_acquire+0x20b/0x7e0 [ 15.023508][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.023694][ C3] _raw_spin_lock+0x33/0x40 [ 15.023884][ C3] simple_pin_fs+0x24/0x150 [ 15.024069][ C3] start_creating.part.0+0x52/0x310 [ 15.024255][ C3] debugfs_create_dir+0x6a/0x540 [ 15.024441][ C3] component_debug_init+0x17/0x30 [ 15.024630][ C3] do_one_initcall+0x8f/0x1e0 [ 15.024818][ C3] do_initcalls+0x176/0x280 [ 15.025004][ C3] kernel_init_freeable+0x22d/0x300 [ 15.025189][ C3] kernel_init+0x20/0x200 [ 15.025375][ C3] ret_from_fork+0x240/0x320 [ 15.025560][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.025746][ C3] irq event stamp: 291346 [ 15.025891][ C3] hardirqs last enabled at (291346): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.026263][ C3] hardirqs last disabled at (291345): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.026631][ C3] softirqs last enabled at (290012): [] handle_softirqs+0x358/0x620 [ 15.026956][ C3] softirqs last disabled at (290019): [] __irq_exit_rcu+0xfa/0x160 [ 15.027277][ C3] [ 15.027277][ C3] other info that might help us debug this: [ 15.027559][ C3] Possible unsafe locking scenario: [ 15.027559][ C3] [ 15.027836][ C3] CPU0 [ 15.027972][ C3] ---- [ 15.028112][ C3] lock(pin_fs_lock); [ 15.028253][ C3] [ 15.028392][ C3] lock(pin_fs_lock); [ 15.028534][ C3] [ 15.028534][ C3] *** DEADLOCK *** [ 15.028534][ C3] [ 15.028808][ C3] 1 lock held by swapper/3/0: [ 15.028995][ C3] #0: ffffffffb49774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.029331][ C3] [ 15.029331][ C3] stack backtrace: [ 15.029560][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.029564][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.029567][ C3] Call Trace: [ 15.029568][ C3] [ 15.029571][ C3] dump_stack_lvl+0x82/0xd0 [ 15.029577][ C3] print_usage_bug.part.0+0x25f/0x360 [ 15.029582][ C3] mark_lock_irq+0x343/0x400 [ 15.029586][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.029591][ C3] ? save_trace+0x52/0x170 [ 15.029597][ C3] mark_lock+0x174/0x2f0 [ 15.029601][ C3] mark_usage+0x46/0x150 [ 15.029604][ C3] __lock_acquire+0x20b/0x7e0 [ 15.029607][ C3] ? __lock_acquire+0x44d/0x7e0 [ 15.029611][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.029614][ C3] ? simple_pin_fs+0x24/0x150 [ 15.029618][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.029622][ C3] ? lock_acquire+0x10c/0x170 [ 15.029625][ C3] ? simple_pin_fs+0x24/0x150 [ 15.029629][ C3] _raw_spin_lock+0x33/0x40 [ 15.029632][ C3] ? simple_pin_fs+0x24/0x150 [ 15.029636][ C3] simple_pin_fs+0x24/0x150 [ 15.029639][ C3] debugfs_remove+0x35/0x70 [ 15.029643][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.029649][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.029652][ C3] ? __sk_destruct+0x383/0x780 [ 15.029658][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.029661][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.029664][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.029667][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.029671][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.029675][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.029679][ C3] ? default_idle+0x9/0x10 [ 15.029681][ C3] ? default_idle_call+0x6d/0xb0 [ 15.029684][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.029688][ C3] ? do_idle+0xf6/0x160 [ 15.029690][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.029692][ C3] ? start_secondary+0x213/0x2a0 [ 15.029696][ C3] ? common_startup_64+0x13e/0x148 [ 15.029703][ C3] __put_net+0x19/0x60 [ 15.029707][ C3] __sk_destruct+0x58a/0x780 [ 15.029711][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.029713][ C3] rcu_do_batch+0x34c/0xf20 [ 15.029716][ C3] ? find_held_lock+0x2b/0x80 [ 15.029721][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.029724][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.029728][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.029730][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.029735][ C3] rcu_core+0x2bb/0x500 [ 15.029740][ C3] handle_softirqs+0x218/0x620 [ 15.029745][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.029748][ C3] irq_exit_rcu+0xe/0x30 [ 15.029750][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.029754][ C3] [ 15.029755][ C3] [ 15.029757][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.029760][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.029764][ 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 [ 15.029767][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 15.029770][ C3] RAX: 0000000000046ce1 RBX: 1ffff9200002afc1 RCX: ffffffffb39905d9 [ 15.029772][ C3] RDX: 0000000000000000 RSI: ffffffffb448f4e4 RDI: ffffffffb3c53be0 [ 15.029774][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 15.029775][ C3] R10: ffff8880361b37d3 R11: ffffffffb4611288 R12: 0000000000000000 [ 15.029777][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 15.029781][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.029786][ C3] default_idle+0x9/0x10 [ 15.029788][ C3] default_idle_call+0x6d/0xb0 [ 15.029791][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.029794][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.029798][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.029803][ C3] do_idle+0xf6/0x160 [ 15.029806][ C3] cpu_startup_entry+0x54/0x60 [ 15.029809][ C3] start_secondary+0x213/0x2a0 [ 15.029812][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.029816][ C3] common_startup_64+0x13e/0x148 [ 15.029823][ C3] [ 15.044636][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.044934][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 15.045240][ C3] preempt_count: 101, expected: 0 [ 15.045413][ C3] RCU nest depth: 0, expected: 0 [ 15.045591][ C3] INFO: lockdep is turned off. [ 15.045763][ C3] Preemption disabled at: [ 15.045765][ C3] [<0000000000000000>] 0x0 [ 15.046069][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.046073][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.046075][ C3] Call Trace: [ 15.046077][ C3] [ 15.046078][ C3] dump_stack_lvl+0xb0/0xd0 [ 15.046085][ C3] __might_resched+0x360/0x5a0 [ 15.046091][ C3] down_write+0x72/0x210 [ 15.046095][ C3] ? __pfx_down_write+0x10/0x10 [ 15.046098][ C3] ? simple_recursive_removal+0x33/0x610 [ 15.046101][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.046106][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.046114][ C3] simple_recursive_removal+0x6a/0x610 [ 15.046116][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.046120][ C3] ? __pfx_remove_one+0x10/0x10 [ 15.046125][ C3] debugfs_remove+0x44/0x70 [ 15.046128][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.046134][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.046137][ C3] ? __sk_destruct+0x383/0x780 [ 15.046141][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.046144][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.046147][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.046151][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.046155][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.046158][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.046162][ C3] ? default_idle+0x9/0x10 [ 15.046164][ C3] ? default_idle_call+0x6d/0xb0 [ 15.046167][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.046170][ C3] ? do_idle+0xf6/0x160 [ 15.046172][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.046174][ C3] ? start_secondary+0x213/0x2a0 [ 15.046177][ C3] ? common_startup_64+0x13e/0x148 [ 15.046183][ C3] __put_net+0x19/0x60 [ 15.046187][ C3] __sk_destruct+0x58a/0x780 [ 15.046191][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.046194][ C3] rcu_do_batch+0x34c/0xf20 [ 15.046197][ C3] ? find_held_lock+0x2b/0x80 [ 15.046202][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.046205][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.046209][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.046212][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.046217][ C3] rcu_core+0x2bb/0x500 [ 15.046221][ C3] handle_softirqs+0x218/0x620 [ 15.046226][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.046229][ C3] irq_exit_rcu+0xe/0x30 [ 15.046232][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.046236][ C3] [ 15.046237][ C3] [ 15.046238][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.046241][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.046245][ 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 [ 15.046247][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 15.046250][ C3] RAX: 0000000000046ce1 RBX: 1ffff9200002afc1 RCX: ffffffffb39905d9 [ 15.046252][ C3] RDX: 0000000000000000 RSI: ffffffffb448f4e4 RDI: ffffffffb3c53be0 [ 15.046254][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 15.046255][ C3] R10: ffff8880361b37d3 R11: ffffffffb4611288 R12: 0000000000000000 [ 15.046257][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 15.046261][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.046266][ C3] default_idle+0x9/0x10 [ 15.046268][ C3] default_idle_call+0x6d/0xb0 [ 15.046271][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.046274][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.046278][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.046282][ C3] do_idle+0xf6/0x160 [ 15.046285][ C3] cpu_startup_entry+0x54/0x60 [ 15.046288][ C3] start_secondary+0x213/0x2a0 [ 15.046291][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.046295][ C3] common_startup_64+0x13e/0x148 [ 15.046302][ C3] [ 16.726402][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.726745][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 16.727049][ C3] preempt_count: 101, expected: 0 [ 16.727234][ C3] RCU nest depth: 0, expected: 0 [ 16.727410][ C3] INFO: lockdep is turned off. [ 16.727594][ C3] Preemption disabled at: [ 16.727596][ C3] [<0000000000000000>] 0x0 [ 16.727908][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.727914][ C3] Tainted: [W]=WARN [ 16.727915][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.727917][ C3] Call Trace: [ 16.727919][ C3] [ 16.727921][ C3] dump_stack_lvl+0xb0/0xd0 [ 16.727930][ C3] __might_resched+0x360/0x5a0 [ 16.727938][ C3] down_write+0x72/0x210 [ 16.727943][ C3] ? __pfx_down_write+0x10/0x10 [ 16.727946][ C3] ? simple_recursive_removal+0x33/0x610 [ 16.727950][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.727956][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.727962][ C3] simple_recursive_removal+0x6a/0x610 [ 16.727965][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.727968][ C3] ? __pfx_remove_one+0x10/0x10 [ 16.727974][ C3] debugfs_remove+0x44/0x70 [ 16.727977][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 16.727983][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.727987][ C3] ? __sk_destruct+0x383/0x780 [ 16.727992][ C3] ? rcu_do_batch+0x34c/0xf20 [ 16.727995][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.727999][ C3] ? irq_exit_rcu+0xe/0x30 [ 16.728003][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.728009][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.728013][ C3] ? pv_native_safe_halt+0xf/0x20 [ 16.728016][ C3] ? default_idle+0x9/0x10 [ 16.728019][ C3] ? default_idle_call+0x6d/0xb0 [ 16.728022][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.728025][ C3] ? do_idle+0xf6/0x160 [ 16.728028][ C3] ? cpu_startup_entry+0x54/0x60 [ 16.728030][ C3] ? start_secondary+0x213/0x2a0 [ 16.728034][ C3] ? common_startup_64+0x13e/0x148 [ 16.728040][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.728044][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.728049][ C3] __put_net+0x19/0x60 [ 16.728052][ C3] __sk_destruct+0x58a/0x780 [ 16.728056][ C3] ? rcu_do_batch+0x34a/0xf20 [ 16.728059][ C3] rcu_do_batch+0x34c/0xf20 [ 16.728064][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.728068][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.728072][ C3] rcu_core+0x2bb/0x500 [ 16.728077][ C3] handle_softirqs+0x218/0x620 [ 16.728082][ C3] __irq_exit_rcu+0xfa/0x160 [ 16.728085][ C3] irq_exit_rcu+0xe/0x30 [ 16.728088][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.728091][ C3] [ 16.728092][ C3] [ 16.728094][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.728097][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.728101][ 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 [ 16.728104][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 16.728108][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffffb39905d9 [ 16.728113][ C3] RDX: ffffed1006c366fb RSI: ffffffffb3c53b60 RDI: ffffffffb118d18f [ 16.728115][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c366fa [ 16.728116][ C3] R10: ffff8880361b37d3 R11: ffff888001bdcad8 R12: 0000000000000000 [ 16.728118][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 16.728122][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.728126][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.728130][ C3] default_idle+0x9/0x10 [ 16.728132][ C3] default_idle_call+0x6d/0xb0 [ 16.728135][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 16.728138][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.728141][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.728146][ C3] do_idle+0xf6/0x160 [ 16.728149][ C3] cpu_startup_entry+0x54/0x60 [ 16.728152][ C3] start_secondary+0x213/0x2a0 [ 16.728155][ C3] ? __pfx_start_secondary+0x10/0x10 [ 16.728159][ C3] common_startup_64+0x13e/0x148 [ 16.728166][ C3]