[ 15.017283][ C2] [ 15.017505][ C2] ================================ [ 15.017699][ C2] WARNING: inconsistent lock state [ 15.017889][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 15.018079][ C2] -------------------------------- [ 15.018268][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.018510][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.018747][ C2] ffffffff90dbf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.019091][ C2] {SOFTIRQ-ON-W} state was registered at: [ 15.019283][ C2] __lock_acquire+0x3eb/0x9d0 [ 15.019487][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.019677][ C2] _raw_spin_lock+0x33/0x40 [ 15.019869][ C2] simple_pin_fs+0x24/0x150 [ 15.020057][ C2] start_creating.part.0+0x3f/0x2f0 [ 15.020248][ C2] debugfs_create_dir+0x6a/0x540 [ 15.020433][ C2] component_debug_init+0x17/0x30 [ 15.020628][ C2] do_one_initcall+0x8c/0x1e0 [ 15.020818][ C2] do_initcalls+0x176/0x280 [ 15.021008][ C2] kernel_init_freeable+0x22d/0x300 [ 15.021192][ C2] kernel_init+0x20/0x200 [ 15.021378][ C2] ret_from_fork+0x31/0x70 [ 15.021571][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.021759][ C2] irq event stamp: 267940 [ 15.021900][ C2] hardirqs last enabled at (267940): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.022278][ C2] hardirqs last disabled at (267939): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.022649][ C2] softirqs last enabled at (265856): [] handle_softirqs+0x358/0x620 [ 15.022974][ C2] softirqs last disabled at (265881): [] __irq_exit_rcu+0xfa/0x160 [ 15.023304][ C2] [ 15.023304][ C2] other info that might help us debug this: [ 15.023578][ C2] Possible unsafe locking scenario: [ 15.023578][ C2] [ 15.023854][ C2] CPU0 [ 15.023994][ C2] ---- [ 15.024134][ C2] lock(pin_fs_lock); [ 15.024278][ C2] [ 15.024417][ C2] lock(pin_fs_lock); [ 15.024558][ C2] [ 15.024558][ C2] *** DEADLOCK *** [ 15.024558][ C2] [ 15.024833][ C2] 1 lock held by swapper/2/0: [ 15.025024][ C2] #0: ffffffff90b74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.025359][ C2] [ 15.025359][ C2] stack backtrace: [ 15.025591][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 15.025596][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.025599][ C2] Call Trace: [ 15.025601][ C2] [ 15.025603][ C2] dump_stack_lvl+0x82/0xd0 [ 15.025610][ C2] print_usage_bug.part.0+0x25f/0x360 [ 15.025616][ C2] mark_lock_irq+0x343/0x400 [ 15.025620][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.025627][ C2] ? save_trace+0x52/0x170 [ 15.025632][ C2] mark_lock+0x174/0x2f0 [ 15.025636][ C2] mark_usage+0x46/0x150 [ 15.025639][ C2] __lock_acquire+0x3eb/0x9d0 [ 15.025645][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.025649][ C2] ? simple_pin_fs+0x24/0x150 [ 15.025653][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.025659][ C2] ? lock_acquire+0x10c/0x170 [ 15.025663][ C2] ? simple_pin_fs+0x24/0x150 [ 15.025667][ C2] _raw_spin_lock+0x33/0x40 [ 15.025670][ C2] ? simple_pin_fs+0x24/0x150 [ 15.025673][ C2] simple_pin_fs+0x24/0x150 [ 15.025677][ C2] debugfs_remove+0x35/0x70 [ 15.025680][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.025686][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.025689][ C2] ? __sk_destruct+0x383/0x780 [ 15.025696][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.025699][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.025702][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.025705][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.025710][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.025714][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.025718][ C2] ? default_idle+0x9/0x10 [ 15.025720][ C2] ? default_idle_call+0x6d/0xb0 [ 15.025722][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.025726][ C2] ? do_idle+0xf6/0x160 [ 15.025729][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.025732][ C2] ? start_secondary+0x213/0x2a0 [ 15.025736][ C2] ? common_startup_64+0x13e/0x148 [ 15.025743][ C2] __put_net+0x19/0x60 [ 15.025748][ C2] __sk_destruct+0x58a/0x780 [ 15.025751][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.025754][ C2] rcu_do_batch+0x34c/0xf20 [ 15.025758][ C2] ? find_held_lock+0x2b/0x80 [ 15.025762][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.025766][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.025770][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.025773][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.025778][ C2] rcu_core+0x2bb/0x500 [ 15.025781][ C2] handle_softirqs+0x218/0x620 [ 15.025786][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.025788][ C2] irq_exit_rcu+0xe/0x30 [ 15.025790][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.025794][ C2] [ 15.025795][ C2] [ 15.025796][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.025799][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.025803][ 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 [ 15.025807][ C2] RSP: 0000:ffffc90000147de8 EFLAGS: 00000242 [ 15.025810][ C2] RAX: 0000000000040e97 RBX: 1ffff92000028fc1 RCX: ffffffff8fb55a19 [ 15.025812][ C2] RDX: 0000000000000000 RSI: ffffffff90685f31 RDI: ffffffff8fe50ce0 [ 15.025814][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 15.025816][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.025818][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 15.025822][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.025827][ C2] default_idle+0x9/0x10 [ 15.025829][ C2] default_idle_call+0x6d/0xb0 [ 15.025832][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.025835][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.025840][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.025844][ C2] do_idle+0xf6/0x160 [ 15.025848][ C2] cpu_startup_entry+0x54/0x60 [ 15.025851][ C2] start_secondary+0x213/0x2a0 [ 15.025855][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.025860][ C2] common_startup_64+0x13e/0x148 [ 15.025866][ C2] [ 15.040693][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.041017][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 15.041336][ C2] preempt_count: 101, expected: 0 [ 15.041537][ C2] RCU nest depth: 0, expected: 0 [ 15.041734][ C2] INFO: lockdep is turned off. [ 15.041922][ C2] Preemption disabled at: [ 15.041924][ C2] [<0000000000000000>] 0x0 [ 15.042266][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 15.042270][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.042272][ C2] Call Trace: [ 15.042274][ C2] [ 15.042276][ C2] dump_stack_lvl+0xb0/0xd0 [ 15.042283][ C2] __might_resched+0x360/0x5a0 [ 15.042291][ C2] down_write+0x72/0x210 [ 15.042296][ C2] ? __pfx_down_write+0x10/0x10 [ 15.042298][ C2] ? simple_recursive_removal+0x3a/0x860 [ 15.042303][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.042310][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.042315][ C2] simple_recursive_removal+0x166/0x860 [ 15.042318][ C2] ? __pfx_remove_one+0x10/0x10 [ 15.042323][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.042327][ C2] debugfs_remove+0x44/0x70 [ 15.042330][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.042335][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.042338][ C2] ? __sk_destruct+0x383/0x780 [ 15.042344][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.042348][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.042351][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.042356][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.042361][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.042365][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.042368][ C2] ? default_idle+0x9/0x10 [ 15.042371][ C2] ? default_idle_call+0x6d/0xb0 [ 15.042374][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.042379][ C2] ? do_idle+0xf6/0x160 [ 15.042382][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.042385][ C2] ? start_secondary+0x213/0x2a0 [ 15.042390][ C2] ? common_startup_64+0x13e/0x148 [ 15.042396][ C2] __put_net+0x19/0x60 [ 15.042401][ C2] __sk_destruct+0x58a/0x780 [ 15.042405][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.042408][ C2] rcu_do_batch+0x34c/0xf20 [ 15.042412][ C2] ? find_held_lock+0x2b/0x80 [ 15.042417][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.042421][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.042425][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.042429][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.042434][ C2] rcu_core+0x2bb/0x500 [ 15.042437][ C2] handle_softirqs+0x218/0x620 [ 15.042442][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.042445][ C2] irq_exit_rcu+0xe/0x30 [ 15.042447][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.042451][ C2] [ 15.042452][ C2] [ 15.042454][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.042456][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.042460][ 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 [ 15.042466][ C2] RSP: 0000:ffffc90000147de8 EFLAGS: 00000242 [ 15.042469][ C2] RAX: 0000000000040e97 RBX: 1ffff92000028fc1 RCX: ffffffff8fb55a19 [ 15.042471][ C2] RDX: 0000000000000000 RSI: ffffffff90685f31 RDI: ffffffff8fe50ce0 [ 15.042473][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 15.042474][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.042476][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 15.042480][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.042485][ C2] default_idle+0x9/0x10 [ 15.042488][ C2] default_idle_call+0x6d/0xb0 [ 15.042490][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.042493][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.042498][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.042502][ C2] do_idle+0xf6/0x160 [ 15.042506][ C2] cpu_startup_entry+0x54/0x60 [ 15.042510][ C2] start_secondary+0x213/0x2a0 [ 15.042513][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.042518][ C2] common_startup_64+0x13e/0x148 [ 15.042525][ C2] [ 16.763809][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.764166][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 16.764554][ C3] preempt_count: 101, expected: 0 [ 16.764762][ C3] RCU nest depth: 0, expected: 0 [ 16.764993][ C3] INFO: lockdep is turned off. [ 16.765216][ C3] Preemption disabled at: [ 16.765219][ C3] [<0000000000000000>] 0x0 [ 16.765701][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.765710][ C3] Tainted: [W]=WARN [ 16.765712][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.765716][ C3] Call Trace: [ 16.765719][ C3] [ 16.765722][ C3] dump_stack_lvl+0xb0/0xd0 [ 16.765735][ C3] __might_resched+0x360/0x5a0 [ 16.765745][ C3] down_write+0x72/0x210 [ 16.765751][ C3] ? __pfx_down_write+0x10/0x10 [ 16.765756][ C3] ? simple_recursive_removal+0x3a/0x860 [ 16.765763][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.765773][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.765782][ C3] simple_recursive_removal+0x166/0x860 [ 16.765787][ C3] ? __pfx_remove_one+0x10/0x10 [ 16.765794][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.765802][ C3] debugfs_remove+0x44/0x70 [ 16.765807][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 16.765816][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.765821][ C3] ? __sk_destruct+0x383/0x780 [ 16.765830][ C3] ? rcu_do_batch+0x34c/0xf20 [ 16.765838][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.765843][ C3] ? irq_exit_rcu+0xe/0x30 [ 16.765849][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.765857][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.765864][ C3] ? pv_native_safe_halt+0xf/0x20 [ 16.765869][ C3] ? default_idle+0x9/0x10 [ 16.765873][ C3] ? default_idle_call+0x6d/0xb0 [ 16.765877][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.765885][ C3] ? do_idle+0xf6/0x160 [ 16.765889][ C3] ? cpu_startup_entry+0x54/0x60 [ 16.765894][ C3] ? start_secondary+0x213/0x2a0 [ 16.765903][ C3] ? common_startup_64+0x13e/0x148 [ 16.765910][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.765917][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.765926][ C3] __put_net+0x19/0x60 [ 16.765931][ C3] __sk_destruct+0x58a/0x780 [ 16.765936][ C3] ? rcu_do_batch+0x34a/0xf20 [ 16.765939][ C3] rcu_do_batch+0x34c/0xf20 [ 16.765944][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.765948][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.765954][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.765960][ C3] rcu_core+0x2bb/0x500 [ 16.765964][ C3] handle_softirqs+0x218/0x620 [ 16.765969][ C3] __irq_exit_rcu+0xfa/0x160 [ 16.765972][ C3] irq_exit_rcu+0xe/0x30 [ 16.765974][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.765978][ C3] [ 16.765979][ C3] [ 16.765981][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.765984][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.765988][ 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 [ 16.765991][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 16.765995][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffff8fb55a19 [ 16.765997][ C3] RDX: ffffed1006c3667b RSI: ffffffff8fe50c60 RDI: ffffffff8d384d8f [ 16.765999][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c3667a [ 16.766001][ C3] R10: ffff8880361b33d3 R11: ffff888001d70558 R12: 0000000000000000 [ 16.766003][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 16.766007][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.766011][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.766016][ C3] default_idle+0x9/0x10 [ 16.766018][ C3] default_idle_call+0x6d/0xb0 [ 16.766021][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 16.766025][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.766029][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.766034][ C3] do_idle+0xf6/0x160 [ 16.766038][ C3] cpu_startup_entry+0x54/0x60 [ 16.766041][ C3] start_secondary+0x213/0x2a0 [ 16.766045][ C3] ? __pfx_start_secondary+0x10/0x10 [ 16.766050][ C3] common_startup_64+0x13e/0x148 [ 16.766056][ C3]