[ 13.073556][ C2] [ 13.073771][ C2] ================================ [ 13.073980][ C2] WARNING: inconsistent lock state [ 13.074179][ C2] 6.15.0-rc7-virtme #1 Not tainted [ 13.074382][ C2] -------------------------------- [ 13.074583][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.074827][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.075081][ C2] ffffffffa2bbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.075444][ C2] {SOFTIRQ-ON-W} state was registered at: [ 13.075643][ C2] __lock_acquire+0x3eb/0x9d0 [ 13.075856][ C2] lock_acquire.part.0+0xb6/0x240 [ 13.076054][ C2] _raw_spin_lock+0x33/0x40 [ 13.076265][ C2] simple_pin_fs+0x24/0x150 [ 13.076468][ C2] start_creating.part.0+0x3f/0x2f0 [ 13.076677][ C2] debugfs_create_dir+0x6a/0x540 [ 13.076885][ C2] component_debug_init+0x17/0x30 [ 13.077097][ C2] do_one_initcall+0x8f/0x1e0 [ 13.077314][ C2] do_initcalls+0x176/0x280 [ 13.077515][ C2] kernel_init_freeable+0x22d/0x300 [ 13.077716][ C2] kernel_init+0x20/0x200 [ 13.077926][ C2] ret_from_fork+0x31/0x70 [ 13.078134][ C2] ret_from_fork_asm+0x1a/0x30 [ 13.078342][ C2] irq event stamp: 243496 [ 13.078492][ C2] hardirqs last enabled at (243496): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.078905][ C2] hardirqs last disabled at (243495): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.079317][ C2] softirqs last enabled at (243428): [] handle_softirqs+0x358/0x620 [ 13.079683][ C2] softirqs last disabled at (243459): [] __irq_exit_rcu+0xfa/0x160 [ 13.080047][ C2] [ 13.080047][ C2] other info that might help us debug this: [ 13.080358][ C2] Possible unsafe locking scenario: [ 13.080358][ C2] [ 13.080665][ C2] CPU0 [ 13.080826][ C2] ---- [ 13.080986][ C2] lock(pin_fs_lock); [ 13.081156][ C2] [ 13.081312][ C2] lock(pin_fs_lock); [ 13.081464][ C2] [ 13.081464][ C2] *** DEADLOCK *** [ 13.081464][ C2] [ 13.081757][ C2] 1 lock held by swapper/2/0: [ 13.081958][ C2] #0: ffffffffa29749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.082331][ C2] [ 13.082331][ C2] stack backtrace: [ 13.082592][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.082597][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.082600][ C2] Call Trace: [ 13.082601][ C2] [ 13.082604][ C2] dump_stack_lvl+0x82/0xd0 [ 13.082612][ C2] print_usage_bug.part.0+0x25f/0x360 [ 13.082616][ C2] mark_lock_irq+0x343/0x400 [ 13.082621][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.082627][ C2] ? save_trace+0x52/0x170 [ 13.082633][ C2] mark_lock+0x174/0x2f0 [ 13.082637][ C2] mark_usage+0x46/0x150 [ 13.082639][ C2] __lock_acquire+0x3eb/0x9d0 [ 13.082644][ C2] lock_acquire.part.0+0xb6/0x240 [ 13.082647][ C2] ? simple_pin_fs+0x24/0x150 [ 13.082651][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.082655][ C2] ? lock_acquire+0x10c/0x170 [ 13.082657][ C2] ? simple_pin_fs+0x24/0x150 [ 13.082661][ C2] _raw_spin_lock+0x33/0x40 [ 13.082665][ C2] ? simple_pin_fs+0x24/0x150 [ 13.082667][ C2] simple_pin_fs+0x24/0x150 [ 13.082671][ C2] debugfs_remove+0x35/0x70 [ 13.082674][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 13.082682][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.082686][ C2] ? __sk_destruct+0x383/0x780 [ 13.082693][ C2] ? rcu_do_batch+0x34f/0xf20 [ 13.082696][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.082700][ C2] ? irq_exit_rcu+0xe/0x30 [ 13.082702][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.082707][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.082711][ C2] ? pv_native_safe_halt+0xf/0x20 [ 13.082714][ C2] ? default_idle+0x9/0x10 [ 13.082716][ C2] ? default_idle_call+0x6d/0xb0 [ 13.082718][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.082723][ C2] ? do_idle+0xf6/0x160 [ 13.082725][ C2] ? cpu_startup_entry+0x54/0x60 [ 13.082727][ C2] ? start_secondary+0x213/0x2a0 [ 13.082730][ C2] ? common_startup_64+0x13e/0x148 [ 13.082737][ C2] __put_net+0x19/0x60 [ 13.082742][ C2] __sk_destruct+0x58a/0x780 [ 13.082746][ C2] ? rcu_do_batch+0x34a/0xf20 [ 13.082749][ C2] rcu_do_batch+0x34f/0xf20 [ 13.082755][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.082759][ C2] ? __lock_release+0x5d/0x170 [ 13.082762][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.082764][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.082769][ C2] rcu_core+0x2bb/0x500 [ 13.082774][ C2] handle_softirqs+0x218/0x620 [ 13.082779][ C2] __irq_exit_rcu+0xfa/0x160 [ 13.082782][ C2] irq_exit_rcu+0xe/0x30 [ 13.082784][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.082788][ C2] [ 13.082789][ C2] [ 13.082790][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.082793][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.082797][ C2] Code: 50 b7 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 45 12 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 13.082800][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 13.082803][ C2] RAX: 000000000003b701 RBX: 1ffff92000028fc1 RCX: ffffffffa196ea19 [ 13.082805][ C2] RDX: 0000000000000000 RSI: ffffffffa2489a45 RDI: ffffffffa1c513a0 [ 13.082807][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 13.082809][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.082811][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 13.082815][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.082820][ C2] default_idle+0x9/0x10 [ 13.082822][ C2] default_idle_call+0x6d/0xb0 [ 13.082825][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 13.082828][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.082831][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.082836][ C2] do_idle+0xf6/0x160 [ 13.082839][ C2] cpu_startup_entry+0x54/0x60 [ 13.082842][ C2] start_secondary+0x213/0x2a0 [ 13.082845][ C2] ? __pfx_start_secondary+0x10/0x10 [ 13.082849][ C2] common_startup_64+0x13e/0x148 [ 13.082856][ C2] [ 13.099029][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.099389][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 13.099739][ C2] preempt_count: 101, expected: 0 [ 13.099946][ C2] RCU nest depth: 0, expected: 0 [ 13.100149][ C2] INFO: lockdep is turned off. [ 13.100350][ C2] Preemption disabled at: [ 13.100352][ C2] [<0000000000000000>] 0x0 [ 13.100723][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.100728][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.100730][ C2] Call Trace: [ 13.100731][ C2] [ 13.100733][ C2] dump_stack_lvl+0xb0/0xd0 [ 13.100741][ C2] __might_resched+0x360/0x5a0 [ 13.100749][ C2] down_write+0x72/0x210 [ 13.100753][ C2] ? __pfx_down_write+0x10/0x10 [ 13.100756][ C2] ? simple_recursive_removal+0x3a/0x860 [ 13.100760][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.100764][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 13.100770][ C2] simple_recursive_removal+0x166/0x860 [ 13.100773][ C2] ? __pfx_remove_one+0x10/0x10 [ 13.100777][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 13.100782][ C2] debugfs_remove+0x44/0x70 [ 13.100786][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 13.100791][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.100795][ C2] ? __sk_destruct+0x383/0x780 [ 13.100800][ C2] ? rcu_do_batch+0x34f/0xf20 [ 13.100804][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.100807][ C2] ? irq_exit_rcu+0xe/0x30 [ 13.100811][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.100815][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.100819][ C2] ? pv_native_safe_halt+0xf/0x20 [ 13.100822][ C2] ? default_idle+0x9/0x10 [ 13.100824][ C2] ? default_idle_call+0x6d/0xb0 [ 13.100827][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.100829][ C2] ? do_idle+0xf6/0x160 [ 13.100831][ C2] ? cpu_startup_entry+0x54/0x60 [ 13.100834][ C2] ? start_secondary+0x213/0x2a0 [ 13.100836][ C2] ? common_startup_64+0x13e/0x148 [ 13.100843][ C2] __put_net+0x19/0x60 [ 13.100846][ C2] __sk_destruct+0x58a/0x780 [ 13.100850][ C2] ? rcu_do_batch+0x34a/0xf20 [ 13.100854][ C2] rcu_do_batch+0x34f/0xf20 [ 13.100859][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.100863][ C2] ? __lock_release+0x5d/0x170 [ 13.100867][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.100869][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.100875][ C2] rcu_core+0x2bb/0x500 [ 13.100879][ C2] handle_softirqs+0x218/0x620 [ 13.100884][ C2] __irq_exit_rcu+0xfa/0x160 [ 13.100886][ C2] irq_exit_rcu+0xe/0x30 [ 13.100889][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.100892][ C2] [ 13.100893][ C2] [ 13.100895][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.100897][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.100901][ C2] Code: 50 b7 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 45 12 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 13.100904][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 13.100908][ C2] RAX: 000000000003b701 RBX: 1ffff92000028fc1 RCX: ffffffffa196ea19 [ 13.100910][ C2] RDX: 0000000000000000 RSI: ffffffffa2489a45 RDI: ffffffffa1c513a0 [ 13.100912][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 13.100914][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.100915][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 13.100919][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.100925][ C2] default_idle+0x9/0x10 [ 13.100927][ C2] default_idle_call+0x6d/0xb0 [ 13.100929][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 13.100932][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.100936][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.100940][ C2] do_idle+0xf6/0x160 [ 13.100943][ C2] cpu_startup_entry+0x54/0x60 [ 13.100946][ C2] start_secondary+0x213/0x2a0 [ 13.100949][ C2] ? __pfx_start_secondary+0x10/0x10 [ 13.100953][ C2] common_startup_64+0x13e/0x148 [ 13.100960][ C2]