[ 16.232137][ C0] [ 16.232332][ C0] ================================ [ 16.232561][ C0] WARNING: inconsistent lock state [ 16.232793][ C0] 6.15.0-virtme #1 Not tainted [ 16.233022][ C0] -------------------------------- [ 16.233266][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.233620][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.233937][ C0] ffffffffb49c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.234468][ C0] {SOFTIRQ-ON-W} state was registered at: [ 16.234694][ C0] __lock_acquire+0x20b/0x7e0 [ 16.234920][ C0] lock_acquire.part.0+0xb6/0x240 [ 16.235165][ C0] _raw_spin_lock+0x33/0x40 [ 16.235428][ C0] simple_pin_fs+0x24/0x150 [ 16.235657][ C0] start_creating.part.0+0x52/0x310 [ 16.235869][ C0] debugfs_create_dir+0x6a/0x540 [ 16.236077][ C0] component_debug_init+0x17/0x30 [ 16.236298][ C0] do_one_initcall+0x8f/0x1e0 [ 16.236524][ C0] do_initcalls+0x176/0x280 [ 16.236743][ C0] kernel_init_freeable+0x22d/0x300 [ 16.236984][ C0] kernel_init+0x20/0x200 [ 16.237195][ C0] ret_from_fork+0x240/0x320 [ 16.237426][ C0] ret_from_fork_asm+0x1a/0x30 [ 16.237643][ C0] irq event stamp: 427776 [ 16.237801][ C0] hardirqs last enabled at (427776): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.238312][ C0] hardirqs last disabled at (427775): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.238801][ C0] softirqs last enabled at (426636): [] handle_softirqs+0x358/0x620 [ 16.239210][ C0] softirqs last disabled at (426649): [] __irq_exit_rcu+0xfa/0x160 [ 16.239668][ C0] [ 16.239668][ C0] other info that might help us debug this: [ 16.240012][ C0] Possible unsafe locking scenario: [ 16.240012][ C0] [ 16.240390][ C0] CPU0 [ 16.240577][ C0] ---- [ 16.240733][ C0] lock(pin_fs_lock); [ 16.240895][ C0] [ 16.241058][ C0] lock(pin_fs_lock); [ 16.241218][ C0] [ 16.241218][ C0] *** DEADLOCK *** [ 16.241218][ C0] [ 16.241569][ C0] 1 lock held by swapper/0/0: [ 16.241782][ C0] #0: ffffffffb47774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.242183][ C0] [ 16.242183][ C0] stack backtrace: [ 16.242477][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.242482][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.242485][ C0] Call Trace: [ 16.242487][ C0] [ 16.242489][ C0] dump_stack_lvl+0x82/0xd0 [ 16.242496][ C0] print_usage_bug.part.0+0x25f/0x360 [ 16.242502][ C0] mark_lock_irq+0x343/0x400 [ 16.242506][ C0] ? is_bpf_text_address+0x67/0x120 [ 16.242511][ C0] ? __lock_release+0x5d/0x170 [ 16.242516][ C0] ? save_trace+0x52/0x170 [ 16.242520][ C0] mark_lock+0x174/0x2f0 [ 16.242524][ C0] mark_usage+0x46/0x150 [ 16.242527][ C0] __lock_acquire+0x20b/0x7e0 [ 16.242531][ C0] ? __lock_acquire+0x44d/0x7e0 [ 16.242535][ C0] lock_acquire.part.0+0xb6/0x240 [ 16.242539][ C0] ? simple_pin_fs+0x24/0x150 [ 16.242543][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.242548][ C0] ? lock_acquire+0x10c/0x170 [ 16.242551][ C0] ? simple_pin_fs+0x24/0x150 [ 16.242555][ C0] _raw_spin_lock+0x33/0x40 [ 16.242559][ C0] ? simple_pin_fs+0x24/0x150 [ 16.242562][ C0] simple_pin_fs+0x24/0x150 [ 16.242565][ C0] debugfs_remove+0x35/0x70 [ 16.242570][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 16.242574][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.242577][ C0] ? __sk_destruct+0x383/0x780 [ 16.242582][ C0] ? rcu_do_batch+0x34c/0xf20 [ 16.242585][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.242588][ C0] ? irq_exit_rcu+0xe/0x30 [ 16.242592][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.242596][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.242600][ C0] ? pv_native_safe_halt+0xf/0x20 [ 16.242604][ C0] ? default_idle+0x9/0x10 [ 16.242606][ C0] ? default_idle_call+0x6d/0xb0 [ 16.242608][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.242612][ C0] ? do_idle+0xf6/0x160 [ 16.242615][ C0] ? cpu_startup_entry+0x54/0x60 [ 16.242618][ C0] ? rest_init+0x14b/0x260 [ 16.242621][ C0] ? start_kernel+0x350/0x410 [ 16.242629][ C0] __put_net+0x19/0x60 [ 16.242633][ C0] __sk_destruct+0x58a/0x780 [ 16.242637][ C0] ? rcu_do_batch+0x34a/0xf20 [ 16.242640][ C0] rcu_do_batch+0x34c/0xf20 [ 16.242645][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.242648][ C0] ? __lock_release+0x5d/0x170 [ 16.242652][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.242655][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.242660][ C0] rcu_core+0x2bb/0x500 [ 16.242665][ C0] handle_softirqs+0x218/0x620 [ 16.242671][ C0] __irq_exit_rcu+0xfa/0x160 [ 16.242674][ C0] irq_exit_rcu+0xe/0x30 [ 16.242677][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.242681][ C0] [ 16.242682][ C0] [ 16.242683][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.242686][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.242691][ C0] Code: a2 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 17 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 [ 16.242693][ C0] RSP: 0018:ffffffffb4407df8 EFLAGS: 00000242 [ 16.242697][ C0] RAX: 0000000000068297 RBX: 1ffffffff6880fc3 RCX: ffffffffb37a25d9 [ 16.242699][ C0] RDX: 0000000000000000 RSI: ffffffffb429175c RDI: ffffffffb3a53ca0 [ 16.242701][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 16.242702][ C0] R10: ffff8880360337d3 R11: ffffffffb4411288 R12: 0000000000000000 [ 16.242704][ C0] R13: ffffffffb441f240 R14: dffffc0000000000 R15: 0000000000014770 [ 16.242724][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.242729][ C0] default_idle+0x9/0x10 [ 16.242731][ C0] default_idle_call+0x6d/0xb0 [ 16.242734][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 16.242738][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.242742][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.242748][ C0] do_idle+0xf6/0x160 [ 16.242752][ C0] cpu_startup_entry+0x54/0x60 [ 16.242755][ C0] rest_init+0x14b/0x260 [ 16.242759][ C0] start_kernel+0x350/0x410 [ 16.242763][ C0] x86_64_start_reservations+0x18/0x30 [ 16.242767][ C0] x86_64_start_kernel+0xf8/0x150 [ 16.242772][ C0] common_startup_64+0x13e/0x148 [ 16.242781][ C0] [ 16.269156][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.269747][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 16.270481][ C0] preempt_count: 101, expected: 0 [ 16.270740][ C0] RCU nest depth: 0, expected: 0 [ 16.271063][ C0] INFO: lockdep is turned off. [ 16.271389][ C0] Preemption disabled at: [ 16.271392][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 16.272204][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.272212][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.272215][ C0] Call Trace: [ 16.272218][ C0] [ 16.272221][ C0] dump_stack_lvl+0xb0/0xd0 [ 16.272232][ C0] __might_resched+0x360/0x5a0 [ 16.272244][ C0] down_write+0x72/0x210 [ 16.272251][ C0] ? __pfx_down_write+0x10/0x10 [ 16.272255][ C0] ? simple_recursive_removal+0x33/0x610 [ 16.272262][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.272272][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.272279][ C0] simple_recursive_removal+0x6a/0x610 [ 16.272284][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.272288][ C0] ? __pfx_remove_one+0x10/0x10 [ 16.272298][ C0] debugfs_remove+0x44/0x70 [ 16.272303][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 16.272310][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.272315][ C0] ? __sk_destruct+0x383/0x780 [ 16.272322][ C0] ? rcu_do_batch+0x34c/0xf20 [ 16.272329][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.272333][ C0] ? irq_exit_rcu+0xe/0x30 [ 16.272340][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.272347][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.272353][ C0] ? pv_native_safe_halt+0xf/0x20 [ 16.272358][ C0] ? default_idle+0x9/0x10 [ 16.272362][ C0] ? default_idle_call+0x6d/0xb0 [ 16.272366][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.272373][ C0] ? do_idle+0xf6/0x160 [ 16.272378][ C0] ? cpu_startup_entry+0x54/0x60 [ 16.272382][ C0] ? rest_init+0x14b/0x260 [ 16.272387][ C0] ? start_kernel+0x350/0x410 [ 16.272399][ C0] __put_net+0x19/0x60 [ 16.272405][ C0] __sk_destruct+0x58a/0x780 [ 16.272412][ C0] ? rcu_do_batch+0x34a/0xf20 [ 16.272417][ C0] rcu_do_batch+0x34c/0xf20 [ 16.272426][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.272433][ C0] ? __lock_release+0x5d/0x170 [ 16.272441][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.272447][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.272455][ C0] rcu_core+0x2bb/0x500 [ 16.272463][ C0] handle_softirqs+0x218/0x620 [ 16.272473][ C0] __irq_exit_rcu+0xfa/0x160 [ 16.272478][ C0] irq_exit_rcu+0xe/0x30 [ 16.272482][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.272488][ C0] [ 16.272489][ C0] [ 16.272492][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.272497][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.272502][ C0] Code: a2 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 17 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 [ 16.272505][ C0] RSP: 0018:ffffffffb4407df8 EFLAGS: 00000242 [ 16.272511][ C0] RAX: 0000000000068297 RBX: 1ffffffff6880fc3 RCX: ffffffffb37a25d9 [ 16.272516][ C0] RDX: 0000000000000000 RSI: ffffffffb429175c RDI: ffffffffb3a53ca0 [ 16.272519][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 16.272523][ C0] R10: ffff8880360337d3 R11: ffffffffb4411288 R12: 0000000000000000 [ 16.272526][ C0] R13: ffffffffb441f240 R14: dffffc0000000000 R15: 0000000000014770 [ 16.272534][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.272543][ C0] default_idle+0x9/0x10 [ 16.272547][ C0] default_idle_call+0x6d/0xb0 [ 16.272551][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 16.272557][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.272565][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.272574][ C0] do_idle+0xf6/0x160 [ 16.272581][ C0] cpu_startup_entry+0x54/0x60 [ 16.272587][ C0] rest_init+0x14b/0x260 [ 16.272593][ C0] start_kernel+0x350/0x410 [ 16.272601][ C0] x86_64_start_reservations+0x18/0x30 [ 16.272608][ C0] x86_64_start_kernel+0xf8/0x150 [ 16.272615][ C0] common_startup_64+0x13e/0x148 [ 16.272631][ C0]