[ 17.830650][ C3] [ 17.830793][ C3] ================================ [ 17.831039][ C3] WARNING: inconsistent lock state [ 17.831236][ C3] 6.15.0-virtme #1 Not tainted [ 17.831454][ C3] -------------------------------- [ 17.831653][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 17.831874][ C3] ksoftirqd/3/32 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 17.832103][ C3] ffffffff9fdc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 17.832425][ C3] {SOFTIRQ-ON-W} state was registered at: [ 17.832607][ C3] __lock_acquire+0x20b/0x7e0 [ 17.832795][ C3] lock_acquire.part.0+0xb6/0x240 [ 17.832969][ C3] _raw_spin_lock+0x33/0x40 [ 17.833145][ C3] simple_pin_fs+0x24/0x150 [ 17.833321][ C3] start_creating.part.0+0x52/0x310 [ 17.833499][ C3] debugfs_create_dir+0x6a/0x540 [ 17.833689][ C3] component_debug_init+0x17/0x30 [ 17.833884][ C3] do_one_initcall+0x8f/0x1e0 [ 17.834061][ C3] do_initcalls+0x176/0x280 [ 17.834235][ C3] kernel_init_freeable+0x22d/0x300 [ 17.834410][ C3] kernel_init+0x20/0x200 [ 17.834603][ C3] ret_from_fork+0x240/0x320 [ 17.834791][ C3] ret_from_fork_asm+0x1a/0x30 [ 17.834996][ C3] irq event stamp: 178334 [ 17.835140][ C3] hardirqs last enabled at (178334): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.835496][ C3] hardirqs last disabled at (178333): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 17.835849][ C3] softirqs last enabled at (177914): [] handle_softirqs+0x358/0x620 [ 17.836168][ C3] softirqs last disabled at (177925): [] run_ksoftirqd+0x3f/0x70 [ 17.836469][ C3] [ 17.836469][ C3] other info that might help us debug this: [ 17.836750][ C3] Possible unsafe locking scenario: [ 17.836750][ C3] [ 17.837007][ C3] CPU0 [ 17.837137][ C3] ---- [ 17.837277][ C3] lock(pin_fs_lock); [ 17.837414][ C3] [ 17.837549][ C3] lock(pin_fs_lock); [ 17.837693][ C3] [ 17.837693][ C3] *** DEADLOCK *** [ 17.837693][ C3] [ 17.837955][ C3] 1 lock held by ksoftirqd/3/32: [ 17.838154][ C3] #0: ffffffff9fb774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 17.838482][ C3] [ 17.838482][ C3] stack backtrace: [ 17.838706][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 17.838712][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.838714][ C3] Call Trace: [ 17.838716][ C3] [ 17.838720][ C3] dump_stack_lvl+0x82/0xd0 [ 17.838727][ C3] print_usage_bug.part.0+0x25f/0x360 [ 17.838733][ C3] mark_lock_irq+0x343/0x400 [ 17.838738][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 17.838744][ C3] ? save_trace+0x52/0x170 [ 17.838750][ C3] mark_lock+0x174/0x2f0 [ 17.838754][ C3] mark_usage+0x46/0x150 [ 17.838757][ C3] __lock_acquire+0x20b/0x7e0 [ 17.838761][ C3] ? __lock_acquire+0x44d/0x7e0 [ 17.838765][ C3] lock_acquire.part.0+0xb6/0x240 [ 17.838768][ C3] ? simple_pin_fs+0x24/0x150 [ 17.838774][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.838779][ C3] ? lock_acquire+0x10c/0x170 [ 17.838781][ C3] ? simple_pin_fs+0x24/0x150 [ 17.838786][ C3] _raw_spin_lock+0x33/0x40 [ 17.838789][ C3] ? simple_pin_fs+0x24/0x150 [ 17.838792][ C3] simple_pin_fs+0x24/0x150 [ 17.838796][ C3] debugfs_remove+0x35/0x70 [ 17.838802][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 17.838812][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.838817][ C3] ? __sk_destruct+0x383/0x780 [ 17.838827][ C3] ? rcu_do_batch+0x34c/0xf20 [ 17.838831][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.838836][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 17.838843][ C3] ? kthread+0x37e/0x600 [ 17.838848][ C3] ? ret_from_fork+0x240/0x320 [ 17.838853][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 17.838858][ C3] ? migrate_enable+0x1f2/0x270 [ 17.838865][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 17.838871][ C3] __put_net+0x19/0x60 [ 17.838876][ C3] __sk_destruct+0x58a/0x780 [ 17.838880][ C3] ? rcu_do_batch+0x34a/0xf20 [ 17.838883][ C3] rcu_do_batch+0x34c/0xf20 [ 17.838888][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.838892][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.838895][ C3] ? note_gp_changes+0x182/0x1e0 [ 17.838899][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.838903][ C3] rcu_core+0x2bb/0x500 [ 17.838908][ C3] handle_softirqs+0x218/0x620 [ 17.838912][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 17.838916][ C3] run_ksoftirqd+0x3f/0x70 [ 17.838918][ C3] smpboot_thread_fn+0x30a/0x960 [ 17.838922][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 17.838926][ C3] kthread+0x37e/0x600 [ 17.838929][ C3] ? __pfx_kthread+0x10/0x10 [ 17.838931][ C3] ? ret_from_fork+0x1b/0x320 [ 17.838934][ C3] ? __lock_release+0x5d/0x170 [ 17.838937][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.838940][ C3] ? __pfx_kthread+0x10/0x10 [ 17.838943][ C3] ret_from_fork+0x240/0x320 [ 17.838946][ C3] ? __pfx_kthread+0x10/0x10 [ 17.838948][ C3] ret_from_fork_asm+0x1a/0x30 [ 17.838955][ C3] [ 17.848993][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.849287][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 17.849576][ C3] preempt_count: 100, expected: 0 [ 17.849752][ C3] RCU nest depth: 0, expected: 0 [ 17.849930][ C3] INFO: lockdep is turned off. [ 17.850093][ C3] Preemption disabled at: [ 17.850095][ C3] [] handle_softirqs+0xe5/0x620 [ 17.850429][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 17.850434][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.850436][ C3] Call Trace: [ 17.850438][ C3] [ 17.850440][ C3] dump_stack_lvl+0xb0/0xd0 [ 17.850449][ C3] __might_resched+0x360/0x5a0 [ 17.850457][ C3] down_write+0x72/0x210 [ 17.850462][ C3] ? __pfx_down_write+0x10/0x10 [ 17.850465][ C3] ? simple_recursive_removal+0x33/0x610 [ 17.850470][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.850475][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.850482][ C3] simple_recursive_removal+0x6a/0x610 [ 17.850485][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.850488][ C3] ? __pfx_remove_one+0x10/0x10 [ 17.850494][ C3] debugfs_remove+0x44/0x70 [ 17.850497][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 17.850504][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.850508][ C3] ? __sk_destruct+0x383/0x780 [ 17.850514][ C3] ? rcu_do_batch+0x34c/0xf20 [ 17.850517][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.850521][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 17.850524][ C3] ? kthread+0x37e/0x600 [ 17.850527][ C3] ? ret_from_fork+0x240/0x320 [ 17.850531][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 17.850536][ C3] ? migrate_enable+0x1f2/0x270 [ 17.850540][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 17.850546][ C3] __put_net+0x19/0x60 [ 17.850550][ C3] __sk_destruct+0x58a/0x780 [ 17.850554][ C3] ? rcu_do_batch+0x34a/0xf20 [ 17.850557][ C3] rcu_do_batch+0x34c/0xf20 [ 17.850562][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.850565][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.850568][ C3] ? note_gp_changes+0x182/0x1e0 [ 17.850572][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.850577][ C3] rcu_core+0x2bb/0x500 [ 17.850581][ C3] handle_softirqs+0x218/0x620 [ 17.850585][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 17.850588][ C3] run_ksoftirqd+0x3f/0x70 [ 17.850591][ C3] smpboot_thread_fn+0x30a/0x960 [ 17.850595][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 17.850599][ C3] kthread+0x37e/0x600 [ 17.850602][ C3] ? __pfx_kthread+0x10/0x10 [ 17.850604][ C3] ? ret_from_fork+0x1b/0x320 [ 17.850607][ C3] ? __lock_release+0x5d/0x170 [ 17.850610][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.850613][ C3] ? __pfx_kthread+0x10/0x10 [ 17.850617][ C3] ret_from_fork+0x240/0x320 [ 17.850619][ C3] ? __pfx_kthread+0x10/0x10 [ 17.850622][ C3] ret_from_fork_asm+0x1a/0x30 [ 17.850629][ C3] [ 20.791398][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 20.792089][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 20.792635][ C2] preempt_count: 101, expected: 0 [ 20.792961][ C2] RCU nest depth: 0, expected: 0 [ 20.793279][ C2] INFO: lockdep is turned off. [ 20.793590][ C2] Preemption disabled at: [ 20.793592][ C2] [<0000000000000000>] 0x0 [ 20.793989][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 20.793996][ C2] Tainted: [W]=WARN [ 20.793998][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.794001][ C2] Call Trace: [ 20.794003][ C2] [ 20.794005][ C2] dump_stack_lvl+0xb0/0xd0 [ 20.794017][ C2] __might_resched+0x360/0x5a0 [ 20.794026][ C2] down_write+0x72/0x210 [ 20.794031][ C2] ? __pfx_down_write+0x10/0x10 [ 20.794034][ C2] ? simple_recursive_removal+0x33/0x610 [ 20.794040][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.794046][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 20.794053][ C2] simple_recursive_removal+0x6a/0x610 [ 20.794056][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 20.794059][ C2] ? __pfx_remove_one+0x10/0x10 [ 20.794066][ C2] debugfs_remove+0x44/0x70 [ 20.794069][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 20.794077][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.794081][ C2] ? __sk_destruct+0x383/0x780 [ 20.794088][ C2] ? rcu_do_batch+0x34c/0xf20 [ 20.794092][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.794095][ C2] ? irq_exit_rcu+0xe/0x30 [ 20.794103][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.794109][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.794113][ C2] ? pv_native_safe_halt+0xf/0x20 [ 20.794117][ C2] ? default_idle+0x9/0x10 [ 20.794120][ C2] ? default_idle_call+0x6d/0xb0 [ 20.794123][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 20.794127][ C2] ? do_idle+0xf6/0x160 [ 20.794129][ C2] ? cpu_startup_entry+0x54/0x60 [ 20.794132][ C2] ? start_secondary+0x213/0x2a0 [ 20.794137][ C2] ? common_startup_64+0x13e/0x148 [ 20.794144][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 20.794149][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.794153][ C2] __put_net+0x19/0x60 [ 20.794158][ C2] __sk_destruct+0x58a/0x780 [ 20.794162][ C2] ? rcu_do_batch+0x34a/0xf20 [ 20.794165][ C2] rcu_do_batch+0x34c/0xf20 [ 20.794169][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.794173][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 20.794180][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 20.794187][ C2] rcu_core+0x2bb/0x500 [ 20.794192][ C2] handle_softirqs+0x218/0x620 [ 20.794198][ C2] __irq_exit_rcu+0xfa/0x160 [ 20.794201][ C2] irq_exit_rcu+0xe/0x30 [ 20.794204][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.794208][ C2] [ 20.794209][ C2] [ 20.794211][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.794213][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 20.794218][ 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 [ 20.794221][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 20.794225][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff9eb905d9 [ 20.794227][ C2] RDX: ffffed1006c266fb RSI: ffffffff9ee53b60 RDI: ffffffff9c38d18f [ 20.794229][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c266fa [ 20.794231][ C2] R10: ffff8880361337d3 R11: ffffffffa2490298 R12: 0000000000000000 [ 20.794232][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 20.794236][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 20.794240][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 20.794244][ C2] default_idle+0x9/0x10 [ 20.794246][ C2] default_idle_call+0x6d/0xb0 [ 20.794249][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 20.794252][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 20.794256][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 20.794261][ C2] do_idle+0xf6/0x160 [ 20.794264][ C2] cpu_startup_entry+0x54/0x60 [ 20.794267][ C2] start_secondary+0x213/0x2a0 [ 20.794270][ C2] ? __pfx_start_secondary+0x10/0x10 [ 20.794274][ C2] common_startup_64+0x13e/0x148 [ 20.794281][ C2]