[ 20.374416][ C1] [ 20.374669][ C1] ================================ [ 20.374977][ C1] WARNING: inconsistent lock state [ 20.375169][ C1] 6.15.0-virtme #1 Not tainted [ 20.375349][ C1] -------------------------------- [ 20.375532][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 20.375758][ C1] ksoftirqd/1/22 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 20.375984][ C1] ffffffff895c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 20.376323][ C1] {SOFTIRQ-ON-W} state was registered at: [ 20.376506][ C1] __lock_acquire+0x20b/0x7e0 [ 20.376688][ C1] lock_acquire.part.0+0xb6/0x240 [ 20.376889][ C1] _raw_spin_lock+0x33/0x40 [ 20.377077][ C1] simple_pin_fs+0x24/0x150 [ 20.377254][ C1] start_creating.part.0+0x52/0x310 [ 20.377435][ C1] debugfs_create_dir+0x6a/0x540 [ 20.377608][ C1] component_debug_init+0x17/0x30 [ 20.377796][ C1] do_one_initcall+0x8f/0x1e0 [ 20.377994][ C1] do_initcalls+0x176/0x280 [ 20.378194][ C1] kernel_init_freeable+0x22d/0x300 [ 20.378409][ C1] kernel_init+0x20/0x200 [ 20.378597][ C1] ret_from_fork+0x240/0x320 [ 20.378783][ C1] ret_from_fork_asm+0x1a/0x30 [ 20.378987][ C1] irq event stamp: 266052 [ 20.379136][ C1] hardirqs last enabled at (266052): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.379501][ C1] hardirqs last disabled at (266051): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 20.379886][ C1] softirqs last enabled at (265518): [] handle_softirqs+0x358/0x620 [ 20.380219][ C1] softirqs last disabled at (265523): [] run_ksoftirqd+0x3f/0x70 [ 20.380540][ C1] [ 20.380540][ C1] other info that might help us debug this: [ 20.380839][ C1] Possible unsafe locking scenario: [ 20.380839][ C1] [ 20.381116][ C1] CPU0 [ 20.381260][ C1] ---- [ 20.381390][ C1] lock(pin_fs_lock); [ 20.381532][ C1] [ 20.381667][ C1] lock(pin_fs_lock); [ 20.381805][ C1] [ 20.381805][ C1] *** DEADLOCK *** [ 20.381805][ C1] [ 20.382091][ C1] 1 lock held by ksoftirqd/1/22: [ 20.382269][ C1] #0: ffffffff893774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 20.382584][ C1] [ 20.382584][ C1] stack backtrace: [ 20.382807][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 20.382812][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.382815][ C1] Call Trace: [ 20.382818][ C1] [ 20.382823][ C1] dump_stack_lvl+0x82/0xd0 [ 20.382834][ C1] print_usage_bug.part.0+0x25f/0x360 [ 20.382841][ C1] mark_lock_irq+0x343/0x400 [ 20.382846][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 20.382852][ C1] ? save_trace+0x52/0x170 [ 20.382860][ C1] mark_lock+0x174/0x2f0 [ 20.382864][ C1] mark_usage+0x46/0x150 [ 20.382867][ C1] __lock_acquire+0x20b/0x7e0 [ 20.382870][ C1] ? __lock_acquire+0x44d/0x7e0 [ 20.382874][ C1] lock_acquire.part.0+0xb6/0x240 [ 20.382877][ C1] ? simple_pin_fs+0x24/0x150 [ 20.382884][ C1] ? rcu_is_watching+0x12/0xc0 [ 20.382889][ C1] ? lock_acquire+0x10c/0x170 [ 20.382891][ C1] ? simple_pin_fs+0x24/0x150 [ 20.382896][ C1] _raw_spin_lock+0x33/0x40 [ 20.382901][ C1] ? simple_pin_fs+0x24/0x150 [ 20.382905][ C1] simple_pin_fs+0x24/0x150 [ 20.382909][ C1] debugfs_remove+0x35/0x70 [ 20.382915][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 20.382922][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.382926][ C1] ? __sk_destruct+0x383/0x780 [ 20.382933][ C1] ? rcu_do_batch+0x34c/0xf20 [ 20.382936][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.382939][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 20.382944][ C1] ? kthread+0x37e/0x600 [ 20.382947][ C1] ? ret_from_fork+0x240/0x320 [ 20.382950][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 20.382955][ C1] ? migrate_enable+0x1f2/0x270 [ 20.382960][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 20.382966][ C1] __put_net+0x19/0x60 [ 20.382970][ C1] __sk_destruct+0x58a/0x780 [ 20.382975][ C1] ? rcu_do_batch+0x34a/0xf20 [ 20.382977][ C1] rcu_do_batch+0x34c/0xf20 [ 20.382982][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.382986][ C1] ? rcu_is_watching+0x12/0xc0 [ 20.382989][ C1] ? note_gp_changes+0x182/0x1e0 [ 20.382992][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.382997][ C1] rcu_core+0x2bb/0x500 [ 20.383001][ C1] handle_softirqs+0x218/0x620 [ 20.383007][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 20.383011][ C1] run_ksoftirqd+0x3f/0x70 [ 20.383014][ C1] smpboot_thread_fn+0x30a/0x960 [ 20.383017][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 20.383021][ C1] kthread+0x37e/0x600 [ 20.383024][ C1] ? __pfx_kthread+0x10/0x10 [ 20.383026][ C1] ? ret_from_fork+0x1b/0x320 [ 20.383029][ C1] ? __lock_release+0x5d/0x170 [ 20.383032][ C1] ? rcu_is_watching+0x12/0xc0 [ 20.383035][ C1] ? __pfx_kthread+0x10/0x10 [ 20.383038][ C1] ret_from_fork+0x240/0x320 [ 20.383041][ C1] ? __pfx_kthread+0x10/0x10 [ 20.383043][ C1] ret_from_fork_asm+0x1a/0x30 [ 20.383051][ C1] [ 20.393445][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 20.393777][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 20.394089][ C1] preempt_count: 100, expected: 0 [ 20.394253][ C1] RCU nest depth: 0, expected: 0 [ 20.394432][ C1] INFO: lockdep is turned off. [ 20.394606][ C1] Preemption disabled at: [ 20.394608][ C1] [] handle_softirqs+0xe5/0x620 [ 20.394960][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 20.394966][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.394969][ C1] Call Trace: [ 20.394971][ C1] [ 20.394974][ C1] dump_stack_lvl+0xb0/0xd0 [ 20.394984][ C1] __might_resched+0x360/0x5a0 [ 20.394992][ C1] down_write+0x72/0x210 [ 20.394997][ C1] ? __pfx_down_write+0x10/0x10 [ 20.395001][ C1] ? simple_recursive_removal+0x33/0x610 [ 20.395006][ C1] ? rcu_is_watching+0x12/0xc0 [ 20.395012][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 20.395020][ C1] simple_recursive_removal+0x6a/0x610 [ 20.395023][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 20.395026][ C1] ? __pfx_remove_one+0x10/0x10 [ 20.395032][ C1] debugfs_remove+0x44/0x70 [ 20.395036][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 20.395043][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.395047][ C1] ? __sk_destruct+0x383/0x780 [ 20.395053][ C1] ? rcu_do_batch+0x34c/0xf20 [ 20.395057][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.395060][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 20.395065][ C1] ? kthread+0x37e/0x600 [ 20.395069][ C1] ? ret_from_fork+0x240/0x320 [ 20.395074][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 20.395081][ C1] ? migrate_enable+0x1f2/0x270 [ 20.395086][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 20.395091][ C1] __put_net+0x19/0x60 [ 20.395096][ C1] __sk_destruct+0x58a/0x780 [ 20.395100][ C1] ? rcu_do_batch+0x34a/0xf20 [ 20.395102][ C1] rcu_do_batch+0x34c/0xf20 [ 20.395107][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.395110][ C1] ? rcu_is_watching+0x12/0xc0 [ 20.395113][ C1] ? note_gp_changes+0x182/0x1e0 [ 20.395117][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.395122][ C1] rcu_core+0x2bb/0x500 [ 20.395126][ C1] handle_softirqs+0x218/0x620 [ 20.395131][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 20.395135][ C1] run_ksoftirqd+0x3f/0x70 [ 20.395138][ C1] smpboot_thread_fn+0x30a/0x960 [ 20.395142][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 20.395146][ C1] kthread+0x37e/0x600 [ 20.395149][ C1] ? __pfx_kthread+0x10/0x10 [ 20.395151][ C1] ? ret_from_fork+0x1b/0x320 [ 20.395153][ C1] ? __lock_release+0x5d/0x170 [ 20.395157][ C1] ? rcu_is_watching+0x12/0xc0 [ 20.395160][ C1] ? __pfx_kthread+0x10/0x10 [ 20.395163][ C1] ret_from_fork+0x240/0x320 [ 20.395166][ C1] ? __pfx_kthread+0x10/0x10 [ 20.395168][ C1] ret_from_fork_asm+0x1a/0x30 [ 20.395176][ C1] [ 25.385935][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 25.386430][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 25.386936][ C3] preempt_count: 101, expected: 0 [ 25.387213][ C3] RCU nest depth: 0, expected: 0 [ 25.387506][ C3] INFO: lockdep is turned off. [ 25.387798][ C3] Preemption disabled at: [ 25.387802][ C3] [<0000000000000000>] 0x0 [ 25.388342][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 25.388349][ C3] Tainted: [W]=WARN [ 25.388351][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 25.388354][ C3] Call Trace: [ 25.388356][ C3] [ 25.388358][ C3] dump_stack_lvl+0xb0/0xd0 [ 25.388370][ C3] __might_resched+0x360/0x5a0 [ 25.388380][ C3] down_write+0x72/0x210 [ 25.388385][ C3] ? __pfx_down_write+0x10/0x10 [ 25.388388][ C3] ? simple_recursive_removal+0x33/0x610 [ 25.388394][ C3] ? rcu_is_watching+0x12/0xc0 [ 25.388400][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 25.388407][ C3] simple_recursive_removal+0x6a/0x610 [ 25.388410][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 25.388414][ C3] ? __pfx_remove_one+0x10/0x10 [ 25.388420][ C3] debugfs_remove+0x44/0x70 [ 25.388423][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 25.388431][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 25.388435][ C3] ? __sk_destruct+0x383/0x780 [ 25.388442][ C3] ? rcu_do_batch+0x34c/0xf20 [ 25.388446][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 25.388449][ C3] ? irq_exit_rcu+0xe/0x30 [ 25.388455][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 25.388462][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.388467][ C3] ? pv_native_safe_halt+0xf/0x20 [ 25.388470][ C3] ? default_idle+0x9/0x10 [ 25.388473][ C3] ? default_idle_call+0x6d/0xb0 [ 25.388476][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 25.388480][ C3] ? do_idle+0xf6/0x160 [ 25.388483][ C3] ? cpu_startup_entry+0x54/0x60 [ 25.388485][ C3] ? start_secondary+0x213/0x2a0 [ 25.388490][ C3] ? common_startup_64+0x13e/0x148 [ 25.388497][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 25.388502][ C3] ? rcu_is_watching+0x12/0xc0 [ 25.388507][ C3] __put_net+0x19/0x60 [ 25.388512][ C3] __sk_destruct+0x58a/0x780 [ 25.388516][ C3] ? rcu_do_batch+0x34a/0xf20 [ 25.388518][ C3] rcu_do_batch+0x34c/0xf20 [ 25.388523][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 25.388527][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 25.388534][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 25.388541][ C3] rcu_core+0x2bb/0x500 [ 25.388546][ C3] handle_softirqs+0x218/0x620 [ 25.388551][ C3] __irq_exit_rcu+0xfa/0x160 [ 25.388555][ C3] irq_exit_rcu+0xe/0x30 [ 25.388557][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 25.388561][ C3] [ 25.388562][ C3] [ 25.388564][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.388567][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 25.388571][ 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 [ 25.388574][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 25.388578][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffff883905d9 [ 25.388580][ C3] RDX: ffffed1006c366fb RSI: ffffffff88653b60 RDI: ffffffff85b8d18f [ 25.388582][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c366fa [ 25.388584][ C3] R10: ffff8880361b37d3 R11: ffff888007ca4ad8 R12: 0000000000000000 [ 25.388586][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 25.388590][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 25.388593][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 25.388597][ C3] default_idle+0x9/0x10 [ 25.388600][ C3] default_idle_call+0x6d/0xb0 [ 25.388602][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 25.388605][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 25.388609][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 25.388614][ C3] do_idle+0xf6/0x160 [ 25.388618][ C3] cpu_startup_entry+0x54/0x60 [ 25.388621][ C3] start_secondary+0x213/0x2a0 [ 25.388624][ C3] ? __pfx_start_secondary+0x10/0x10 [ 25.388628][ C3] common_startup_64+0x13e/0x148 [ 25.388636][ C3]