[ 15.000500][ C3] [ 15.000646][ C3] ================================ [ 15.000842][ C3] WARNING: inconsistent lock state [ 15.001044][ C3] 6.15.0-virtme #1 Not tainted [ 15.001244][ C3] -------------------------------- [ 15.001441][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.001686][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.001932][ C3] ffffffffa41c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.002280][ C3] {SOFTIRQ-ON-W} state was registered at: [ 15.002475][ C3] __lock_acquire+0x20b/0x7e0 [ 15.002681][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.002874][ C3] _raw_spin_lock+0x33/0x40 [ 15.003070][ C3] simple_pin_fs+0x24/0x150 [ 15.003266][ C3] start_creating.part.0+0x52/0x310 [ 15.003472][ C3] debugfs_create_dir+0x6a/0x540 [ 15.003667][ C3] component_debug_init+0x17/0x30 [ 15.003863][ C3] do_one_initcall+0x8f/0x1e0 [ 15.004062][ C3] do_initcalls+0x176/0x280 [ 15.004262][ C3] kernel_init_freeable+0x22d/0x300 [ 15.004466][ C3] kernel_init+0x20/0x200 [ 15.004666][ C3] ret_from_fork+0x240/0x320 [ 15.004863][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.005062][ C3] irq event stamp: 293510 [ 15.005213][ C3] hardirqs last enabled at (293510): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.005607][ C3] hardirqs last disabled at (293509): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.006002][ C3] softirqs last enabled at (291444): [] handle_softirqs+0x358/0x620 [ 15.006347][ C3] softirqs last disabled at (291451): [] __irq_exit_rcu+0xfa/0x160 [ 15.006688][ C3] [ 15.006688][ C3] other info that might help us debug this: [ 15.006978][ C3] Possible unsafe locking scenario: [ 15.006978][ C3] [ 15.007268][ C3] CPU0 [ 15.007415][ C3] ---- [ 15.007563][ C3] lock(pin_fs_lock); [ 15.007711][ C3] [ 15.007856][ C3] lock(pin_fs_lock); [ 15.008004][ C3] [ 15.008004][ C3] *** DEADLOCK *** [ 15.008004][ C3] [ 15.008286][ C3] 1 lock held by swapper/3/0: [ 15.008485][ C3] #0: ffffffffa3f774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.008837][ C3] [ 15.008837][ C3] stack backtrace: [ 15.009078][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.009083][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.009085][ C3] Call Trace: [ 15.009087][ C3] [ 15.009089][ C3] dump_stack_lvl+0x82/0xd0 [ 15.009095][ C3] print_usage_bug.part.0+0x25f/0x360 [ 15.009099][ C3] mark_lock_irq+0x343/0x400 [ 15.009104][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.009108][ C3] ? save_trace+0x52/0x170 [ 15.009115][ C3] mark_lock+0x174/0x2f0 [ 15.009118][ C3] mark_usage+0x46/0x150 [ 15.009121][ C3] __lock_acquire+0x20b/0x7e0 [ 15.009124][ C3] ? __lock_acquire+0x44d/0x7e0 [ 15.009128][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.009131][ C3] ? simple_pin_fs+0x24/0x150 [ 15.009136][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.009140][ C3] ? lock_acquire+0x10c/0x170 [ 15.009142][ C3] ? simple_pin_fs+0x24/0x150 [ 15.009147][ C3] _raw_spin_lock+0x33/0x40 [ 15.009150][ C3] ? simple_pin_fs+0x24/0x150 [ 15.009153][ C3] simple_pin_fs+0x24/0x150 [ 15.009157][ C3] debugfs_remove+0x35/0x70 [ 15.009160][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.009166][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.009170][ C3] ? __sk_destruct+0x383/0x780 [ 15.009175][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.009178][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.009181][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.009184][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.009188][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.009192][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.009195][ C3] ? default_idle+0x9/0x10 [ 15.009198][ C3] ? default_idle_call+0x6d/0xb0 [ 15.009200][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.009204][ C3] ? do_idle+0xf6/0x160 [ 15.009206][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.009209][ C3] ? start_secondary+0x213/0x2a0 [ 15.009212][ C3] ? common_startup_64+0x13e/0x148 [ 15.009220][ C3] __put_net+0x19/0x60 [ 15.009223][ C3] __sk_destruct+0x58a/0x780 [ 15.009227][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.009230][ C3] rcu_do_batch+0x34c/0xf20 [ 15.009233][ C3] ? find_held_lock+0x2b/0x80 [ 15.009237][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.009240][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.009244][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.009247][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.009252][ C3] rcu_core+0x2bb/0x500 [ 15.009256][ C3] handle_softirqs+0x218/0x620 [ 15.009261][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.009264][ C3] irq_exit_rcu+0xe/0x30 [ 15.009267][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.009271][ C3] [ 15.009272][ C3] [ 15.009274][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.009276][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.009281][ 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.009284][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 15.009287][ C3] RAX: 0000000000047279 RBX: 1ffff9200002afc1 RCX: ffffffffa2f905d9 [ 15.009289][ C3] RDX: 0000000000000000 RSI: ffffffffa3a8f4e4 RDI: ffffffffa3253be0 [ 15.009291][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 15.009293][ C3] R10: ffff8880361b37d3 R11: ffffffffa3c11288 R12: 0000000000000000 [ 15.009294][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 15.009298][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.009303][ C3] default_idle+0x9/0x10 [ 15.009305][ C3] default_idle_call+0x6d/0xb0 [ 15.009308][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.009311][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.009315][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.009319][ C3] do_idle+0xf6/0x160 [ 15.009323][ C3] cpu_startup_entry+0x54/0x60 [ 15.009326][ C3] start_secondary+0x213/0x2a0 [ 15.009328][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.009333][ C3] common_startup_64+0x13e/0x148 [ 15.009340][ C3] [ 15.024782][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.025104][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 15.025425][ C3] preempt_count: 101, expected: 0 [ 15.025606][ C3] RCU nest depth: 0, expected: 0 [ 15.025801][ C3] INFO: lockdep is turned off. [ 15.025985][ C3] Preemption disabled at: [ 15.025987][ C3] [<0000000000000000>] 0x0 [ 15.026311][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.026315][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.026317][ C3] Call Trace: [ 15.026319][ C3] [ 15.026321][ C3] dump_stack_lvl+0xb0/0xd0 [ 15.026328][ C3] __might_resched+0x360/0x5a0 [ 15.026334][ C3] down_write+0x72/0x210 [ 15.026338][ C3] ? __pfx_down_write+0x10/0x10 [ 15.026341][ C3] ? simple_recursive_removal+0x33/0x610 [ 15.026344][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.026349][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.026354][ C3] simple_recursive_removal+0x6a/0x610 [ 15.026357][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.026360][ C3] ? __pfx_remove_one+0x10/0x10 [ 15.026365][ C3] debugfs_remove+0x44/0x70 [ 15.026368][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.026374][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.026377][ C3] ? __sk_destruct+0x383/0x780 [ 15.026382][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.026385][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.026388][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.026392][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.026396][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.026399][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.026403][ C3] ? default_idle+0x9/0x10 [ 15.026405][ C3] ? default_idle_call+0x6d/0xb0 [ 15.026408][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.026411][ C3] ? do_idle+0xf6/0x160 [ 15.026413][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.026415][ C3] ? start_secondary+0x213/0x2a0 [ 15.026418][ C3] ? common_startup_64+0x13e/0x148 [ 15.026424][ C3] __put_net+0x19/0x60 [ 15.026428][ C3] __sk_destruct+0x58a/0x780 [ 15.026432][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.026434][ C3] rcu_do_batch+0x34c/0xf20 [ 15.026438][ C3] ? find_held_lock+0x2b/0x80 [ 15.026443][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.026446][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.026450][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.026453][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.026458][ C3] rcu_core+0x2bb/0x500 [ 15.026462][ C3] handle_softirqs+0x218/0x620 [ 15.026467][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.026470][ C3] irq_exit_rcu+0xe/0x30 [ 15.026473][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.026476][ C3] [ 15.026478][ C3] [ 15.026479][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.026482][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.026486][ 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.026488][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 15.026491][ C3] RAX: 0000000000047279 RBX: 1ffff9200002afc1 RCX: ffffffffa2f905d9 [ 15.026493][ C3] RDX: 0000000000000000 RSI: ffffffffa3a8f4e4 RDI: ffffffffa3253be0 [ 15.026494][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 15.026496][ C3] R10: ffff8880361b37d3 R11: ffffffffa3c11288 R12: 0000000000000000 [ 15.026498][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 15.026501][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.026506][ C3] default_idle+0x9/0x10 [ 15.026509][ C3] default_idle_call+0x6d/0xb0 [ 15.026511][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.026514][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.026518][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.026522][ C3] do_idle+0xf6/0x160 [ 15.026526][ C3] cpu_startup_entry+0x54/0x60 [ 15.026528][ C3] start_secondary+0x213/0x2a0 [ 15.026531][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.026536][ C3] common_startup_64+0x13e/0x148 [ 15.026543][ C3] [ 16.702754][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.703105][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 16.703412][ C1] preempt_count: 100, expected: 0 [ 16.703594][ C1] RCU nest depth: 0, expected: 0 [ 16.703785][ C1] INFO: lockdep is turned off. [ 16.703964][ C1] Preemption disabled at: [ 16.703965][ C1] [] handle_softirqs+0xe5/0x620 [ 16.704333][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.704339][ C1] Tainted: [W]=WARN [ 16.704341][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.704343][ C1] Call Trace: [ 16.704346][ C1] [ 16.704348][ C1] dump_stack_lvl+0xb0/0xd0 [ 16.704358][ C1] __might_resched+0x360/0x5a0 [ 16.704366][ C1] down_write+0x72/0x210 [ 16.704372][ C1] ? __pfx_down_write+0x10/0x10 [ 16.704375][ C1] ? simple_recursive_removal+0x33/0x610 [ 16.704381][ C1] ? rcu_is_watching+0x12/0xc0 [ 16.704388][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 16.704394][ C1] simple_recursive_removal+0x6a/0x610 [ 16.704397][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 16.704401][ C1] ? __pfx_remove_one+0x10/0x10 [ 16.704408][ C1] debugfs_remove+0x44/0x70 [ 16.704411][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 16.704418][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.704422][ C1] ? __sk_destruct+0x383/0x780 [ 16.704429][ C1] ? rcu_do_batch+0x34c/0xf20 [ 16.704433][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.704436][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 16.704442][ C1] ? kthread+0x37e/0x600 [ 16.704445][ C1] ? ret_from_fork+0x240/0x320 [ 16.704450][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 16.704458][ C1] ? migrate_enable+0x1f2/0x270 [ 16.704462][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 16.704465][ C1] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.704471][ C1] ? rcu_is_watching+0x12/0xc0 [ 16.704475][ C1] __put_net+0x19/0x60 [ 16.704480][ C1] __sk_destruct+0x58a/0x780 [ 16.704484][ C1] ? rcu_do_batch+0x34a/0xf20 [ 16.704486][ C1] rcu_do_batch+0x34c/0xf20 [ 16.704490][ C1] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.704498][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.704500][ C1] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 16.704505][ C1] ? rcu_is_watching+0x12/0xc0 [ 16.704508][ C1] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.704513][ C1] rcu_core+0x2bb/0x500 [ 16.704518][ C1] handle_softirqs+0x218/0x620 [ 16.704522][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 16.704526][ C1] run_ksoftirqd+0x3f/0x70 [ 16.704529][ C1] smpboot_thread_fn+0x30a/0x960 [ 16.704533][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.704537][ C1] kthread+0x37e/0x600 [ 16.704540][ C1] ? __pfx_kthread+0x10/0x10 [ 16.704542][ C1] ? ret_from_fork+0x1b/0x320 [ 16.704544][ C1] ? __lock_release+0x5d/0x170 [ 16.704548][ C1] ? rcu_is_watching+0x12/0xc0 [ 16.704551][ C1] ? __pfx_kthread+0x10/0x10 [ 16.704554][ C1] ret_from_fork+0x240/0x320 [ 16.704557][ C1] ? __pfx_kthread+0x10/0x10 [ 16.704559][ C1] ret_from_fork_asm+0x1a/0x30 [ 16.704567][ C1]