[ 17.909193][ C0] [ 17.909368][ C0] ================================ [ 17.909571][ C0] WARNING: inconsistent lock state [ 17.909755][ C0] 6.15.0-rc5-virtme #1 Not tainted [ 17.909934][ C0] -------------------------------- [ 17.910193][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 17.910417][ C0] ksoftirqd/0/14 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 17.910657][ C0] ffffffffbcbbf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 17.911067][ C0] {SOFTIRQ-ON-W} state was registered at: [ 17.911246][ C0] __lock_acquire+0x3eb/0x9d0 [ 17.911479][ C0] lock_acquire.part.0+0xb6/0x240 [ 17.911659][ C0] _raw_spin_lock+0x33/0x40 [ 17.911843][ C0] simple_pin_fs+0x24/0x150 [ 17.912025][ C0] start_creating.part.0+0x3f/0x2f0 [ 17.912221][ C0] debugfs_create_dir+0x6a/0x540 [ 17.912471][ C0] component_debug_init+0x17/0x30 [ 17.912656][ C0] do_one_initcall+0x8c/0x1e0 [ 17.912860][ C0] do_initcalls+0x176/0x280 [ 17.913049][ C0] kernel_init_freeable+0x22d/0x300 [ 17.913235][ C0] kernel_init+0x20/0x200 [ 17.913420][ C0] ret_from_fork+0x31/0x70 [ 17.913597][ C0] ret_from_fork_asm+0x1a/0x30 [ 17.913772][ C0] irq event stamp: 204368 [ 17.913908][ C0] hardirqs last enabled at (204368): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.914381][ C0] hardirqs last disabled at (204367): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 17.914785][ C0] softirqs last enabled at (203186): [] handle_softirqs+0x358/0x620 [ 17.915105][ C0] softirqs last disabled at (203195): [] run_ksoftirqd+0x3f/0x70 [ 17.915488][ C0] [ 17.915488][ C0] other info that might help us debug this: [ 17.915750][ C0] Possible unsafe locking scenario: [ 17.915750][ C0] [ 17.916066][ C0] CPU0 [ 17.916250][ C0] ---- [ 17.916383][ C0] lock(pin_fs_lock); [ 17.916574][ C0] [ 17.916715][ C0] lock(pin_fs_lock); [ 17.916848][ C0] [ 17.916848][ C0] *** DEADLOCK *** [ 17.916848][ C0] [ 17.917131][ C0] 1 lock held by ksoftirqd/0/14: [ 17.917333][ C0] #0: ffffffffbc974480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 17.917632][ C0] [ 17.917632][ C0] stack backtrace: [ 17.917875][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 17.917880][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.917881][ C0] Call Trace: [ 17.917883][ C0] [ 17.917886][ C0] dump_stack_lvl+0x82/0xd0 [ 17.917892][ C0] print_usage_bug.part.0+0x25f/0x360 [ 17.917899][ C0] mark_lock_irq+0x343/0x400 [ 17.917904][ C0] ? __pfx_unwind_next_frame+0x10/0x10 [ 17.917910][ C0] ? save_trace+0x52/0x170 [ 17.917914][ C0] mark_lock+0x174/0x2f0 [ 17.917918][ C0] mark_usage+0x46/0x150 [ 17.917922][ C0] __lock_acquire+0x3eb/0x9d0 [ 17.917927][ C0] lock_acquire.part.0+0xb6/0x240 [ 17.917931][ C0] ? simple_pin_fs+0x24/0x150 [ 17.917936][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.917942][ C0] ? lock_acquire+0x10c/0x170 [ 17.917945][ C0] ? simple_pin_fs+0x24/0x150 [ 17.917950][ C0] _raw_spin_lock+0x33/0x40 [ 17.917953][ C0] ? simple_pin_fs+0x24/0x150 [ 17.917957][ C0] simple_pin_fs+0x24/0x150 [ 17.917960][ C0] debugfs_remove+0x35/0x70 [ 17.917965][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 17.917970][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.917973][ C0] ? __sk_destruct+0x383/0x780 [ 17.917978][ C0] ? rcu_do_batch+0x34c/0xf20 [ 17.917982][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.917984][ C0] ? smpboot_thread_fn+0x307/0x960 [ 17.917988][ C0] ? kthread+0x37b/0x600 [ 17.917991][ C0] ? ret_from_fork+0x31/0x70 [ 17.917997][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 17.918001][ C0] ? migrate_enable+0x1f2/0x270 [ 17.918005][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 17.918011][ C0] __put_net+0x19/0x60 [ 17.918015][ C0] __sk_destruct+0x58a/0x780 [ 17.918019][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.918022][ C0] rcu_do_batch+0x34c/0xf20 [ 17.918027][ C0] ? find_held_lock+0x2b/0x80 [ 17.918032][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.918038][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.918043][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.918051][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.918057][ C0] rcu_core+0x2bb/0x500 [ 17.918060][ C0] handle_softirqs+0x218/0x620 [ 17.918065][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 17.918068][ C0] run_ksoftirqd+0x3f/0x70 [ 17.918070][ C0] smpboot_thread_fn+0x307/0x960 [ 17.918074][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 17.918077][ C0] kthread+0x37b/0x600 [ 17.918080][ C0] ? __pfx_kthread+0x10/0x10 [ 17.918083][ C0] ? ret_from_fork+0x1b/0x70 [ 17.918086][ C0] ? __lock_release+0x5d/0x170 [ 17.918090][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.918094][ C0] ? __pfx_kthread+0x10/0x10 [ 17.918097][ C0] ret_from_fork+0x31/0x70 [ 17.918101][ C0] ? __pfx_kthread+0x10/0x10 [ 17.918104][ C0] ret_from_fork_asm+0x1a/0x30 [ 17.918110][ C0] [ 17.929680][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.929972][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 14, name: ksoftirqd/0 [ 17.930285][ C0] preempt_count: 100, expected: 0 [ 17.930455][ C0] RCU nest depth: 0, expected: 0 [ 17.930624][ C0] INFO: lockdep is turned off. [ 17.930793][ C0] Preemption disabled at: [ 17.930794][ C0] [] handle_softirqs+0xe5/0x620 [ 17.931151][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 17.931156][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.931158][ C0] Call Trace: [ 17.931161][ C0] [ 17.931163][ C0] dump_stack_lvl+0xb0/0xd0 [ 17.931170][ C0] __might_resched+0x360/0x5a0 [ 17.931177][ C0] down_write+0x72/0x210 [ 17.931180][ C0] ? __pfx_down_write+0x10/0x10 [ 17.931183][ C0] ? simple_recursive_removal+0x3a/0x860 [ 17.931187][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.931193][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.931197][ C0] simple_recursive_removal+0x166/0x860 [ 17.931199][ C0] ? __pfx_remove_one+0x10/0x10 [ 17.931203][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.931208][ C0] debugfs_remove+0x44/0x70 [ 17.931210][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 17.931216][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.931219][ C0] ? __sk_destruct+0x383/0x780 [ 17.931224][ C0] ? rcu_do_batch+0x34c/0xf20 [ 17.931229][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.931231][ C0] ? smpboot_thread_fn+0x307/0x960 [ 17.931235][ C0] ? kthread+0x37b/0x600 [ 17.931240][ C0] ? ret_from_fork+0x31/0x70 [ 17.931245][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 17.931250][ C0] ? migrate_enable+0x1f2/0x270 [ 17.931254][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 17.931260][ C0] __put_net+0x19/0x60 [ 17.931264][ C0] __sk_destruct+0x58a/0x780 [ 17.931267][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.931270][ C0] rcu_do_batch+0x34c/0xf20 [ 17.931274][ C0] ? find_held_lock+0x2b/0x80 [ 17.931279][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.931283][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.931287][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.931292][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.931296][ C0] rcu_core+0x2bb/0x500 [ 17.931299][ C0] handle_softirqs+0x218/0x620 [ 17.931303][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 17.931306][ C0] run_ksoftirqd+0x3f/0x70 [ 17.931308][ C0] smpboot_thread_fn+0x307/0x960 [ 17.931311][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 17.931315][ C0] kthread+0x37b/0x600 [ 17.931318][ C0] ? __pfx_kthread+0x10/0x10 [ 17.931321][ C0] ? ret_from_fork+0x1b/0x70 [ 17.931324][ C0] ? __lock_release+0x5d/0x170 [ 17.931328][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.931331][ C0] ? __pfx_kthread+0x10/0x10 [ 17.931335][ C0] ret_from_fork+0x31/0x70 [ 17.931338][ C0] ? __pfx_kthread+0x10/0x10 [ 17.931341][ C0] ret_from_fork_asm+0x1a/0x30 [ 17.931347][ C0] [ 21.567614][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 21.568048][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 21.568398][ C2] preempt_count: 101, expected: 0 [ 21.568606][ C2] RCU nest depth: 0, expected: 0 [ 21.568831][ C2] INFO: lockdep is turned off. [ 21.569025][ C2] Preemption disabled at: [ 21.569027][ C2] [<0000000000000000>] 0x0 [ 21.569429][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 21.569435][ C2] Tainted: [W]=WARN [ 21.569437][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.569439][ C2] Call Trace: [ 21.569441][ C2] [ 21.569445][ C2] dump_stack_lvl+0xb0/0xd0 [ 21.569457][ C2] __might_resched+0x360/0x5a0 [ 21.569465][ C2] down_write+0x72/0x210 [ 21.569469][ C2] ? __pfx_down_write+0x10/0x10 [ 21.569472][ C2] ? simple_recursive_removal+0x3a/0x860 [ 21.569478][ C2] ? rcu_is_watching+0x12/0xc0 [ 21.569485][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 21.569491][ C2] simple_recursive_removal+0x166/0x860 [ 21.569494][ C2] ? __pfx_remove_one+0x10/0x10 [ 21.569499][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 21.569504][ C2] debugfs_remove+0x44/0x70 [ 21.569507][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 21.569513][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 21.569516][ C2] ? __sk_destruct+0x383/0x780 [ 21.569524][ C2] ? rcu_do_batch+0x34c/0xf20 [ 21.569529][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 21.569532][ C2] ? irq_exit_rcu+0xe/0x30 [ 21.569537][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 21.569545][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 21.569550][ C2] ? pv_native_safe_halt+0xf/0x20 [ 21.569555][ C2] ? default_idle+0x9/0x10 [ 21.569559][ C2] ? default_idle_call+0x6d/0xb0 [ 21.569563][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 21.569570][ C2] ? do_idle+0xf6/0x160 [ 21.569574][ C2] ? cpu_startup_entry+0x54/0x60 [ 21.569578][ C2] ? start_secondary+0x213/0x2a0 [ 21.569587][ C2] ? common_startup_64+0x13e/0x148 [ 21.569593][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 21.569599][ C2] ? rcu_is_watching+0x12/0xc0 [ 21.569604][ C2] __put_net+0x19/0x60 [ 21.569608][ C2] __sk_destruct+0x58a/0x780 [ 21.569613][ C2] ? rcu_do_batch+0x34a/0xf20 [ 21.569616][ C2] rcu_do_batch+0x34c/0xf20 [ 21.569621][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 21.569625][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 21.569631][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 21.569636][ C2] rcu_core+0x2bb/0x500 [ 21.569640][ C2] handle_softirqs+0x218/0x620 [ 21.569645][ C2] __irq_exit_rcu+0xfa/0x160 [ 21.569648][ C2] irq_exit_rcu+0xe/0x30 [ 21.569651][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 21.569654][ C2] [ 21.569655][ C2] [ 21.569657][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 21.569660][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 21.569665][ 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 [ 21.569668][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 21.569672][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffffbb955a19 [ 21.569674][ C2] RDX: ffffed1006c2667b RSI: ffffffffbbc50c60 RDI: ffffffffb9184d8f [ 21.569676][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c2667a [ 21.569678][ C2] R10: ffff8880361333d3 R11: ffff888001d5cb58 R12: 0000000000000000 [ 21.569680][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 21.569684][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 21.569689][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 21.569693][ C2] default_idle+0x9/0x10 [ 21.569695][ C2] default_idle_call+0x6d/0xb0 [ 21.569698][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 21.569702][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 21.569706][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 21.569711][ C2] do_idle+0xf6/0x160 [ 21.569715][ C2] cpu_startup_entry+0x54/0x60 [ 21.569719][ C2] start_secondary+0x213/0x2a0 [ 21.569723][ C2] ? __pfx_start_secondary+0x10/0x10 [ 21.569728][ C2] common_startup_64+0x13e/0x148 [ 21.569734][ C2]