[ 16.304845][ C0] [ 16.305018][ C0] ================================ [ 16.305282][ C0] WARNING: inconsistent lock state [ 16.305531][ C0] 6.15.0-virtme #1 Not tainted [ 16.305788][ C0] -------------------------------- [ 16.306041][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.306354][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.306682][ C0] ffffffffb9fc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.307132][ C0] {SOFTIRQ-ON-W} state was registered at: [ 16.307386][ C0] __lock_acquire+0x20b/0x7e0 [ 16.307646][ C0] lock_acquire.part.0+0xb6/0x240 [ 16.307908][ C0] _raw_spin_lock+0x33/0x40 [ 16.308164][ C0] simple_pin_fs+0x24/0x150 [ 16.308416][ C0] start_creating.part.0+0x52/0x310 [ 16.308676][ C0] debugfs_create_dir+0x6a/0x540 [ 16.308933][ C0] component_debug_init+0x17/0x30 [ 16.309188][ C0] do_one_initcall+0x8f/0x1e0 [ 16.309448][ C0] do_initcalls+0x176/0x280 [ 16.309704][ C0] kernel_init_freeable+0x22d/0x300 [ 16.309963][ C0] kernel_init+0x20/0x200 [ 16.310214][ C0] ret_from_fork+0x240/0x320 [ 16.310477][ C0] ret_from_fork_asm+0x1a/0x30 [ 16.310730][ C0] irq event stamp: 472892 [ 16.310923][ C0] hardirqs last enabled at (472892): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.311447][ C0] hardirqs last disabled at (472891): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.311954][ C0] softirqs last enabled at (472118): [] handle_softirqs+0x358/0x620 [ 16.312411][ C0] softirqs last disabled at (472137): [] __irq_exit_rcu+0xfa/0x160 [ 16.312863][ C0] [ 16.312863][ C0] other info that might help us debug this: [ 16.313241][ C0] Possible unsafe locking scenario: [ 16.313241][ C0] [ 16.313635][ C0] CPU0 [ 16.313839][ C0] ---- [ 16.314025][ C0] lock(pin_fs_lock); [ 16.314215][ C0] [ 16.314399][ C0] lock(pin_fs_lock); [ 16.314587][ C0] [ 16.314587][ C0] *** DEADLOCK *** [ 16.314587][ C0] [ 16.314958][ C0] 1 lock held by swapper/0/0: [ 16.315205][ C0] #0: ffffffffb9d774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.315646][ C0] [ 16.315646][ C0] stack backtrace: [ 16.315953][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.315958][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.315960][ C0] Call Trace: [ 16.315962][ C0] [ 16.315964][ C0] dump_stack_lvl+0x82/0xd0 [ 16.315970][ C0] print_usage_bug.part.0+0x25f/0x360 [ 16.315975][ C0] mark_lock_irq+0x343/0x400 [ 16.315978][ C0] ? is_bpf_text_address+0x67/0x120 [ 16.315983][ C0] ? __lock_release+0x5d/0x170 [ 16.315987][ C0] ? save_trace+0x52/0x170 [ 16.315992][ C0] mark_lock+0x174/0x2f0 [ 16.315996][ C0] mark_usage+0x46/0x150 [ 16.315999][ C0] __lock_acquire+0x20b/0x7e0 [ 16.316002][ C0] ? __lock_acquire+0x44d/0x7e0 [ 16.316007][ C0] lock_acquire.part.0+0xb6/0x240 [ 16.316010][ C0] ? simple_pin_fs+0x24/0x150 [ 16.316014][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.316018][ C0] ? lock_acquire+0x10c/0x170 [ 16.316021][ C0] ? simple_pin_fs+0x24/0x150 [ 16.316025][ C0] _raw_spin_lock+0x33/0x40 [ 16.316029][ C0] ? simple_pin_fs+0x24/0x150 [ 16.316032][ C0] simple_pin_fs+0x24/0x150 [ 16.316036][ C0] debugfs_remove+0x35/0x70 [ 16.316040][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 16.316045][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.316049][ C0] ? __sk_destruct+0x383/0x780 [ 16.316055][ C0] ? rcu_do_batch+0x34c/0xf20 [ 16.316057][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.316061][ C0] ? irq_exit_rcu+0xe/0x30 [ 16.316064][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.316069][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.316073][ C0] ? pv_native_safe_halt+0xf/0x20 [ 16.316076][ C0] ? default_idle+0x9/0x10 [ 16.316079][ C0] ? default_idle_call+0x6d/0xb0 [ 16.316081][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.316084][ C0] ? do_idle+0xf6/0x160 [ 16.316087][ C0] ? cpu_startup_entry+0x54/0x60 [ 16.316089][ C0] ? rest_init+0x14b/0x260 [ 16.316092][ C0] ? start_kernel+0x350/0x410 [ 16.316098][ C0] __put_net+0x19/0x60 [ 16.316102][ C0] __sk_destruct+0x58a/0x780 [ 16.316106][ C0] ? rcu_do_batch+0x34a/0xf20 [ 16.316108][ C0] rcu_do_batch+0x34c/0xf20 [ 16.316111][ C0] ? find_held_lock+0x2b/0x80 [ 16.316116][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.316119][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.316122][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.316125][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.316130][ C0] rcu_core+0x2bb/0x500 [ 16.316134][ C0] handle_softirqs+0x218/0x620 [ 16.316140][ C0] __irq_exit_rcu+0xfa/0x160 [ 16.316143][ C0] irq_exit_rcu+0xe/0x30 [ 16.316146][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.316149][ C0] [ 16.316150][ C0] [ 16.316152][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.316155][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.316159][ C0] Code: a2 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 47 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 [ 16.316161][ C0] RSP: 0018:ffffffffb9a07df8 EFLAGS: 00000246 [ 16.316165][ C0] RAX: 0000000000073447 RBX: 1ffffffff7340fc3 RCX: ffffffffb8d8f5d9 [ 16.316167][ C0] RDX: 0000000000000000 RSI: ffffffffb988f4e4 RDI: ffffffffb9053be0 [ 16.316169][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 16.316170][ C0] R10: ffff8880360337d3 R11: ffffffffb9a11288 R12: 0000000000000000 [ 16.316172][ C0] R13: ffffffffb9a1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 16.316176][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.316181][ C0] default_idle+0x9/0x10 [ 16.316183][ C0] default_idle_call+0x6d/0xb0 [ 16.316186][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 16.316189][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.316193][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.316198][ C0] do_idle+0xf6/0x160 [ 16.316201][ C0] cpu_startup_entry+0x54/0x60 [ 16.316204][ C0] rest_init+0x14b/0x260 [ 16.316208][ C0] start_kernel+0x350/0x410 [ 16.316212][ C0] x86_64_start_reservations+0x18/0x30 [ 16.316217][ C0] x86_64_start_kernel+0xf8/0x150 [ 16.316221][ C0] common_startup_64+0x13e/0x148 [ 16.316230][ C0] [ 16.337864][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.338413][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 16.338964][ C0] preempt_count: 101, expected: 0 [ 16.339206][ C0] RCU nest depth: 0, expected: 0 [ 16.339573][ C0] INFO: lockdep is turned off. [ 16.339827][ C0] Preemption disabled at: [ 16.339829][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 16.340369][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.340374][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.340376][ C0] Call Trace: [ 16.340378][ C0] [ 16.340379][ C0] dump_stack_lvl+0xb0/0xd0 [ 16.340385][ C0] __might_resched+0x360/0x5a0 [ 16.340392][ C0] down_write+0x72/0x210 [ 16.340396][ C0] ? __pfx_down_write+0x10/0x10 [ 16.340399][ C0] ? simple_recursive_removal+0x33/0x610 [ 16.340403][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.340408][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.340413][ C0] simple_recursive_removal+0x6a/0x610 [ 16.340416][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.340419][ C0] ? __pfx_remove_one+0x10/0x10 [ 16.340425][ C0] debugfs_remove+0x44/0x70 [ 16.340428][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 16.340434][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.340437][ C0] ? __sk_destruct+0x383/0x780 [ 16.340442][ C0] ? rcu_do_batch+0x34c/0xf20 [ 16.340446][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.340449][ C0] ? irq_exit_rcu+0xe/0x30 [ 16.340454][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.340458][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.340461][ C0] ? pv_native_safe_halt+0xf/0x20 [ 16.340465][ C0] ? default_idle+0x9/0x10 [ 16.340468][ C0] ? default_idle_call+0x6d/0xb0 [ 16.340470][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.340474][ C0] ? do_idle+0xf6/0x160 [ 16.340476][ C0] ? cpu_startup_entry+0x54/0x60 [ 16.340478][ C0] ? rest_init+0x14b/0x260 [ 16.340481][ C0] ? start_kernel+0x350/0x410 [ 16.340488][ C0] __put_net+0x19/0x60 [ 16.340491][ C0] __sk_destruct+0x58a/0x780 [ 16.340495][ C0] ? rcu_do_batch+0x34a/0xf20 [ 16.340498][ C0] rcu_do_batch+0x34c/0xf20 [ 16.340501][ C0] ? find_held_lock+0x2b/0x80 [ 16.340507][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.340510][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.340515][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.340518][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.340523][ C0] rcu_core+0x2bb/0x500 [ 16.340527][ C0] handle_softirqs+0x218/0x620 [ 16.340532][ C0] __irq_exit_rcu+0xfa/0x160 [ 16.340535][ C0] irq_exit_rcu+0xe/0x30 [ 16.340538][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.340541][ C0] [ 16.340542][ C0] [ 16.340544][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.340547][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.340551][ C0] Code: a2 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 47 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 [ 16.340553][ C0] RSP: 0018:ffffffffb9a07df8 EFLAGS: 00000246 [ 16.340557][ C0] RAX: 0000000000073447 RBX: 1ffffffff7340fc3 RCX: ffffffffb8d8f5d9 [ 16.340559][ C0] RDX: 0000000000000000 RSI: ffffffffb988f4e4 RDI: ffffffffb9053be0 [ 16.340560][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 16.340562][ C0] R10: ffff8880360337d3 R11: ffffffffb9a11288 R12: 0000000000000000 [ 16.340564][ C0] R13: ffffffffb9a1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 16.340567][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.340572][ C0] default_idle+0x9/0x10 [ 16.340575][ C0] default_idle_call+0x6d/0xb0 [ 16.340577][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 16.340580][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.340584][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.340589][ C0] do_idle+0xf6/0x160 [ 16.340593][ C0] cpu_startup_entry+0x54/0x60 [ 16.340595][ C0] rest_init+0x14b/0x260 [ 16.340599][ C0] start_kernel+0x350/0x410 [ 16.340603][ C0] x86_64_start_reservations+0x18/0x30 [ 16.340608][ C0] x86_64_start_kernel+0xf8/0x150 [ 16.340612][ C0] common_startup_64+0x13e/0x148 [ 16.340620][ C0] [ 18.403043][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.403398][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 18.403698][ C3] preempt_count: 100, expected: 0 [ 18.403885][ C3] RCU nest depth: 0, expected: 0 [ 18.404062][ C3] INFO: lockdep is turned off. [ 18.404228][ C3] Preemption disabled at: [ 18.404229][ C3] [] handle_softirqs+0xe5/0x620 [ 18.404588][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 18.404594][ C3] Tainted: [W]=WARN [ 18.404595][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.404598][ C3] Call Trace: [ 18.404600][ C3] [ 18.404602][ C3] dump_stack_lvl+0xb0/0xd0 [ 18.404613][ C3] __might_resched+0x360/0x5a0 [ 18.404620][ C3] down_write+0x72/0x210 [ 18.404626][ C3] ? __pfx_down_write+0x10/0x10 [ 18.404629][ C3] ? simple_recursive_removal+0x33/0x610 [ 18.404635][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.404641][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 18.404648][ C3] simple_recursive_removal+0x6a/0x610 [ 18.404651][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 18.404654][ C3] ? __pfx_remove_one+0x10/0x10 [ 18.404661][ C3] debugfs_remove+0x44/0x70 [ 18.404665][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 18.404672][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.404676][ C3] ? __sk_destruct+0x383/0x780 [ 18.404683][ C3] ? rcu_do_batch+0x34c/0xf20 [ 18.404686][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.404690][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 18.404695][ C3] ? kthread+0x37e/0x600 [ 18.404698][ C3] ? ret_from_fork+0x240/0x320 [ 18.404703][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 18.404710][ C3] ? migrate_enable+0x1f2/0x270 [ 18.404715][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 18.404719][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 18.404724][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.404729][ C3] __put_net+0x19/0x60 [ 18.404734][ C3] __sk_destruct+0x58a/0x780 [ 18.404738][ C3] ? rcu_do_batch+0x34a/0xf20 [ 18.404740][ C3] rcu_do_batch+0x34c/0xf20 [ 18.404745][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.404748][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.404751][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 18.404760][ C3] rcu_core+0x2bb/0x500 [ 18.404766][ C3] handle_softirqs+0x218/0x620 [ 18.404770][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 18.404774][ C3] run_ksoftirqd+0x3f/0x70 [ 18.404776][ C3] smpboot_thread_fn+0x30a/0x960 [ 18.404780][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 18.404784][ C3] kthread+0x37e/0x600 [ 18.404787][ C3] ? __pfx_kthread+0x10/0x10 [ 18.404789][ C3] ? ret_from_fork+0x1b/0x320 [ 18.404792][ C3] ? __lock_release+0x5d/0x170 [ 18.404795][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.404798][ C3] ? __pfx_kthread+0x10/0x10 [ 18.404804][ C3] ret_from_fork+0x240/0x320 [ 18.404807][ C3] ? __pfx_kthread+0x10/0x10 [ 18.404809][ C3] ret_from_fork_asm+0x1a/0x30 [ 18.404817][ C3]