[ 14.977619][ C3] [ 14.977811][ C3] ================================ [ 14.977977][ C3] WARNING: inconsistent lock state [ 14.978140][ C3] 6.15.0-rc5-virtme #1 Not tainted [ 14.978303][ C3] -------------------------------- [ 14.978466][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.978669][ C3] ksoftirqd/3/32 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.978874][ C3] ffffffffae5bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.979166][ C3] {SOFTIRQ-ON-W} state was registered at: [ 14.979333][ C3] __lock_acquire+0x3eb/0x9d0 [ 14.979505][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.979680][ C3] _raw_spin_lock+0x33/0x40 [ 14.979847][ C3] simple_pin_fs+0x24/0x150 [ 14.980012][ C3] start_creating.part.0+0x3f/0x2f0 [ 14.980179][ C3] debugfs_create_dir+0x6a/0x540 [ 14.980343][ C3] component_debug_init+0x17/0x30 [ 14.980511][ C3] do_one_initcall+0x8c/0x1e0 [ 14.980677][ C3] do_initcalls+0x176/0x280 [ 14.980844][ C3] kernel_init_freeable+0x22d/0x300 [ 14.981008][ C3] kernel_init+0x20/0x200 [ 14.981173][ C3] ret_from_fork+0x31/0x70 [ 14.981339][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.981506][ C3] irq event stamp: 182284 [ 14.981631][ C3] hardirqs last enabled at (182284): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.981965][ C3] hardirqs last disabled at (182283): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.982292][ C3] softirqs last enabled at (181060): [] handle_softirqs+0x358/0x620 [ 14.982586][ C3] softirqs last disabled at (181071): [] run_ksoftirqd+0x3f/0x70 [ 14.982880][ C3] [ 14.982880][ C3] other info that might help us debug this: [ 14.983123][ C3] Possible unsafe locking scenario: [ 14.983123][ C3] [ 14.983361][ C3] CPU0 [ 14.983483][ C3] ---- [ 14.983606][ C3] lock(pin_fs_lock); [ 14.983731][ C3] [ 14.983853][ C3] lock(pin_fs_lock); [ 14.983976][ C3] [ 14.983976][ C3] *** DEADLOCK *** [ 14.983976][ C3] [ 14.984217][ C3] 1 lock held by ksoftirqd/3/32: [ 14.984396][ C3] #0: ffffffffae374480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.984695][ C3] [ 14.984695][ C3] stack backtrace: [ 14.984901][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.984906][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.984908][ C3] Call Trace: [ 14.984910][ C3] [ 14.984912][ C3] dump_stack_lvl+0x82/0xd0 [ 14.984918][ C3] print_usage_bug.part.0+0x25f/0x360 [ 14.984923][ C3] mark_lock_irq+0x343/0x400 [ 14.984928][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.984934][ C3] ? save_trace+0x52/0x170 [ 14.984938][ C3] mark_lock+0x174/0x2f0 [ 14.984942][ C3] mark_usage+0x46/0x150 [ 14.984945][ C3] __lock_acquire+0x3eb/0x9d0 [ 14.984951][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.984954][ C3] ? simple_pin_fs+0x24/0x150 [ 14.984958][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.984964][ C3] ? lock_acquire+0x10c/0x170 [ 14.984967][ C3] ? simple_pin_fs+0x24/0x150 [ 14.984971][ C3] _raw_spin_lock+0x33/0x40 [ 14.984974][ C3] ? simple_pin_fs+0x24/0x150 [ 14.984977][ C3] simple_pin_fs+0x24/0x150 [ 14.984981][ C3] debugfs_remove+0x35/0x70 [ 14.984984][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.984989][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.984992][ C3] ? __sk_destruct+0x383/0x780 [ 14.984997][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.985000][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.985003][ C3] ? smpboot_thread_fn+0x307/0x960 [ 14.985006][ C3] ? kthread+0x37b/0x600 [ 14.985009][ C3] ? ret_from_fork+0x31/0x70 [ 14.985013][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 14.985016][ C3] ? migrate_enable+0x1f2/0x270 [ 14.985020][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 14.985026][ C3] __put_net+0x19/0x60 [ 14.985029][ C3] __sk_destruct+0x58a/0x780 [ 14.985033][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.985036][ C3] rcu_do_batch+0x34c/0xf20 [ 14.985040][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.985044][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.985048][ C3] ? note_gp_changes+0x182/0x1e0 [ 14.985051][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.985057][ C3] rcu_core+0x2bb/0x500 [ 14.985061][ C3] handle_softirqs+0x218/0x620 [ 14.985064][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.985067][ C3] run_ksoftirqd+0x3f/0x70 [ 14.985069][ C3] smpboot_thread_fn+0x307/0x960 [ 14.985072][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.985076][ C3] kthread+0x37b/0x600 [ 14.985079][ C3] ? __pfx_kthread+0x10/0x10 [ 14.985082][ C3] ? ret_from_fork+0x1b/0x70 [ 14.985085][ C3] ? __lock_release+0x5d/0x170 [ 14.985089][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.985092][ C3] ? __pfx_kthread+0x10/0x10 [ 14.985095][ C3] ret_from_fork+0x31/0x70 [ 14.985099][ C3] ? __pfx_kthread+0x10/0x10 [ 14.985102][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.985108][ C3] [ 14.994266][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.994533][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 14.994815][ C3] preempt_count: 100, expected: 0 [ 14.994967][ C3] RCU nest depth: 0, expected: 0 [ 14.995126][ C3] INFO: lockdep is turned off. [ 14.995281][ C3] Preemption disabled at: [ 14.995283][ C3] [] handle_softirqs+0xe5/0x620 [ 14.995591][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.995596][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.995597][ C3] Call Trace: [ 14.995599][ C3] [ 14.995600][ C3] dump_stack_lvl+0xb0/0xd0 [ 14.995605][ C3] __might_resched+0x360/0x5a0 [ 14.995610][ C3] down_write+0x72/0x210 [ 14.995613][ C3] ? __pfx_down_write+0x10/0x10 [ 14.995616][ C3] ? simple_recursive_removal+0x3a/0x860 [ 14.995619][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.995624][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.995629][ C3] simple_recursive_removal+0x166/0x860 [ 14.995631][ C3] ? __pfx_remove_one+0x10/0x10 [ 14.995634][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.995638][ C3] debugfs_remove+0x44/0x70 [ 14.995641][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.995645][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.995648][ C3] ? __sk_destruct+0x383/0x780 [ 14.995652][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.995655][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.995658][ C3] ? smpboot_thread_fn+0x307/0x960 [ 14.995661][ C3] ? kthread+0x37b/0x600 [ 14.995665][ C3] ? ret_from_fork+0x31/0x70 [ 14.995669][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 14.995672][ C3] ? migrate_enable+0x1f2/0x270 [ 14.995676][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 14.995681][ C3] __put_net+0x19/0x60 [ 14.995684][ C3] __sk_destruct+0x58a/0x780 [ 14.995688][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.995691][ C3] rcu_do_batch+0x34c/0xf20 [ 14.995696][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.995700][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.995703][ C3] ? note_gp_changes+0x182/0x1e0 [ 14.995707][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.995712][ C3] rcu_core+0x2bb/0x500 [ 14.995715][ C3] handle_softirqs+0x218/0x620 [ 14.995718][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 14.995724][ C3] run_ksoftirqd+0x3f/0x70 [ 14.995726][ C3] smpboot_thread_fn+0x307/0x960 [ 14.995729][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 14.995732][ C3] kthread+0x37b/0x600 [ 14.995736][ C3] ? __pfx_kthread+0x10/0x10 [ 14.995739][ C3] ? ret_from_fork+0x1b/0x70 [ 14.995742][ C3] ? __lock_release+0x5d/0x170 [ 14.995746][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.995749][ C3] ? __pfx_kthread+0x10/0x10 [ 14.995753][ C3] ret_from_fork+0x31/0x70 [ 14.995756][ C3] ? __pfx_kthread+0x10/0x10 [ 14.995759][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.995765][ C3] [ 16.824995][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.825422][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 16.825782][ C2] preempt_count: 101, expected: 0 [ 16.825990][ C2] RCU nest depth: 0, expected: 0 [ 16.826183][ C2] INFO: lockdep is turned off. [ 16.826375][ C2] Preemption disabled at: [ 16.826376][ C2] [<0000000000000000>] 0x0 [ 16.826738][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.826743][ C2] Tainted: [W]=WARN [ 16.826744][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.826747][ C2] Call Trace: [ 16.826749][ C2] [ 16.826751][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.826759][ C2] __might_resched+0x360/0x5a0 [ 16.826765][ C2] down_write+0x72/0x210 [ 16.826770][ C2] ? __pfx_down_write+0x10/0x10 [ 16.826772][ C2] ? simple_recursive_removal+0x3a/0x860 [ 16.826776][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.826782][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.826787][ C2] simple_recursive_removal+0x166/0x860 [ 16.826789][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.826794][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.826798][ C2] debugfs_remove+0x44/0x70 [ 16.826801][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.826805][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.826808][ C2] ? __sk_destruct+0x383/0x780 [ 16.826814][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.826817][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.826820][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.826824][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.826828][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.826831][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.826834][ C2] ? default_idle+0x9/0x10 [ 16.826836][ C2] ? default_idle_call+0x6d/0xb0 [ 16.826839][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.826843][ C2] ? do_idle+0xf6/0x160 [ 16.826846][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.826849][ C2] ? start_secondary+0x213/0x2a0 [ 16.826854][ C2] ? common_startup_64+0x13e/0x148 [ 16.826858][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.826862][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.826866][ C2] __put_net+0x19/0x60 [ 16.826869][ C2] __sk_destruct+0x58a/0x780 [ 16.826873][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.826876][ C2] rcu_do_batch+0x34c/0xf20 [ 16.826897][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.826901][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.826906][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.826911][ C2] rcu_core+0x2bb/0x500 [ 16.826915][ C2] handle_softirqs+0x218/0x620 [ 16.826920][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.826922][ C2] irq_exit_rcu+0xe/0x30 [ 16.826924][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.826928][ C2] [ 16.826929][ C2] [ 16.826930][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.826933][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.826937][ 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 [ 16.826940][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 16.826943][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffffad355a19 [ 16.826945][ C2] RDX: ffffed1006c2667b RSI: ffffffffad650c60 RDI: ffffffffaab84d8f [ 16.826947][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c2667a [ 16.826949][ C2] R10: ffff8880361333d3 R11: ffffffffb0cc9fa0 R12: 0000000000000000 [ 16.826951][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 16.826955][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.826959][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.826964][ C2] default_idle+0x9/0x10 [ 16.826966][ C2] default_idle_call+0x6d/0xb0 [ 16.826968][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.826972][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.826977][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.826981][ C2] do_idle+0xf6/0x160 [ 16.826985][ C2] cpu_startup_entry+0x54/0x60 [ 16.826989][ C2] start_secondary+0x213/0x2a0 [ 16.826992][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.826997][ C2] common_startup_64+0x13e/0x148 [ 16.827003][ C2]