[ 16.441012][ C2] [ 16.441183][ C2] ================================ [ 16.441392][ C2] WARNING: inconsistent lock state [ 16.441598][ C2] 6.15.0-rc7-virtme #1 Not tainted [ 16.441801][ C2] -------------------------------- [ 16.442000][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.442248][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.442509][ C2] ffffffff9d7bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.442875][ C2] {SOFTIRQ-ON-W} state was registered at: [ 16.443076][ C2] __lock_acquire+0x3eb/0x9d0 [ 16.443286][ C2] lock_acquire.part.0+0xb6/0x240 [ 16.443489][ C2] _raw_spin_lock+0x33/0x40 [ 16.443693][ C2] simple_pin_fs+0x24/0x150 [ 16.443895][ C2] start_creating.part.0+0x3f/0x2f0 [ 16.444101][ C2] debugfs_create_dir+0x6a/0x540 [ 16.444301][ C2] component_debug_init+0x17/0x30 [ 16.444506][ C2] do_one_initcall+0x8f/0x1e0 [ 16.444713][ C2] do_initcalls+0x176/0x280 [ 16.444920][ C2] kernel_init_freeable+0x22d/0x300 [ 16.445122][ C2] kernel_init+0x20/0x200 [ 16.445320][ C2] ret_from_fork+0x31/0x70 [ 16.445518][ C2] ret_from_fork_asm+0x1a/0x30 [ 16.445719][ C2] irq event stamp: 324056 [ 16.445870][ C2] hardirqs last enabled at (324056): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.446273][ C2] hardirqs last disabled at (324055): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.446675][ C2] softirqs last enabled at (323102): [] handle_softirqs+0x358/0x620 [ 16.447027][ C2] softirqs last disabled at (323121): [] __irq_exit_rcu+0xfa/0x160 [ 16.447378][ C2] [ 16.447378][ C2] other info that might help us debug this: [ 16.447676][ C2] Possible unsafe locking scenario: [ 16.447676][ C2] [ 16.447968][ C2] CPU0 [ 16.448116][ C2] ---- [ 16.448264][ C2] lock(pin_fs_lock); [ 16.448415][ C2] [ 16.448564][ C2] lock(pin_fs_lock); [ 16.448719][ C2] [ 16.448719][ C2] *** DEADLOCK *** [ 16.448719][ C2] [ 16.449019][ C2] 1 lock held by swapper/2/0: [ 16.449218][ C2] #0: ffffffff9d5749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.449575][ C2] [ 16.449575][ C2] stack backtrace: [ 16.449824][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 16.449829][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.449831][ C2] Call Trace: [ 16.449834][ C2] [ 16.449836][ C2] dump_stack_lvl+0x82/0xd0 [ 16.449843][ C2] print_usage_bug.part.0+0x25f/0x360 [ 16.449849][ C2] mark_lock_irq+0x343/0x400 [ 16.449854][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 16.449861][ C2] ? save_trace+0x52/0x170 [ 16.449865][ C2] mark_lock+0x174/0x2f0 [ 16.449870][ C2] mark_usage+0x46/0x150 [ 16.449874][ C2] __lock_acquire+0x3eb/0x9d0 [ 16.449879][ C2] lock_acquire.part.0+0xb6/0x240 [ 16.449882][ C2] ? simple_pin_fs+0x24/0x150 [ 16.449885][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.449892][ C2] ? lock_acquire+0x10c/0x170 [ 16.449894][ C2] ? simple_pin_fs+0x24/0x150 [ 16.449897][ C2] _raw_spin_lock+0x33/0x40 [ 16.449900][ C2] ? simple_pin_fs+0x24/0x150 [ 16.449903][ C2] simple_pin_fs+0x24/0x150 [ 16.449906][ C2] debugfs_remove+0x35/0x70 [ 16.449909][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.449915][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.449918][ C2] ? __sk_destruct+0x383/0x780 [ 16.449925][ C2] ? rcu_do_batch+0x34f/0xf20 [ 16.449928][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.449931][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.449933][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.449939][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.449943][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.449946][ C2] ? default_idle+0x9/0x10 [ 16.449948][ C2] ? default_idle_call+0x6d/0xb0 [ 16.449951][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.449957][ C2] ? do_idle+0xf6/0x160 [ 16.449961][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.449964][ C2] ? start_secondary+0x213/0x2a0 [ 16.449969][ C2] ? common_startup_64+0x13e/0x148 [ 16.449977][ C2] __put_net+0x19/0x60 [ 16.449981][ C2] __sk_destruct+0x58a/0x780 [ 16.449985][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.449988][ C2] rcu_do_batch+0x34f/0xf20 [ 16.449992][ C2] ? find_held_lock+0x2b/0x80 [ 16.449997][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.450000][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.450004][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.450007][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.450012][ C2] rcu_core+0x2bb/0x500 [ 16.450016][ C2] handle_softirqs+0x218/0x620 [ 16.450021][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.450024][ C2] irq_exit_rcu+0xe/0x30 [ 16.450026][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.450030][ C2] [ 16.450031][ C2] [ 16.450032][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.450035][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.450040][ C2] Code: 60 b8 00 e9 c3 57 02 00 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 c3 75 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.450043][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 16.450046][ C2] RAX: 000000000004ee2f RBX: 1ffff92000028fc1 RCX: ffffffff9c55ba19 [ 16.450048][ C2] RDX: 0000000000000000 RSI: ffffffff9d087785 RDI: ffffffff9c851260 [ 16.450050][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 16.450052][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 16.450054][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 16.450058][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.450062][ C2] default_idle+0x9/0x10 [ 16.450064][ C2] default_idle_call+0x6d/0xb0 [ 16.450067][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.450071][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.450075][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.450081][ C2] do_idle+0xf6/0x160 [ 16.450084][ C2] cpu_startup_entry+0x54/0x60 [ 16.450088][ C2] start_secondary+0x213/0x2a0 [ 16.450092][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.450097][ C2] common_startup_64+0x13e/0x148 [ 16.450103][ C2] [ 16.465850][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.466199][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 16.466537][ C2] preempt_count: 101, expected: 0 [ 16.466737][ C2] RCU nest depth: 0, expected: 0 [ 16.466942][ C2] INFO: lockdep is turned off. [ 16.467150][ C2] Preemption disabled at: [ 16.467152][ C2] [<0000000000000000>] 0x0 [ 16.467503][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 16.467508][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.467510][ C2] Call Trace: [ 16.467512][ C2] [ 16.467514][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.467522][ C2] __might_resched+0x360/0x5a0 [ 16.467529][ C2] down_write+0x72/0x210 [ 16.467534][ C2] ? __pfx_down_write+0x10/0x10 [ 16.467537][ C2] ? simple_recursive_removal+0x3a/0x860 [ 16.467542][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.467549][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.467555][ C2] simple_recursive_removal+0x166/0x860 [ 16.467558][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.467564][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.467568][ C2] debugfs_remove+0x44/0x70 [ 16.467571][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.467577][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.467580][ C2] ? __sk_destruct+0x383/0x780 [ 16.467587][ C2] ? rcu_do_batch+0x34f/0xf20 [ 16.467591][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.467594][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.467599][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.467603][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.467608][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.467611][ C2] ? default_idle+0x9/0x10 [ 16.467613][ C2] ? default_idle_call+0x6d/0xb0 [ 16.467616][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.467621][ C2] ? do_idle+0xf6/0x160 [ 16.467624][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.467627][ C2] ? start_secondary+0x213/0x2a0 [ 16.467633][ C2] ? common_startup_64+0x13e/0x148 [ 16.467639][ C2] __put_net+0x19/0x60 [ 16.467643][ C2] __sk_destruct+0x58a/0x780 [ 16.467647][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.467650][ C2] rcu_do_batch+0x34f/0xf20 [ 16.467654][ C2] ? find_held_lock+0x2b/0x80 [ 16.467659][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.467663][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.467668][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.467671][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.467676][ C2] rcu_core+0x2bb/0x500 [ 16.467680][ C2] handle_softirqs+0x218/0x620 [ 16.467685][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.467688][ C2] irq_exit_rcu+0xe/0x30 [ 16.467690][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.467694][ C2] [ 16.467695][ C2] [ 16.467697][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.467700][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.467704][ C2] Code: 60 b8 00 e9 c3 57 02 00 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 c3 75 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.467707][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 16.467710][ C2] RAX: 000000000004ee2f RBX: 1ffff92000028fc1 RCX: ffffffff9c55ba19 [ 16.467712][ C2] RDX: 0000000000000000 RSI: ffffffff9d087785 RDI: ffffffff9c851260 [ 16.467714][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 16.467716][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 16.467718][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 16.467722][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.467726][ C2] default_idle+0x9/0x10 [ 16.467728][ C2] default_idle_call+0x6d/0xb0 [ 16.467731][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.467735][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.467739][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.467744][ C2] do_idle+0xf6/0x160 [ 16.467748][ C2] cpu_startup_entry+0x54/0x60 [ 16.467752][ C2] start_secondary+0x213/0x2a0 [ 16.467755][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.467760][ C2] common_startup_64+0x13e/0x148 [ 16.467767][ C2] [ 18.755415][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.755818][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 18.756152][ C2] preempt_count: 100, expected: 0 [ 18.756341][ C2] RCU nest depth: 0, expected: 0 [ 18.756533][ C2] INFO: lockdep is turned off. [ 18.756729][ C2] Preemption disabled at: [ 18.756731][ C2] [] handle_softirqs+0xe5/0x620 [ 18.757131][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 18.757137][ C2] Tainted: [W]=WARN [ 18.757138][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.757141][ C2] Call Trace: [ 18.757143][ C2] [ 18.757145][ C2] dump_stack_lvl+0xb0/0xd0 [ 18.757154][ C2] __might_resched+0x360/0x5a0 [ 18.757162][ C2] down_write+0x72/0x210 [ 18.757168][ C2] ? __pfx_down_write+0x10/0x10 [ 18.757171][ C2] ? simple_recursive_removal+0x3a/0x860 [ 18.757177][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.757186][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 18.757191][ C2] simple_recursive_removal+0x166/0x860 [ 18.757194][ C2] ? __pfx_remove_one+0x10/0x10 [ 18.757200][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 18.757205][ C2] debugfs_remove+0x44/0x70 [ 18.757208][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 18.757215][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.757218][ C2] ? __sk_destruct+0x383/0x780 [ 18.757225][ C2] ? rcu_do_batch+0x34f/0xf20 [ 18.757230][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.757233][ C2] ? smpboot_thread_fn+0x307/0x960 [ 18.757238][ C2] ? kthread+0x37b/0x600 [ 18.757244][ C2] ? ret_from_fork+0x31/0x70 [ 18.757247][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 18.757254][ C2] ? migrate_enable+0x1f2/0x270 [ 18.757260][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 18.757264][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 18.757269][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.757274][ C2] __put_net+0x19/0x60 [ 18.757278][ C2] __sk_destruct+0x58a/0x780 [ 18.757282][ C2] ? rcu_do_batch+0x34a/0xf20 [ 18.757285][ C2] rcu_do_batch+0x34f/0xf20 [ 18.757291][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.757295][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.757299][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 18.757306][ C2] rcu_core+0x2bb/0x500 [ 18.757310][ C2] handle_softirqs+0x218/0x620 [ 18.757314][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 18.757317][ C2] run_ksoftirqd+0x3f/0x70 [ 18.757320][ C2] smpboot_thread_fn+0x307/0x960 [ 18.757323][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 18.757327][ C2] kthread+0x37b/0x600 [ 18.757330][ C2] ? __pfx_kthread+0x10/0x10 [ 18.757333][ C2] ? ret_from_fork+0x1b/0x70 [ 18.757335][ C2] ? __lock_release+0x5d/0x170 [ 18.757337][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.757341][ C2] ? __pfx_kthread+0x10/0x10 [ 18.757345][ C2] ret_from_fork+0x31/0x70 [ 18.757347][ C2] ? __pfx_kthread+0x10/0x10 [ 18.757350][ C2] ret_from_fork_asm+0x1a/0x30 [ 18.757357][ C2]