[ 12.907509][ C0] [ 12.907676][ C0] ================================ [ 12.907913][ C0] WARNING: inconsistent lock state [ 12.908160][ C0] 6.15.0-virtme #1 Not tainted [ 12.908397][ C0] -------------------------------- [ 12.908626][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.908919][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.909226][ C0] ffffffffb1bc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.909647][ C0] {SOFTIRQ-ON-W} state was registered at: [ 12.909875][ C0] __lock_acquire+0x20b/0x7e0 [ 12.910140][ C0] lock_acquire.part.0+0xb6/0x240 [ 12.910376][ C0] _raw_spin_lock+0x33/0x40 [ 12.910616][ C0] simple_pin_fs+0x24/0x150 [ 12.910846][ C0] start_creating.part.0+0x52/0x310 [ 12.911096][ C0] debugfs_create_dir+0x6a/0x540 [ 12.911333][ C0] component_debug_init+0x17/0x30 [ 12.911568][ C0] do_one_initcall+0x8f/0x1e0 [ 12.911801][ C0] do_initcalls+0x176/0x280 [ 12.912046][ C0] kernel_init_freeable+0x22d/0x300 [ 12.912281][ C0] kernel_init+0x20/0x200 [ 12.912515][ C0] ret_from_fork+0x240/0x320 [ 12.912749][ C0] ret_from_fork_asm+0x1a/0x30 [ 12.912980][ C0] irq event stamp: 420158 [ 12.913174][ C0] hardirqs last enabled at (420158): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.913630][ C0] hardirqs last disabled at (420157): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.914084][ C0] softirqs last enabled at (419150): [] handle_softirqs+0x358/0x620 [ 12.914499][ C0] softirqs last disabled at (419157): [] __irq_exit_rcu+0xfa/0x160 [ 12.914902][ C0] [ 12.914902][ C0] other info that might help us debug this: [ 12.915248][ C0] Possible unsafe locking scenario: [ 12.915248][ C0] [ 12.915593][ C0] CPU0 [ 12.915764][ C0] ---- [ 12.915936][ C0] lock(pin_fs_lock); [ 12.916116][ C0] [ 12.916297][ C0] lock(pin_fs_lock); [ 12.916469][ C0] [ 12.916469][ C0] *** DEADLOCK *** [ 12.916469][ C0] [ 12.916798][ C0] 1 lock held by swapper/0/0: [ 12.917025][ C0] #0: ffffffffb19774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.917442][ C0] [ 12.917442][ C0] stack backtrace: [ 12.917726][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.917731][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.917734][ C0] Call Trace: [ 12.917736][ C0] [ 12.917738][ C0] dump_stack_lvl+0x82/0xd0 [ 12.917746][ C0] print_usage_bug.part.0+0x25f/0x360 [ 12.917752][ C0] mark_lock_irq+0x343/0x400 [ 12.917756][ C0] ? is_bpf_text_address+0x67/0x120 [ 12.917762][ C0] ? __lock_release+0x5d/0x170 [ 12.917767][ C0] ? save_trace+0x52/0x170 [ 12.917771][ C0] mark_lock+0x174/0x2f0 [ 12.917775][ C0] mark_usage+0x46/0x150 [ 12.917779][ C0] __lock_acquire+0x20b/0x7e0 [ 12.917782][ C0] ? __lock_acquire+0x44d/0x7e0 [ 12.917787][ C0] lock_acquire.part.0+0xb6/0x240 [ 12.917791][ C0] ? simple_pin_fs+0x24/0x150 [ 12.917795][ C0] ? rcu_is_watching+0x12/0xc0 [ 12.917801][ C0] ? lock_acquire+0x10c/0x170 [ 12.917804][ C0] ? simple_pin_fs+0x24/0x150 [ 12.917807][ C0] _raw_spin_lock+0x33/0x40 [ 12.917811][ C0] ? simple_pin_fs+0x24/0x150 [ 12.917813][ C0] simple_pin_fs+0x24/0x150 [ 12.917817][ C0] debugfs_remove+0x35/0x70 [ 12.917821][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 12.917827][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.917830][ C0] ? __sk_destruct+0x383/0x780 [ 12.917836][ C0] ? rcu_do_batch+0x34c/0xf20 [ 12.917840][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.917842][ C0] ? irq_exit_rcu+0xe/0x30 [ 12.917846][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.917851][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.917856][ C0] ? pv_native_safe_halt+0xf/0x20 [ 12.917859][ C0] ? default_idle+0x9/0x10 [ 12.917862][ C0] ? default_idle_call+0x6d/0xb0 [ 12.917864][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.917870][ C0] ? do_idle+0xf6/0x160 [ 12.917873][ C0] ? cpu_startup_entry+0x54/0x60 [ 12.917876][ C0] ? rest_init+0x14b/0x260 [ 12.917878][ C0] ? start_kernel+0x350/0x410 [ 12.917885][ C0] __put_net+0x19/0x60 [ 12.917890][ C0] __sk_destruct+0x58a/0x780 [ 12.917894][ C0] ? rcu_do_batch+0x34a/0xf20 [ 12.917897][ C0] rcu_do_batch+0x34c/0xf20 [ 12.917900][ C0] ? find_held_lock+0x2b/0x80 [ 12.917904][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.917908][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.917912][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.917915][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.917920][ C0] rcu_core+0x2bb/0x500 [ 12.917925][ C0] handle_softirqs+0x218/0x620 [ 12.917930][ C0] __irq_exit_rcu+0xfa/0x160 [ 12.917934][ C0] irq_exit_rcu+0xe/0x30 [ 12.917937][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.917940][ C0] [ 12.917941][ C0] [ 12.917943][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.917945][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.917950][ C0] Code: 92 b4 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 83 07 0f 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 12.917952][ C0] RSP: 0018:ffffffffb1607df8 EFLAGS: 00000246 [ 12.917956][ C0] RAX: 0000000000066553 RBX: 1ffffffff62c0fc3 RCX: ffffffffb09a35d9 [ 12.917958][ C0] RDX: 0000000000000000 RSI: ffffffffb149175c RDI: ffffffffb0c53ca0 [ 12.917960][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005e866fa [ 12.917962][ C0] R10: ffff88802f4337d3 R11: ffffffffb1611288 R12: 0000000000000000 [ 12.917964][ C0] R13: ffffffffb161f240 R14: dffffc0000000000 R15: 0000000000014770 [ 12.917968][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.917973][ C0] default_idle+0x9/0x10 [ 12.917976][ C0] default_idle_call+0x6d/0xb0 [ 12.917978][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 12.917982][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.917986][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 12.917993][ C0] do_idle+0xf6/0x160 [ 12.917997][ C0] cpu_startup_entry+0x54/0x60 [ 12.918001][ C0] rest_init+0x14b/0x260 [ 12.918004][ C0] start_kernel+0x350/0x410 [ 12.918009][ C0] x86_64_start_reservations+0x18/0x30 [ 12.918013][ C0] x86_64_start_kernel+0xf8/0x150 [ 12.918018][ C0] common_startup_64+0x13e/0x148 [ 12.918027][ C0] [ 12.938046][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.938429][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 12.938812][ C0] preempt_count: 101, expected: 0 [ 12.939021][ C0] RCU nest depth: 0, expected: 0 [ 12.939250][ C0] INFO: lockdep is turned off. [ 12.939464][ C0] Preemption disabled at: [ 12.939466][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 12.939975][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.939980][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.939982][ C0] Call Trace: [ 12.939984][ C0] [ 12.939985][ C0] dump_stack_lvl+0xb0/0xd0 [ 12.939992][ C0] __might_resched+0x360/0x5a0 [ 12.940002][ C0] down_write+0x72/0x210 [ 12.940006][ C0] ? __pfx_down_write+0x10/0x10 [ 12.940009][ C0] ? simple_recursive_removal+0x33/0x610 [ 12.940014][ C0] ? rcu_is_watching+0x12/0xc0 [ 12.940021][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 12.940026][ C0] simple_recursive_removal+0x6a/0x610 [ 12.940029][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 12.940031][ C0] ? __pfx_remove_one+0x10/0x10 [ 12.940038][ C0] debugfs_remove+0x44/0x70 [ 12.940041][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 12.940047][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.940050][ C0] ? __sk_destruct+0x383/0x780 [ 12.940056][ C0] ? rcu_do_batch+0x34c/0xf20 [ 12.940061][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.940063][ C0] ? irq_exit_rcu+0xe/0x30 [ 12.940069][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.940074][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.940079][ C0] ? pv_native_safe_halt+0xf/0x20 [ 12.940083][ C0] ? default_idle+0x9/0x10 [ 12.940085][ C0] ? default_idle_call+0x6d/0xb0 [ 12.940088][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.940093][ C0] ? do_idle+0xf6/0x160 [ 12.940096][ C0] ? cpu_startup_entry+0x54/0x60 [ 12.940099][ C0] ? rest_init+0x14b/0x260 [ 12.940101][ C0] ? start_kernel+0x350/0x410 [ 12.940111][ C0] __put_net+0x19/0x60 [ 12.940115][ C0] __sk_destruct+0x58a/0x780 [ 12.940119][ C0] ? rcu_do_batch+0x34a/0xf20 [ 12.940122][ C0] rcu_do_batch+0x34c/0xf20 [ 12.940126][ C0] ? find_held_lock+0x2b/0x80 [ 12.940130][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.940134][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.940139][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.940143][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.940148][ C0] rcu_core+0x2bb/0x500 [ 12.940153][ C0] handle_softirqs+0x218/0x620 [ 12.940159][ C0] __irq_exit_rcu+0xfa/0x160 [ 12.940162][ C0] irq_exit_rcu+0xe/0x30 [ 12.940165][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.940169][ C0] [ 12.940170][ C0] [ 12.940172][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.940175][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.940179][ C0] Code: 92 b4 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 83 07 0f 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 12.940182][ C0] RSP: 0018:ffffffffb1607df8 EFLAGS: 00000246 [ 12.940186][ C0] RAX: 0000000000066553 RBX: 1ffffffff62c0fc3 RCX: ffffffffb09a35d9 [ 12.940188][ C0] RDX: 0000000000000000 RSI: ffffffffb149175c RDI: ffffffffb0c53ca0 [ 12.940190][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005e866fa [ 12.940191][ C0] R10: ffff88802f4337d3 R11: ffffffffb1611288 R12: 0000000000000000 [ 12.940193][ C0] R13: ffffffffb161f240 R14: dffffc0000000000 R15: 0000000000014770 [ 12.940199][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.940204][ C0] default_idle+0x9/0x10 [ 12.940206][ C0] default_idle_call+0x6d/0xb0 [ 12.940209][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 12.940212][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.940216][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 12.940222][ C0] do_idle+0xf6/0x160 [ 12.940226][ C0] cpu_startup_entry+0x54/0x60 [ 12.940229][ C0] rest_init+0x14b/0x260 [ 12.940233][ C0] start_kernel+0x350/0x410 [ 12.940237][ C0] x86_64_start_reservations+0x18/0x30 [ 12.940241][ C0] x86_64_start_kernel+0xf8/0x150 [ 12.940245][ C0] common_startup_64+0x13e/0x148 [ 12.940254][ C0]