[ 16.560534][ C3] [ 16.560688][ C3] ================================ [ 16.560876][ C3] WARNING: inconsistent lock state [ 16.561063][ C3] 6.15.0-rc5-virtme #1 Not tainted [ 16.561248][ C3] -------------------------------- [ 16.561435][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.561667][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.561898][ C3] ffffffff8ddbf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.562227][ C3] {SOFTIRQ-ON-W} state was registered at: [ 16.562427][ C3] __lock_acquire+0x3eb/0x9d0 [ 16.562619][ C3] lock_acquire.part.0+0xb6/0x240 [ 16.562800][ C3] _raw_spin_lock+0x33/0x40 [ 16.562981][ C3] simple_pin_fs+0x24/0x150 [ 16.563161][ C3] start_creating.part.0+0x3f/0x2f0 [ 16.563357][ C3] debugfs_create_dir+0x6a/0x540 [ 16.563539][ C3] component_debug_init+0x17/0x30 [ 16.563724][ C3] do_one_initcall+0x8c/0x1e0 [ 16.563905][ C3] do_initcalls+0x176/0x280 [ 16.564100][ C3] kernel_init_freeable+0x22d/0x300 [ 16.564279][ C3] kernel_init+0x20/0x200 [ 16.564463][ C3] ret_from_fork+0x31/0x70 [ 16.564657][ C3] ret_from_fork_asm+0x1a/0x30 [ 16.564837][ C3] irq event stamp: 255968 [ 16.564974][ C3] hardirqs last enabled at (255968): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.565338][ C3] hardirqs last disabled at (255967): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.565701][ C3] softirqs last enabled at (255414): [] handle_softirqs+0x358/0x620 [ 16.566176][ C3] softirqs last disabled at (255451): [] __irq_exit_rcu+0xfa/0x160 [ 16.566518][ C3] [ 16.566518][ C3] other info that might help us debug this: [ 16.566801][ C3] Possible unsafe locking scenario: [ 16.566801][ C3] [ 16.567074][ C3] CPU0 [ 16.567212][ C3] ---- [ 16.567348][ C3] lock(pin_fs_lock); [ 16.567486][ C3] [ 16.567622][ C3] lock(pin_fs_lock); [ 16.567760][ C3] [ 16.567760][ C3] *** DEADLOCK *** [ 16.567760][ C3] [ 16.568024][ C3] 1 lock held by swapper/3/0: [ 16.568204][ C3] #0: ffffffff8db74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.568535][ C3] [ 16.568535][ C3] stack backtrace: [ 16.568756][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.568762][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.568764][ C3] Call Trace: [ 16.568766][ C3] [ 16.568769][ C3] dump_stack_lvl+0x82/0xd0 [ 16.568775][ C3] print_usage_bug.part.0+0x25f/0x360 [ 16.568781][ C3] mark_lock_irq+0x343/0x400 [ 16.568786][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 16.568793][ C3] ? save_trace+0x52/0x170 [ 16.568797][ C3] mark_lock+0x174/0x2f0 [ 16.568801][ C3] mark_usage+0x46/0x150 [ 16.568805][ C3] __lock_acquire+0x3eb/0x9d0 [ 16.568810][ C3] lock_acquire.part.0+0xb6/0x240 [ 16.568814][ C3] ? simple_pin_fs+0x24/0x150 [ 16.568819][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.568826][ C3] ? lock_acquire+0x10c/0x170 [ 16.568829][ C3] ? simple_pin_fs+0x24/0x150 [ 16.568834][ C3] _raw_spin_lock+0x33/0x40 [ 16.568836][ C3] ? simple_pin_fs+0x24/0x150 [ 16.568840][ C3] simple_pin_fs+0x24/0x150 [ 16.568844][ C3] debugfs_remove+0x35/0x70 [ 16.568847][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 16.568853][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.568855][ C3] ? __sk_destruct+0x383/0x780 [ 16.568861][ C3] ? rcu_do_batch+0x34c/0xf20 [ 16.568864][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.568867][ C3] ? irq_exit_rcu+0xe/0x30 [ 16.568869][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.568873][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.568878][ C3] ? pv_native_safe_halt+0xf/0x20 [ 16.568881][ C3] ? default_idle+0x9/0x10 [ 16.568883][ C3] ? default_idle_call+0x6d/0xb0 [ 16.568885][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.568891][ C3] ? do_idle+0xf6/0x160 [ 16.568894][ C3] ? cpu_startup_entry+0x54/0x60 [ 16.568897][ C3] ? start_secondary+0x213/0x2a0 [ 16.568903][ C3] ? common_startup_64+0x13e/0x148 [ 16.568910][ C3] __put_net+0x19/0x60 [ 16.568914][ C3] __sk_destruct+0x58a/0x780 [ 16.568918][ C3] ? rcu_do_batch+0x34a/0xf20 [ 16.568921][ C3] rcu_do_batch+0x34c/0xf20 [ 16.568924][ C3] ? find_held_lock+0x2b/0x80 [ 16.568928][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.568932][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.568935][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.568939][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.568943][ C3] rcu_core+0x2bb/0x500 [ 16.568947][ C3] handle_softirqs+0x218/0x620 [ 16.568951][ C3] __irq_exit_rcu+0xfa/0x160 [ 16.568954][ C3] irq_exit_rcu+0xe/0x30 [ 16.568956][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.568960][ C3] [ 16.568961][ C3] [ 16.568963][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.568965][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.568970][ C3] 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.568973][ C3] RSP: 0000:ffffc90000157de8 EFLAGS: 00000242 [ 16.568977][ C3] RAX: 000000000003e5d9 RBX: 1ffff9200002afc1 RCX: ffffffff8cb55a19 [ 16.568979][ C3] RDX: 0000000000000000 RSI: ffffffff8d685f31 RDI: ffffffff8ce50ce0 [ 16.568981][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 16.568983][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 16.568984][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 16.568988][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.568994][ C3] default_idle+0x9/0x10 [ 16.568996][ C3] default_idle_call+0x6d/0xb0 [ 16.568998][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 16.569002][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.569006][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.569011][ C3] do_idle+0xf6/0x160 [ 16.569015][ C3] cpu_startup_entry+0x54/0x60 [ 16.569019][ C3] start_secondary+0x213/0x2a0 [ 16.569022][ C3] ? __pfx_start_secondary+0x10/0x10 [ 16.569027][ C3] common_startup_64+0x13e/0x148 [ 16.569033][ C3] [ 16.584047][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.584357][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 16.584955][ C3] preempt_count: 101, expected: 0 [ 16.585138][ C3] RCU nest depth: 0, expected: 0 [ 16.585312][ C3] INFO: lockdep is turned off. [ 16.585484][ C3] Preemption disabled at: [ 16.585486][ C3] [<0000000000000000>] 0x0 [ 16.585804][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.585809][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.585811][ C3] Call Trace: [ 16.585813][ C3] [ 16.585815][ C3] dump_stack_lvl+0xb0/0xd0 [ 16.585825][ C3] __might_resched+0x360/0x5a0 [ 16.585832][ C3] down_write+0x72/0x210 [ 16.585837][ C3] ? __pfx_down_write+0x10/0x10 [ 16.585839][ C3] ? simple_recursive_removal+0x3a/0x860 [ 16.585845][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.585853][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.585858][ C3] simple_recursive_removal+0x166/0x860 [ 16.585860][ C3] ? __pfx_remove_one+0x10/0x10 [ 16.585866][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.585870][ C3] debugfs_remove+0x44/0x70 [ 16.585873][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 16.585879][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.585883][ C3] ? __sk_destruct+0x383/0x780 [ 16.585889][ C3] ? rcu_do_batch+0x34c/0xf20 [ 16.585894][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.585897][ C3] ? irq_exit_rcu+0xe/0x30 [ 16.585902][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.585907][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.585911][ C3] ? pv_native_safe_halt+0xf/0x20 [ 16.585915][ C3] ? default_idle+0x9/0x10 [ 16.585917][ C3] ? default_idle_call+0x6d/0xb0 [ 16.585919][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.585925][ C3] ? do_idle+0xf6/0x160 [ 16.585928][ C3] ? cpu_startup_entry+0x54/0x60 [ 16.585931][ C3] ? start_secondary+0x213/0x2a0 [ 16.585937][ C3] ? common_startup_64+0x13e/0x148 [ 16.585944][ C3] __put_net+0x19/0x60 [ 16.585949][ C3] __sk_destruct+0x58a/0x780 [ 16.585953][ C3] ? rcu_do_batch+0x34a/0xf20 [ 16.585956][ C3] rcu_do_batch+0x34c/0xf20 [ 16.585960][ C3] ? find_held_lock+0x2b/0x80 [ 16.585966][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.585969][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.585974][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.585978][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.585982][ C3] rcu_core+0x2bb/0x500 [ 16.585986][ C3] handle_softirqs+0x218/0x620 [ 16.585991][ C3] __irq_exit_rcu+0xfa/0x160 [ 16.585994][ C3] irq_exit_rcu+0xe/0x30 [ 16.585996][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.585999][ C3] [ 16.586000][ C3] [ 16.586002][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.586005][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.586009][ C3] 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.586012][ C3] RSP: 0000:ffffc90000157de8 EFLAGS: 00000242 [ 16.586016][ C3] RAX: 000000000003e5d9 RBX: 1ffff9200002afc1 RCX: ffffffff8cb55a19 [ 16.586018][ C3] RDX: 0000000000000000 RSI: ffffffff8d685f31 RDI: ffffffff8ce50ce0 [ 16.586019][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 16.586021][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 16.586023][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 16.586026][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.586032][ C3] default_idle+0x9/0x10 [ 16.586037][ C3] default_idle_call+0x6d/0xb0 [ 16.586039][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 16.586043][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.586047][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.586052][ C3] do_idle+0xf6/0x160 [ 16.586056][ C3] cpu_startup_entry+0x54/0x60 [ 16.586060][ C3] start_secondary+0x213/0x2a0 [ 16.586063][ C3] ? __pfx_start_secondary+0x10/0x10 [ 16.586068][ C3] common_startup_64+0x13e/0x148 [ 16.586074][ C3] [ 18.968167][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.968491][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 18.968762][ C1] preempt_count: 100, expected: 0 [ 18.968916][ C1] RCU nest depth: 0, expected: 0 [ 18.969081][ C1] INFO: lockdep is turned off. [ 18.969237][ C1] Preemption disabled at: [ 18.969239][ C1] [] handle_softirqs+0xe5/0x620 [ 18.969567][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 18.969574][ C1] Tainted: [W]=WARN [ 18.969575][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.969578][ C1] Call Trace: [ 18.969580][ C1] [ 18.969583][ C1] dump_stack_lvl+0xb0/0xd0 [ 18.969592][ C1] __might_resched+0x360/0x5a0 [ 18.969599][ C1] down_write+0x72/0x210 [ 18.969603][ C1] ? __pfx_down_write+0x10/0x10 [ 18.969606][ C1] ? simple_recursive_removal+0x3a/0x860 [ 18.969612][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.969620][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 18.969625][ C1] simple_recursive_removal+0x166/0x860 [ 18.969628][ C1] ? __pfx_remove_one+0x10/0x10 [ 18.969633][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 18.969638][ C1] debugfs_remove+0x44/0x70 [ 18.969641][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 18.969647][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.969650][ C1] ? __sk_destruct+0x383/0x780 [ 18.969657][ C1] ? rcu_do_batch+0x34c/0xf20 [ 18.969662][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.969664][ C1] ? smpboot_thread_fn+0x307/0x960 [ 18.969669][ C1] ? kthread+0x37b/0x600 [ 18.969674][ C1] ? ret_from_fork+0x31/0x70 [ 18.969681][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 18.969686][ C1] ? migrate_enable+0x1f2/0x270 [ 18.969692][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 18.969696][ C1] ? bpf_sk_storage_free+0x9f/0x1c0 [ 18.969701][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.969705][ C1] __put_net+0x19/0x60 [ 18.969709][ C1] __sk_destruct+0x58a/0x780 [ 18.969713][ C1] ? rcu_do_batch+0x34a/0xf20 [ 18.969716][ C1] rcu_do_batch+0x34c/0xf20 [ 18.969722][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.969725][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.969729][ C1] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 18.969736][ C1] rcu_core+0x2bb/0x500 [ 18.969739][ C1] handle_softirqs+0x218/0x620 [ 18.969743][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 18.969746][ C1] run_ksoftirqd+0x3f/0x70 [ 18.969748][ C1] smpboot_thread_fn+0x307/0x960 [ 18.969752][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 18.969756][ C1] kthread+0x37b/0x600 [ 18.969759][ C1] ? __pfx_kthread+0x10/0x10 [ 18.969762][ C1] ? ret_from_fork+0x1b/0x70 [ 18.969765][ C1] ? __lock_release+0x5d/0x170 [ 18.969771][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.969774][ C1] ? __pfx_kthread+0x10/0x10 [ 18.969778][ C1] ret_from_fork+0x31/0x70 [ 18.969781][ C1] ? __pfx_kthread+0x10/0x10 [ 18.969784][ C1] ret_from_fork_asm+0x1a/0x30 [ 18.969791][ C1]