[ 14.277746][ C2] [ 14.277906][ C2] ================================ [ 14.278092][ C2] WARNING: inconsistent lock state [ 14.278273][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 14.278462][ C2] -------------------------------- [ 14.278640][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.278878][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.279104][ C2] ffffffffa45bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.279421][ C2] {SOFTIRQ-ON-W} state was registered at: [ 14.279600][ C2] __lock_acquire+0x3eb/0x9d0 [ 14.279786][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.279981][ C2] _raw_spin_lock+0x33/0x40 [ 14.280163][ C2] simple_pin_fs+0x24/0x150 [ 14.280343][ C2] start_creating.part.0+0x3f/0x2f0 [ 14.280523][ C2] debugfs_create_dir+0x6a/0x540 [ 14.280704][ C2] component_debug_init+0x17/0x30 [ 14.280899][ C2] do_one_initcall+0x8c/0x1e0 [ 14.281081][ C2] do_initcalls+0x176/0x280 [ 14.281263][ C2] kernel_init_freeable+0x22d/0x300 [ 14.281444][ C2] kernel_init+0x20/0x200 [ 14.281625][ C2] ret_from_fork+0x31/0x70 [ 14.281810][ C2] ret_from_fork_asm+0x1a/0x30 [ 14.282005][ C2] irq event stamp: 273392 [ 14.282144][ C2] hardirqs last enabled at (273392): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.282508][ C2] hardirqs last disabled at (273391): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.282900][ C2] softirqs last enabled at (272382): [] handle_softirqs+0x358/0x620 [ 14.283444][ C2] softirqs last disabled at (272389): [] __irq_exit_rcu+0xfa/0x160 [ 14.283962][ C2] [ 14.283962][ C2] other info that might help us debug this: [ 14.284235][ C2] Possible unsafe locking scenario: [ 14.284235][ C2] [ 14.284500][ C2] CPU0 [ 14.284637][ C2] ---- [ 14.284776][ C2] lock(pin_fs_lock); [ 14.284928][ C2] [ 14.285063][ C2] lock(pin_fs_lock); [ 14.285201][ C2] [ 14.285201][ C2] *** DEADLOCK *** [ 14.285201][ C2] [ 14.285468][ C2] 1 lock held by swapper/2/0: [ 14.285660][ C2] #0: ffffffffa4374480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.285997][ C2] [ 14.285997][ C2] stack backtrace: [ 14.286218][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.286223][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.286226][ C2] Call Trace: [ 14.286228][ C2] [ 14.286230][ C2] dump_stack_lvl+0x82/0xd0 [ 14.286236][ C2] print_usage_bug.part.0+0x25f/0x360 [ 14.286242][ C2] mark_lock_irq+0x343/0x400 [ 14.286247][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.286253][ C2] ? save_trace+0x52/0x170 [ 14.286258][ C2] mark_lock+0x174/0x2f0 [ 14.286262][ C2] mark_usage+0x46/0x150 [ 14.286265][ C2] __lock_acquire+0x3eb/0x9d0 [ 14.286270][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.286274][ C2] ? simple_pin_fs+0x24/0x150 [ 14.286279][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.286285][ C2] ? lock_acquire+0x10c/0x170 [ 14.286288][ C2] ? simple_pin_fs+0x24/0x150 [ 14.286292][ C2] _raw_spin_lock+0x33/0x40 [ 14.286296][ C2] ? simple_pin_fs+0x24/0x150 [ 14.286299][ C2] simple_pin_fs+0x24/0x150 [ 14.286303][ C2] debugfs_remove+0x35/0x70 [ 14.286306][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.286312][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.286315][ C2] ? __sk_destruct+0x383/0x780 [ 14.286319][ C2] ? rcu_do_batch+0x34c/0xf20 [ 14.286323][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.286325][ C2] ? irq_exit_rcu+0xe/0x30 [ 14.286328][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.286332][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.286335][ C2] ? pv_native_safe_halt+0xf/0x20 [ 14.286339][ C2] ? default_idle+0x9/0x10 [ 14.286341][ C2] ? default_idle_call+0x6d/0xb0 [ 14.286343][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.286349][ C2] ? do_idle+0xf6/0x160 [ 14.286351][ C2] ? cpu_startup_entry+0x54/0x60 [ 14.286354][ C2] ? start_secondary+0x213/0x2a0 [ 14.286359][ C2] ? common_startup_64+0x13e/0x148 [ 14.286365][ C2] __put_net+0x19/0x60 [ 14.286368][ C2] __sk_destruct+0x58a/0x780 [ 14.286372][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.286375][ C2] rcu_do_batch+0x34c/0xf20 [ 14.286379][ C2] ? find_held_lock+0x2b/0x80 [ 14.286382][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.286386][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.286389][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.286393][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.286397][ C2] rcu_core+0x2bb/0x500 [ 14.286400][ C2] handle_softirqs+0x218/0x620 [ 14.286405][ C2] __irq_exit_rcu+0xfa/0x160 [ 14.286407][ C2] irq_exit_rcu+0xe/0x30 [ 14.286409][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.286413][ C2] [ 14.286414][ C2] [ 14.286415][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.286418][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.286423][ 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 [ 14.286426][ C2] RSP: 0000:ffffc90000147de8 EFLAGS: 00000246 [ 14.286429][ C2] RAX: 0000000000042803 RBX: 1ffff92000028fc1 RCX: ffffffffa3355a19 [ 14.286432][ C2] RDX: 0000000000000000 RSI: ffffffffa3e85f31 RDI: ffffffffa3650ce0 [ 14.286434][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 14.286435][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.286437][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 14.286441][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.286446][ C2] default_idle+0x9/0x10 [ 14.286449][ C2] default_idle_call+0x6d/0xb0 [ 14.286451][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 14.286455][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.286459][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.286463][ C2] do_idle+0xf6/0x160 [ 14.286467][ C2] cpu_startup_entry+0x54/0x60 [ 14.286471][ C2] start_secondary+0x213/0x2a0 [ 14.286474][ C2] ? __pfx_start_secondary+0x10/0x10 [ 14.286479][ C2] common_startup_64+0x13e/0x148 [ 14.286485][ C2] [ 14.301520][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.301846][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 14.302286][ C2] preempt_count: 101, expected: 0 [ 14.302470][ C2] RCU nest depth: 0, expected: 0 [ 14.302655][ C2] INFO: lockdep is turned off. [ 14.302973][ C2] Preemption disabled at: [ 14.302975][ C2] [<0000000000000000>] 0x0 [ 14.303309][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.303313][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.303315][ C2] Call Trace: [ 14.303317][ C2] [ 14.303319][ C2] dump_stack_lvl+0xb0/0xd0 [ 14.303326][ C2] __might_resched+0x360/0x5a0 [ 14.303332][ C2] down_write+0x72/0x210 [ 14.303335][ C2] ? __pfx_down_write+0x10/0x10 [ 14.303338][ C2] ? simple_recursive_removal+0x3a/0x860 [ 14.303342][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.303348][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.303352][ C2] simple_recursive_removal+0x166/0x860 [ 14.303354][ C2] ? __pfx_remove_one+0x10/0x10 [ 14.303358][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.303362][ C2] debugfs_remove+0x44/0x70 [ 14.303365][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.303370][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.303373][ C2] ? __sk_destruct+0x383/0x780 [ 14.303378][ C2] ? rcu_do_batch+0x34c/0xf20 [ 14.303382][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.303385][ C2] ? irq_exit_rcu+0xe/0x30 [ 14.303389][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.303393][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.303397][ C2] ? pv_native_safe_halt+0xf/0x20 [ 14.303400][ C2] ? default_idle+0x9/0x10 [ 14.303402][ C2] ? default_idle_call+0x6d/0xb0 [ 14.303405][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.303409][ C2] ? do_idle+0xf6/0x160 [ 14.303412][ C2] ? cpu_startup_entry+0x54/0x60 [ 14.303415][ C2] ? start_secondary+0x213/0x2a0 [ 14.303419][ C2] ? common_startup_64+0x13e/0x148 [ 14.303425][ C2] __put_net+0x19/0x60 [ 14.303428][ C2] __sk_destruct+0x58a/0x780 [ 14.303432][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.303435][ C2] rcu_do_batch+0x34c/0xf20 [ 14.303439][ C2] ? find_held_lock+0x2b/0x80 [ 14.303443][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.303447][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.303451][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.303454][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.303459][ C2] rcu_core+0x2bb/0x500 [ 14.303462][ C2] handle_softirqs+0x218/0x620 [ 14.303467][ C2] __irq_exit_rcu+0xfa/0x160 [ 14.303469][ C2] irq_exit_rcu+0xe/0x30 [ 14.303472][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.303475][ C2] [ 14.303476][ C2] [ 14.303477][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.303480][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.303484][ 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 [ 14.303486][ C2] RSP: 0000:ffffc90000147de8 EFLAGS: 00000246 [ 14.303489][ C2] RAX: 0000000000042803 RBX: 1ffff92000028fc1 RCX: ffffffffa3355a19 [ 14.303492][ C2] RDX: 0000000000000000 RSI: ffffffffa3e85f31 RDI: ffffffffa3650ce0 [ 14.303493][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 14.303495][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.303497][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 14.303500][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.303506][ C2] default_idle+0x9/0x10 [ 14.303508][ C2] default_idle_call+0x6d/0xb0 [ 14.303511][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 14.303514][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.303518][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.303523][ C2] do_idle+0xf6/0x160 [ 14.303527][ C2] cpu_startup_entry+0x54/0x60 [ 14.303531][ C2] start_secondary+0x213/0x2a0 [ 14.303534][ C2] ? __pfx_start_secondary+0x10/0x10 [ 14.303539][ C2] common_startup_64+0x13e/0x148 [ 14.303546][ C2] [ 15.823403][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.823733][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 15.824033][ C3] preempt_count: 101, expected: 0 [ 15.824203][ C3] RCU nest depth: 0, expected: 0 [ 15.824371][ C3] INFO: lockdep is turned off. [ 15.824541][ C3] Preemption disabled at: [ 15.824543][ C3] [<0000000000000000>] 0x0 [ 15.824843][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 15.824848][ C3] Tainted: [W]=WARN [ 15.824850][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.824854][ C3] Call Trace: [ 15.824856][ C3] [ 15.824858][ C3] dump_stack_lvl+0xb0/0xd0 [ 15.824866][ C3] __might_resched+0x360/0x5a0 [ 15.824872][ C3] down_write+0x72/0x210 [ 15.824876][ C3] ? __pfx_down_write+0x10/0x10 [ 15.824878][ C3] ? simple_recursive_removal+0x3a/0x860 [ 15.824883][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.824889][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.824893][ C3] simple_recursive_removal+0x166/0x860 [ 15.824896][ C3] ? __pfx_remove_one+0x10/0x10 [ 15.824900][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.824904][ C3] debugfs_remove+0x44/0x70 [ 15.824907][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.824912][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.824915][ C3] ? __sk_destruct+0x383/0x780 [ 15.824921][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.824925][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.824928][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.824932][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.824937][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.824940][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.824943][ C3] ? default_idle+0x9/0x10 [ 15.824945][ C3] ? default_idle_call+0x6d/0xb0 [ 15.824948][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.824952][ C3] ? do_idle+0xf6/0x160 [ 15.824955][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.824959][ C3] ? start_secondary+0x213/0x2a0 [ 15.824963][ C3] ? common_startup_64+0x13e/0x148 [ 15.824967][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 15.824971][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.824976][ C3] __put_net+0x19/0x60 [ 15.824979][ C3] __sk_destruct+0x58a/0x780 [ 15.824983][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.824986][ C3] rcu_do_batch+0x34c/0xf20 [ 15.824991][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.824995][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 15.824999][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.825005][ C3] rcu_core+0x2bb/0x500 [ 15.825008][ C3] handle_softirqs+0x218/0x620 [ 15.825013][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.825015][ C3] irq_exit_rcu+0xe/0x30 [ 15.825017][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.825021][ C3] [ 15.825022][ C3] [ 15.825023][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.825026][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.825030][ 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 [ 15.825033][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 15.825036][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffffa3355a19 [ 15.825038][ C3] RDX: ffffed1006c3667b RSI: ffffffffa3650c60 RDI: ffffffffa0b84d8f [ 15.825040][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c3667a [ 15.825042][ C3] R10: ffff8880361b33d3 R11: ffff888001d70558 R12: 0000000000000000 [ 15.825044][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 15.825048][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.825052][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.825056][ C3] default_idle+0x9/0x10 [ 15.825058][ C3] default_idle_call+0x6d/0xb0 [ 15.825061][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.825065][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.825069][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.825074][ C3] do_idle+0xf6/0x160 [ 15.825078][ C3] cpu_startup_entry+0x54/0x60 [ 15.825081][ C3] start_secondary+0x213/0x2a0 [ 15.825085][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.825090][ C3] common_startup_64+0x13e/0x148 [ 15.825096][ C3]