[ 13.125085][ C0] [ 13.125237][ C0] ================================ [ 13.125445][ C0] WARNING: inconsistent lock state [ 13.125655][ C0] 6.15.0-virtme #1 Not tainted [ 13.125868][ C0] -------------------------------- [ 13.126073][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.126336][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.126596][ C0] ffffffff9b9c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.126967][ C0] {SOFTIRQ-ON-W} state was registered at: [ 13.127174][ C0] __lock_acquire+0x20b/0x7e0 [ 13.127397][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.127609][ C0] _raw_spin_lock+0x33/0x40 [ 13.127815][ C0] simple_pin_fs+0x24/0x150 [ 13.128023][ C0] start_creating.part.0+0x52/0x310 [ 13.128236][ C0] debugfs_create_dir+0x6a/0x540 [ 13.128445][ C0] component_debug_init+0x17/0x30 [ 13.128654][ C0] do_one_initcall+0x8f/0x1e0 [ 13.128863][ C0] do_initcalls+0x176/0x280 [ 13.129076][ C0] kernel_init_freeable+0x22d/0x300 [ 13.129285][ C0] kernel_init+0x20/0x200 [ 13.129488][ C0] ret_from_fork+0x240/0x320 [ 13.129699][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.129907][ C0] irq event stamp: 420296 [ 13.130067][ C0] hardirqs last enabled at (420296): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.130488][ C0] hardirqs last disabled at (420295): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.130907][ C0] softirqs last enabled at (419276): [] handle_softirqs+0x358/0x620 [ 13.131279][ C0] softirqs last disabled at (419309): [] __irq_exit_rcu+0xfa/0x160 [ 13.131647][ C0] [ 13.131647][ C0] other info that might help us debug this: [ 13.131957][ C0] Possible unsafe locking scenario: [ 13.131957][ C0] [ 13.132266][ C0] CPU0 [ 13.132426][ C0] ---- [ 13.132582][ C0] lock(pin_fs_lock); [ 13.132742][ C0] [ 13.132898][ C0] lock(pin_fs_lock); [ 13.133059][ C0] [ 13.133059][ C0] *** DEADLOCK *** [ 13.133059][ C0] [ 13.133364][ C0] 1 lock held by swapper/0/0: [ 13.133574][ C0] #0: ffffffff9b7774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.133951][ C0] [ 13.133951][ C0] stack backtrace: [ 13.134214][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.134218][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.134221][ C0] Call Trace: [ 13.134222][ C0] [ 13.134224][ C0] dump_stack_lvl+0x82/0xd0 [ 13.134230][ C0] print_usage_bug.part.0+0x25f/0x360 [ 13.134235][ C0] mark_lock_irq+0x343/0x400 [ 13.134239][ C0] ? is_bpf_text_address+0x67/0x120 [ 13.134243][ C0] ? __lock_release+0x5d/0x170 [ 13.134248][ C0] ? save_trace+0x52/0x170 [ 13.134252][ C0] mark_lock+0x174/0x2f0 [ 13.134256][ C0] mark_usage+0x46/0x150 [ 13.134259][ C0] __lock_acquire+0x20b/0x7e0 [ 13.134262][ C0] ? __lock_acquire+0x44d/0x7e0 [ 13.134267][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.134270][ C0] ? simple_pin_fs+0x24/0x150 [ 13.134273][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.134278][ C0] ? lock_acquire+0x10c/0x170 [ 13.134281][ C0] ? simple_pin_fs+0x24/0x150 [ 13.134285][ C0] _raw_spin_lock+0x33/0x40 [ 13.134288][ C0] ? simple_pin_fs+0x24/0x150 [ 13.134290][ C0] simple_pin_fs+0x24/0x150 [ 13.134294][ C0] debugfs_remove+0x35/0x70 [ 13.134297][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.134302][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.134305][ C0] ? __sk_destruct+0x383/0x780 [ 13.134310][ C0] ? rcu_do_batch+0x34c/0xf20 [ 13.134313][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.134315][ C0] ? irq_exit_rcu+0xe/0x30 [ 13.134318][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.134324][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.134327][ C0] ? pv_native_safe_halt+0xf/0x20 [ 13.134330][ C0] ? default_idle+0x9/0x10 [ 13.134333][ C0] ? default_idle_call+0x6d/0xb0 [ 13.134335][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.134339][ C0] ? do_idle+0xf6/0x160 [ 13.134341][ C0] ? cpu_startup_entry+0x54/0x60 [ 13.134344][ C0] ? rest_init+0x14b/0x260 [ 13.134347][ C0] ? start_kernel+0x350/0x410 [ 13.134352][ C0] __put_net+0x19/0x60 [ 13.134356][ C0] __sk_destruct+0x58a/0x780 [ 13.134360][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.134363][ C0] rcu_do_batch+0x34c/0xf20 [ 13.134368][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.134371][ C0] ? __lock_release+0x5d/0x170 [ 13.134375][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.134378][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.134383][ C0] rcu_core+0x2bb/0x500 [ 13.134387][ C0] handle_softirqs+0x218/0x620 [ 13.134393][ C0] __irq_exit_rcu+0xfa/0x160 [ 13.134396][ C0] irq_exit_rcu+0xe/0x30 [ 13.134399][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.134403][ C0] [ 13.134404][ C0] [ 13.134405][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.134408][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.134412][ 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 [ 13.134415][ C0] RSP: 0018:ffffffff9b407df8 EFLAGS: 00000242 [ 13.134418][ C0] RAX: 00000000000665e9 RBX: 1ffffffff3680fc3 RCX: ffffffff9a7a35d9 [ 13.134420][ C0] RDX: 0000000000000000 RSI: ffffffff9b29175c RDI: ffffffff9aa53ca0 [ 13.134422][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 13.134424][ C0] R10: ffff8880360337d3 R11: ffffffff9b411288 R12: 0000000000000000 [ 13.134425][ C0] R13: ffffffff9b41f240 R14: dffffc0000000000 R15: 0000000000014770 [ 13.134429][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.134434][ C0] default_idle+0x9/0x10 [ 13.134436][ C0] default_idle_call+0x6d/0xb0 [ 13.134438][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 13.134442][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.134446][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 13.134451][ C0] do_idle+0xf6/0x160 [ 13.134455][ C0] cpu_startup_entry+0x54/0x60 [ 13.134459][ C0] rest_init+0x14b/0x260 [ 13.134462][ C0] start_kernel+0x350/0x410 [ 13.134466][ C0] x86_64_start_reservations+0x18/0x30 [ 13.134470][ C0] x86_64_start_kernel+0xf8/0x150 [ 13.134475][ C0] common_startup_64+0x13e/0x148 [ 13.134484][ C0] [ 13.151399][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.151745][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 13.152226][ C0] preempt_count: 101, expected: 0 [ 13.152423][ C0] RCU nest depth: 0, expected: 0 [ 13.152615][ C0] INFO: lockdep is turned off. [ 13.152809][ C0] Preemption disabled at: [ 13.152811][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 13.153267][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.153271][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.153273][ C0] Call Trace: [ 13.153275][ C0] [ 13.153277][ C0] dump_stack_lvl+0xb0/0xd0 [ 13.153282][ C0] __might_resched+0x360/0x5a0 [ 13.153290][ C0] down_write+0x72/0x210 [ 13.153293][ C0] ? __pfx_down_write+0x10/0x10 [ 13.153296][ C0] ? simple_recursive_removal+0x33/0x610 [ 13.153300][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.153305][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.153310][ C0] simple_recursive_removal+0x6a/0x610 [ 13.153313][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.153315][ C0] ? __pfx_remove_one+0x10/0x10 [ 13.153321][ C0] debugfs_remove+0x44/0x70 [ 13.153324][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.153328][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.153331][ C0] ? __sk_destruct+0x383/0x780 [ 13.153335][ C0] ? rcu_do_batch+0x34c/0xf20 [ 13.153339][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.153341][ C0] ? irq_exit_rcu+0xe/0x30 [ 13.153346][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.153350][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.153354][ C0] ? pv_native_safe_halt+0xf/0x20 [ 13.153357][ C0] ? default_idle+0x9/0x10 [ 13.153359][ C0] ? default_idle_call+0x6d/0xb0 [ 13.153362][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.153365][ C0] ? do_idle+0xf6/0x160 [ 13.153368][ C0] ? cpu_startup_entry+0x54/0x60 [ 13.153371][ C0] ? rest_init+0x14b/0x260 [ 13.153374][ C0] ? start_kernel+0x350/0x410 [ 13.153382][ C0] __put_net+0x19/0x60 [ 13.153386][ C0] __sk_destruct+0x58a/0x780 [ 13.153390][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.153393][ C0] rcu_do_batch+0x34c/0xf20 [ 13.153398][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.153401][ C0] ? __lock_release+0x5d/0x170 [ 13.153406][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.153409][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.153415][ C0] rcu_core+0x2bb/0x500 [ 13.153420][ C0] handle_softirqs+0x218/0x620 [ 13.153425][ C0] __irq_exit_rcu+0xfa/0x160 [ 13.153429][ C0] irq_exit_rcu+0xe/0x30 [ 13.153432][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.153436][ C0] [ 13.153437][ C0] [ 13.153438][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.153441][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.153444][ 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 [ 13.153447][ C0] RSP: 0018:ffffffff9b407df8 EFLAGS: 00000242 [ 13.153450][ C0] RAX: 00000000000665e9 RBX: 1ffffffff3680fc3 RCX: ffffffff9a7a35d9 [ 13.153452][ C0] RDX: 0000000000000000 RSI: ffffffff9b29175c RDI: ffffffff9aa53ca0 [ 13.153454][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 13.153455][ C0] R10: ffff8880360337d3 R11: ffffffff9b411288 R12: 0000000000000000 [ 13.153457][ C0] R13: ffffffff9b41f240 R14: dffffc0000000000 R15: 0000000000014770 [ 13.153461][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.153465][ C0] default_idle+0x9/0x10 [ 13.153468][ C0] default_idle_call+0x6d/0xb0 [ 13.153470][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 13.153474][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.153478][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 13.153483][ C0] do_idle+0xf6/0x160 [ 13.153487][ C0] cpu_startup_entry+0x54/0x60 [ 13.153490][ C0] rest_init+0x14b/0x260 [ 13.153493][ C0] start_kernel+0x350/0x410 [ 13.153497][ C0] x86_64_start_reservations+0x18/0x30 [ 13.153501][ C0] x86_64_start_kernel+0xf8/0x150 [ 13.153506][ C0] common_startup_64+0x13e/0x148 [ 13.153515][ C0]