[ 12.200485][ C0] [ 12.200653][ C0] ================================ [ 12.200875][ C0] WARNING: inconsistent lock state [ 12.201092][ C0] 6.15.0-rc5-virtme #1 Not tainted [ 12.201303][ C0] -------------------------------- [ 12.201517][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.201776][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.202048][ C0] ffffffffa2dbf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.202432][ C0] {SOFTIRQ-ON-W} state was registered at: [ 12.202649][ C0] __lock_acquire+0x3eb/0x9d0 [ 12.202866][ C0] lock_acquire.part.0+0xb6/0x240 [ 12.203080][ C0] _raw_spin_lock+0x33/0x40 [ 12.203301][ C0] simple_pin_fs+0x24/0x150 [ 12.203514][ C0] start_creating.part.0+0x3f/0x2f0 [ 12.203733][ C0] debugfs_create_dir+0x6a/0x540 [ 12.203945][ C0] component_debug_init+0x17/0x30 [ 12.204157][ C0] do_one_initcall+0x8c/0x1e0 [ 12.204365][ C0] do_initcalls+0x176/0x280 [ 12.204585][ C0] kernel_init_freeable+0x22d/0x300 [ 12.204801][ C0] kernel_init+0x20/0x200 [ 12.205019][ C0] ret_from_fork+0x31/0x70 [ 12.205234][ C0] ret_from_fork_asm+0x1a/0x30 [ 12.205449][ C0] irq event stamp: 427326 [ 12.205611][ C0] hardirqs last enabled at (427326): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.206030][ C0] hardirqs last disabled at (427325): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.206459][ C0] softirqs last enabled at (427138): [] handle_softirqs+0x358/0x620 [ 12.206831][ C0] softirqs last disabled at (427163): [] __irq_exit_rcu+0xfa/0x160 [ 12.207207][ C0] [ 12.207207][ C0] other info that might help us debug this: [ 12.207527][ C0] Possible unsafe locking scenario: [ 12.207527][ C0] [ 12.207840][ C0] CPU0 [ 12.208003][ C0] ---- [ 12.208163][ C0] lock(pin_fs_lock); [ 12.208329][ C0] [ 12.208489][ C0] lock(pin_fs_lock); [ 12.208653][ C0] [ 12.208653][ C0] *** DEADLOCK *** [ 12.208653][ C0] [ 12.208968][ C0] 1 lock held by swapper/0/0: [ 12.209186][ C0] #0: ffffffffa2b74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.209573][ C0] [ 12.209573][ C0] stack backtrace: [ 12.209838][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 12.209842][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.209845][ C0] Call Trace: [ 12.209847][ C0] [ 12.209849][ C0] dump_stack_lvl+0x82/0xd0 [ 12.209856][ C0] print_usage_bug.part.0+0x25f/0x360 [ 12.209860][ C0] mark_lock_irq+0x343/0x400 [ 12.209864][ C0] ? is_bpf_text_address+0x67/0x120 [ 12.209868][ C0] ? __lock_release+0x5d/0x170 [ 12.209872][ C0] ? save_trace+0x52/0x170 [ 12.209879][ C0] mark_lock+0x174/0x2f0 [ 12.209882][ C0] mark_usage+0x46/0x150 [ 12.209885][ C0] __lock_acquire+0x3eb/0x9d0 [ 12.209889][ C0] lock_acquire.part.0+0xb6/0x240 [ 12.209892][ C0] ? simple_pin_fs+0x24/0x150 [ 12.209895][ C0] ? rcu_is_watching+0x12/0xc0 [ 12.209898][ C0] ? lock_acquire+0x10c/0x170 [ 12.209901][ C0] ? simple_pin_fs+0x24/0x150 [ 12.209904][ C0] _raw_spin_lock+0x33/0x40 [ 12.209907][ C0] ? simple_pin_fs+0x24/0x150 [ 12.209909][ C0] simple_pin_fs+0x24/0x150 [ 12.209912][ C0] debugfs_remove+0x35/0x70 [ 12.209916][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 12.209922][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.209926][ C0] ? __sk_destruct+0x383/0x780 [ 12.209932][ C0] ? rcu_do_batch+0x34c/0xf20 [ 12.209935][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.209939][ C0] ? irq_exit_rcu+0xe/0x30 [ 12.209941][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.209946][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.209950][ C0] ? pv_native_safe_halt+0xf/0x20 [ 12.209953][ C0] ? default_idle+0x9/0x10 [ 12.209956][ C0] ? default_idle_call+0x6d/0xb0 [ 12.209959][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.209962][ C0] ? do_idle+0xf6/0x160 [ 12.209964][ C0] ? cpu_startup_entry+0x54/0x60 [ 12.209966][ C0] ? rest_init+0x14b/0x260 [ 12.209969][ C0] ? start_kernel+0x350/0x410 [ 12.209974][ C0] __put_net+0x19/0x60 [ 12.209978][ C0] __sk_destruct+0x58a/0x780 [ 12.209982][ C0] ? rcu_do_batch+0x34a/0xf20 [ 12.209985][ C0] rcu_do_batch+0x34c/0xf20 [ 12.209990][ C0] ? find_held_lock+0x2b/0x80 [ 12.209994][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.209998][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.210001][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.210005][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.210009][ C0] rcu_core+0x2bb/0x500 [ 12.210013][ C0] handle_softirqs+0x218/0x620 [ 12.210018][ C0] __irq_exit_rcu+0xfa/0x160 [ 12.210021][ C0] irq_exit_rcu+0xe/0x30 [ 12.210023][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.210026][ C0] [ 12.210027][ C0] [ 12.210029][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.210032][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.210036][ C0] Code: a0 b7 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 a0 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 [ 12.210040][ C0] RSP: 0018:ffffffffa2807df8 EFLAGS: 00000246 [ 12.210043][ C0] RAX: 0000000000068499 RBX: 1ffffffff4500fc3 RCX: ffffffffa1b68a19 [ 12.210045][ C0] RDX: 0000000000000000 RSI: ffffffffa26881e1 RDI: ffffffffa1e50e20 [ 12.210047][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 12.210048][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 12.210050][ C0] R13: ffffffffa281f240 R14: dffffc0000000000 R15: 0000000000014770 [ 12.210054][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.210059][ C0] default_idle+0x9/0x10 [ 12.210063][ C0] default_idle_call+0x6d/0xb0 [ 12.210065][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 12.210067][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.210071][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 12.210076][ C0] do_idle+0xf6/0x160 [ 12.210079][ C0] cpu_startup_entry+0x54/0x60 [ 12.210082][ C0] rest_init+0x14b/0x260 [ 12.210084][ C0] start_kernel+0x350/0x410 [ 12.210088][ C0] x86_64_start_reservations+0x18/0x30 [ 12.210093][ C0] x86_64_start_kernel+0xba/0x110 [ 12.210097][ C0] common_startup_64+0x13e/0x148 [ 12.210106][ C0] [ 12.228725][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.229071][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 12.229546][ C0] preempt_count: 101, expected: 0 [ 12.229743][ C0] RCU nest depth: 0, expected: 0 [ 12.229940][ C0] INFO: lockdep is turned off. [ 12.230270][ C0] Preemption disabled at: [ 12.230272][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 12.230738][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 12.230742][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.230745][ C0] Call Trace: [ 12.230747][ C0] [ 12.230748][ C0] dump_stack_lvl+0xb0/0xd0 [ 12.230755][ C0] __might_resched+0x360/0x5a0 [ 12.230763][ C0] down_write+0x72/0x210 [ 12.230766][ C0] ? __pfx_down_write+0x10/0x10 [ 12.230768][ C0] ? simple_recursive_removal+0x3a/0x860 [ 12.230774][ C0] ? rcu_is_watching+0x12/0xc0 [ 12.230779][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 12.230784][ C0] simple_recursive_removal+0x166/0x860 [ 12.230787][ C0] ? __pfx_remove_one+0x10/0x10 [ 12.230793][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 12.230797][ C0] debugfs_remove+0x44/0x70 [ 12.230801][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 12.230806][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.230810][ C0] ? __sk_destruct+0x383/0x780 [ 12.230815][ C0] ? rcu_do_batch+0x34c/0xf20 [ 12.230820][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.230823][ C0] ? irq_exit_rcu+0xe/0x30 [ 12.230828][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.230833][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.230837][ C0] ? pv_native_safe_halt+0xf/0x20 [ 12.230840][ C0] ? default_idle+0x9/0x10 [ 12.230843][ C0] ? default_idle_call+0x6d/0xb0 [ 12.230845][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.230849][ C0] ? do_idle+0xf6/0x160 [ 12.230851][ C0] ? cpu_startup_entry+0x54/0x60 [ 12.230853][ C0] ? rest_init+0x14b/0x260 [ 12.230855][ C0] ? start_kernel+0x350/0x410 [ 12.230863][ C0] __put_net+0x19/0x60 [ 12.230866][ C0] __sk_destruct+0x58a/0x780 [ 12.230871][ C0] ? rcu_do_batch+0x34a/0xf20 [ 12.230874][ C0] rcu_do_batch+0x34c/0xf20 [ 12.230878][ C0] ? find_held_lock+0x2b/0x80 [ 12.230883][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.230888][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.230892][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.230896][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.230900][ C0] rcu_core+0x2bb/0x500 [ 12.230904][ C0] handle_softirqs+0x218/0x620 [ 12.230909][ C0] __irq_exit_rcu+0xfa/0x160 [ 12.230912][ C0] irq_exit_rcu+0xe/0x30 [ 12.230915][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.230918][ C0] [ 12.230919][ C0] [ 12.230920][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.230923][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.230926][ C0] Code: a0 b7 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 a0 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 [ 12.230929][ C0] RSP: 0018:ffffffffa2807df8 EFLAGS: 00000246 [ 12.230932][ C0] RAX: 0000000000068499 RBX: 1ffffffff4500fc3 RCX: ffffffffa1b68a19 [ 12.230934][ C0] RDX: 0000000000000000 RSI: ffffffffa26881e1 RDI: ffffffffa1e50e20 [ 12.230936][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 12.230938][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 12.230939][ C0] R13: ffffffffa281f240 R14: dffffc0000000000 R15: 0000000000014770 [ 12.230943][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.230948][ C0] default_idle+0x9/0x10 [ 12.230952][ C0] default_idle_call+0x6d/0xb0 [ 12.230954][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 12.230957][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.230960][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 12.230965][ C0] do_idle+0xf6/0x160 [ 12.230968][ C0] cpu_startup_entry+0x54/0x60 [ 12.230971][ C0] rest_init+0x14b/0x260 [ 12.230974][ C0] start_kernel+0x350/0x410 [ 12.230978][ C0] x86_64_start_reservations+0x18/0x30 [ 12.230982][ C0] x86_64_start_kernel+0xba/0x110 [ 12.230985][ C0] common_startup_64+0x13e/0x148 [ 12.230994][ C0]