[ 14.982452][ C2] [ 14.982585][ C2] ================================ [ 14.982774][ C2] WARNING: inconsistent lock state [ 14.982963][ C2] 6.15.0-virtme #1 Not tainted [ 14.983155][ C2] -------------------------------- [ 14.983339][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.983576][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.983808][ C2] ffffffff8ffc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.984140][ C2] {SOFTIRQ-ON-W} state was registered at: [ 14.984324][ C2] __lock_acquire+0x20b/0x7e0 [ 14.984520][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.984706][ C2] _raw_spin_lock+0x33/0x40 [ 14.984896][ C2] simple_pin_fs+0x24/0x150 [ 14.985082][ C2] start_creating.part.0+0x52/0x310 [ 14.985271][ C2] debugfs_create_dir+0x6a/0x540 [ 14.985461][ C2] component_debug_init+0x17/0x30 [ 14.985650][ C2] do_one_initcall+0x8f/0x1e0 [ 14.985836][ C2] do_initcalls+0x176/0x280 [ 14.986032][ C2] kernel_init_freeable+0x22d/0x300 [ 14.986216][ C2] kernel_init+0x20/0x200 [ 14.986403][ C2] ret_from_fork+0x240/0x320 [ 14.986592][ C2] ret_from_fork_asm+0x1a/0x30 [ 14.986779][ C2] irq event stamp: 284864 [ 14.986921][ C2] hardirqs last enabled at (284864): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.987297][ C2] hardirqs last disabled at (284863): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.987672][ C2] softirqs last enabled at (284290): [] handle_softirqs+0x358/0x620 [ 14.987999][ C2] softirqs last disabled at (284297): [] __irq_exit_rcu+0xfa/0x160 [ 14.988323][ C2] [ 14.988323][ C2] other info that might help us debug this: [ 14.988598][ C2] Possible unsafe locking scenario: [ 14.988598][ C2] [ 14.988870][ C2] CPU0 [ 14.989010][ C2] ---- [ 14.989147][ C2] lock(pin_fs_lock); [ 14.989287][ C2] [ 14.989427][ C2] lock(pin_fs_lock); [ 14.989569][ C2] [ 14.989569][ C2] *** DEADLOCK *** [ 14.989569][ C2] [ 14.989842][ C2] 1 lock held by swapper/2/0: [ 14.990029][ C2] #0: ffffffff8fd774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.990361][ C2] [ 14.990361][ C2] stack backtrace: [ 14.990591][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.990595][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.990597][ C2] Call Trace: [ 14.990599][ C2] [ 14.990601][ C2] dump_stack_lvl+0x82/0xd0 [ 14.990607][ C2] print_usage_bug.part.0+0x25f/0x360 [ 14.990612][ C2] mark_lock_irq+0x343/0x400 [ 14.990616][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.990620][ C2] ? save_trace+0x52/0x170 [ 14.990626][ C2] mark_lock+0x174/0x2f0 [ 14.990630][ C2] mark_usage+0x46/0x150 [ 14.990633][ C2] __lock_acquire+0x20b/0x7e0 [ 14.990636][ C2] ? __lock_acquire+0x44d/0x7e0 [ 14.990640][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.990643][ C2] ? simple_pin_fs+0x24/0x150 [ 14.990647][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.990651][ C2] ? lock_acquire+0x10c/0x170 [ 14.990654][ C2] ? simple_pin_fs+0x24/0x150 [ 14.990659][ C2] _raw_spin_lock+0x33/0x40 [ 14.990662][ C2] ? simple_pin_fs+0x24/0x150 [ 14.990665][ C2] simple_pin_fs+0x24/0x150 [ 14.990669][ C2] debugfs_remove+0x35/0x70 [ 14.990672][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.990678][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.990681][ C2] ? __sk_destruct+0x383/0x780 [ 14.990687][ C2] ? rcu_do_batch+0x34c/0xf20 [ 14.990690][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.990693][ C2] ? irq_exit_rcu+0xe/0x30 [ 14.990696][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.990701][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.990704][ C2] ? pv_native_safe_halt+0xf/0x20 [ 14.990707][ C2] ? default_idle+0x9/0x10 [ 14.990710][ C2] ? default_idle_call+0x6d/0xb0 [ 14.990713][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.990716][ C2] ? do_idle+0xf6/0x160 [ 14.990719][ C2] ? cpu_startup_entry+0x54/0x60 [ 14.990721][ C2] ? start_secondary+0x213/0x2a0 [ 14.990725][ C2] ? common_startup_64+0x13e/0x148 [ 14.990732][ C2] __put_net+0x19/0x60 [ 14.990735][ C2] __sk_destruct+0x58a/0x780 [ 14.990740][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.990742][ C2] rcu_do_batch+0x34c/0xf20 [ 14.990745][ C2] ? find_held_lock+0x2b/0x80 [ 14.990750][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.990753][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.990756][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.990759][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.990764][ C2] rcu_core+0x2bb/0x500 [ 14.990768][ C2] handle_softirqs+0x218/0x620 [ 14.990774][ C2] __irq_exit_rcu+0xfa/0x160 [ 14.990777][ C2] irq_exit_rcu+0xe/0x30 [ 14.990779][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.990783][ C2] [ 14.990784][ C2] [ 14.990785][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.990788][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.990792][ C2] 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 [ 14.990795][ C2] RSP: 0000:ffffc90000147de8 EFLAGS: 00000246 [ 14.990798][ C2] RAX: 0000000000045687 RBX: 1ffff92000028fc1 RCX: ffffffff8ed905d9 [ 14.990800][ C2] RDX: 0000000000000000 RSI: ffffffff8f88f4e4 RDI: ffffffff8f053be0 [ 14.990802][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 14.990803][ C2] R10: ffff8880361337d3 R11: ffffffff8fa11288 R12: 0000000000000000 [ 14.990805][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 14.990809][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.990814][ C2] default_idle+0x9/0x10 [ 14.990816][ C2] default_idle_call+0x6d/0xb0 [ 14.990819][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 14.990822][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.990826][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 14.990830][ C2] do_idle+0xf6/0x160 [ 14.990834][ C2] cpu_startup_entry+0x54/0x60 [ 14.990836][ C2] start_secondary+0x213/0x2a0 [ 14.990839][ C2] ? __pfx_start_secondary+0x10/0x10 [ 14.990844][ C2] common_startup_64+0x13e/0x148 [ 14.990851][ C2] [ 15.005995][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.006328][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 15.006647][ C2] preempt_count: 101, expected: 0 [ 15.006833][ C2] RCU nest depth: 0, expected: 0 [ 15.007025][ C2] INFO: lockdep is turned off. [ 15.007209][ C2] Preemption disabled at: [ 15.007211][ C2] [<0000000000000000>] 0x0 [ 15.007542][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.007546][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.007548][ C2] Call Trace: [ 15.007549][ C2] [ 15.007551][ C2] dump_stack_lvl+0xb0/0xd0 [ 15.007559][ C2] __might_resched+0x360/0x5a0 [ 15.007566][ C2] down_write+0x72/0x210 [ 15.007570][ C2] ? __pfx_down_write+0x10/0x10 [ 15.007573][ C2] ? simple_recursive_removal+0x33/0x610 [ 15.007577][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.007581][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.007587][ C2] simple_recursive_removal+0x6a/0x610 [ 15.007590][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.007593][ C2] ? __pfx_remove_one+0x10/0x10 [ 15.007598][ C2] debugfs_remove+0x44/0x70 [ 15.007601][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.007606][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.007610][ C2] ? __sk_destruct+0x383/0x780 [ 15.007615][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.007618][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.007621][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.007625][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.007630][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.007633][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.007637][ C2] ? default_idle+0x9/0x10 [ 15.007639][ C2] ? default_idle_call+0x6d/0xb0 [ 15.007642][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.007645][ C2] ? do_idle+0xf6/0x160 [ 15.007648][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.007650][ C2] ? start_secondary+0x213/0x2a0 [ 15.007653][ C2] ? common_startup_64+0x13e/0x148 [ 15.007660][ C2] __put_net+0x19/0x60 [ 15.007663][ C2] __sk_destruct+0x58a/0x780 [ 15.007667][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.007669][ C2] rcu_do_batch+0x34c/0xf20 [ 15.007673][ C2] ? find_held_lock+0x2b/0x80 [ 15.007678][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.007681][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.007686][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.007688][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.007693][ C2] rcu_core+0x2bb/0x500 [ 15.007698][ C2] handle_softirqs+0x218/0x620 [ 15.007703][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.007706][ C2] irq_exit_rcu+0xe/0x30 [ 15.007708][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.007712][ C2] [ 15.007713][ C2] [ 15.007715][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.007718][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.007721][ C2] 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.007724][ C2] RSP: 0000:ffffc90000147de8 EFLAGS: 00000246 [ 15.007727][ C2] RAX: 0000000000045687 RBX: 1ffff92000028fc1 RCX: ffffffff8ed905d9 [ 15.007729][ C2] RDX: 0000000000000000 RSI: ffffffff8f88f4e4 RDI: ffffffff8f053be0 [ 15.007731][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 15.007732][ C2] R10: ffff8880361337d3 R11: ffffffff8fa11288 R12: 0000000000000000 [ 15.007734][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 15.007738][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.007742][ C2] default_idle+0x9/0x10 [ 15.007745][ C2] default_idle_call+0x6d/0xb0 [ 15.007748][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.007751][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.007754][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.007759][ C2] do_idle+0xf6/0x160 [ 15.007762][ C2] cpu_startup_entry+0x54/0x60 [ 15.007765][ C2] start_secondary+0x213/0x2a0 [ 15.007768][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.007773][ C2] common_startup_64+0x13e/0x148 [ 15.007780][ C2] [ 16.645252][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.645632][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 14, name: ksoftirqd/0 [ 16.645923][ C0] preempt_count: 100, expected: 0 [ 16.646108][ C0] RCU nest depth: 0, expected: 0 [ 16.646279][ C0] INFO: lockdep is turned off. [ 16.646446][ C0] Preemption disabled at: [ 16.646448][ C0] [] handle_softirqs+0xe5/0x620 [ 16.646776][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.646781][ C0] Tainted: [W]=WARN [ 16.646783][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.646785][ C0] Call Trace: [ 16.646787][ C0] [ 16.646789][ C0] dump_stack_lvl+0xb0/0xd0 [ 16.646796][ C0] __might_resched+0x360/0x5a0 [ 16.646803][ C0] down_write+0x72/0x210 [ 16.646807][ C0] ? __pfx_down_write+0x10/0x10 [ 16.646810][ C0] ? simple_recursive_removal+0x33/0x610 [ 16.646814][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.646819][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.646825][ C0] simple_recursive_removal+0x6a/0x610 [ 16.646828][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.646831][ C0] ? __pfx_remove_one+0x10/0x10 [ 16.646838][ C0] debugfs_remove+0x44/0x70 [ 16.646841][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 16.646847][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.646850][ C0] ? __sk_destruct+0x383/0x780 [ 16.646855][ C0] ? rcu_do_batch+0x34c/0xf20 [ 16.646859][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.646862][ C0] ? smpboot_thread_fn+0x30a/0x960 [ 16.646866][ C0] ? kthread+0x37e/0x600 [ 16.646869][ C0] ? ret_from_fork+0x240/0x320 [ 16.646873][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 16.646878][ C0] ? migrate_enable+0x1f2/0x270 [ 16.646882][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 16.646885][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.646890][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.646894][ C0] __put_net+0x19/0x60 [ 16.646898][ C0] __sk_destruct+0x58a/0x780 [ 16.646902][ C0] ? rcu_do_batch+0x34a/0xf20 [ 16.646905][ C0] rcu_do_batch+0x34c/0xf20 [ 16.646912][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.646916][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.646919][ C0] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.646926][ C0] rcu_core+0x2bb/0x500 [ 16.646930][ C0] handle_softirqs+0x218/0x620 [ 16.646934][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 16.646938][ C0] run_ksoftirqd+0x3f/0x70 [ 16.646941][ C0] smpboot_thread_fn+0x30a/0x960 [ 16.646945][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.646949][ C0] kthread+0x37e/0x600 [ 16.646951][ C0] ? __pfx_kthread+0x10/0x10 [ 16.646954][ C0] ? ret_from_fork+0x1b/0x320 [ 16.646956][ C0] ? __lock_release+0x5d/0x170 [ 16.646960][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.646963][ C0] ? __pfx_kthread+0x10/0x10 [ 16.646966][ C0] ret_from_fork+0x240/0x320 [ 16.646968][ C0] ? __pfx_kthread+0x10/0x10 [ 16.646971][ C0] ret_from_fork_asm+0x1a/0x30 [ 16.646978][ C0]