[ 15.462635][ C0] [ 15.462822][ C0] ================================ [ 15.463044][ C0] WARNING: inconsistent lock state [ 15.463264][ C0] 6.15.0-virtme #1 Not tainted [ 15.463487][ C0] -------------------------------- [ 15.463747][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.464024][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.464308][ C0] ffffffffb73c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.464694][ C0] {SOFTIRQ-ON-W} state was registered at: [ 15.464911][ C0] __lock_acquire+0x20b/0x7e0 [ 15.465134][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.465357][ C0] _raw_spin_lock+0x33/0x40 [ 15.465580][ C0] simple_pin_fs+0x24/0x150 [ 15.465801][ C0] start_creating.part.0+0x52/0x310 [ 15.466026][ C0] debugfs_create_dir+0x6a/0x540 [ 15.466248][ C0] component_debug_init+0x17/0x30 [ 15.466473][ C0] do_one_initcall+0x8f/0x1e0 [ 15.466720][ C0] do_initcalls+0x176/0x280 [ 15.466949][ C0] kernel_init_freeable+0x22d/0x300 [ 15.467172][ C0] kernel_init+0x20/0x200 [ 15.467391][ C0] ret_from_fork+0x240/0x320 [ 15.467612][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.467856][ C0] irq event stamp: 398234 [ 15.468022][ C0] hardirqs last enabled at (398234): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.468459][ C0] hardirqs last disabled at (398233): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.468893][ C0] softirqs last enabled at (397806): [] handle_softirqs+0x358/0x620 [ 15.469282][ C0] softirqs last disabled at (397813): [] __irq_exit_rcu+0xfa/0x160 [ 15.469671][ C0] [ 15.469671][ C0] other info that might help us debug this: [ 15.469993][ C0] Possible unsafe locking scenario: [ 15.469993][ C0] [ 15.470318][ C0] CPU0 [ 15.470482][ C0] ---- [ 15.470655][ C0] lock(pin_fs_lock); [ 15.470849][ C0] [ 15.471011][ C0] lock(pin_fs_lock); [ 15.471178][ C0] [ 15.471178][ C0] *** DEADLOCK *** [ 15.471178][ C0] [ 15.471507][ C0] 1 lock held by swapper/0/0: [ 15.471729][ C0] #0: ffffffffb71774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.472116][ C0] [ 15.472116][ C0] stack backtrace: [ 15.472395][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.472400][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.472402][ C0] Call Trace: [ 15.472405][ C0] [ 15.472407][ C0] dump_stack_lvl+0x82/0xd0 [ 15.472415][ C0] print_usage_bug.part.0+0x25f/0x360 [ 15.472421][ C0] mark_lock_irq+0x343/0x400 [ 15.472424][ C0] ? is_bpf_text_address+0x67/0x120 [ 15.472431][ C0] ? __lock_release+0x5d/0x170 [ 15.472435][ C0] ? save_trace+0x52/0x170 [ 15.472440][ C0] mark_lock+0x174/0x2f0 [ 15.472444][ C0] mark_usage+0x46/0x150 [ 15.472447][ C0] __lock_acquire+0x20b/0x7e0 [ 15.472451][ C0] ? __lock_acquire+0x44d/0x7e0 [ 15.472455][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.472458][ C0] ? simple_pin_fs+0x24/0x150 [ 15.472464][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.472470][ C0] ? lock_acquire+0x10c/0x170 [ 15.472473][ C0] ? simple_pin_fs+0x24/0x150 [ 15.472477][ C0] _raw_spin_lock+0x33/0x40 [ 15.472480][ C0] ? simple_pin_fs+0x24/0x150 [ 15.472483][ C0] simple_pin_fs+0x24/0x150 [ 15.472486][ C0] debugfs_remove+0x35/0x70 [ 15.472491][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.472497][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.472500][ C0] ? __sk_destruct+0x383/0x780 [ 15.472507][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.472510][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.472512][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.472516][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.472522][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.472526][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.472530][ C0] ? default_idle+0x9/0x10 [ 15.472532][ C0] ? default_idle_call+0x6d/0xb0 [ 15.472535][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.472541][ C0] ? do_idle+0xf6/0x160 [ 15.472543][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.472547][ C0] ? rest_init+0x14b/0x260 [ 15.472551][ C0] ? start_kernel+0x350/0x410 [ 15.472561][ C0] __put_net+0x19/0x60 [ 15.472566][ C0] __sk_destruct+0x58a/0x780 [ 15.472571][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.472575][ C0] rcu_do_batch+0x34c/0xf20 [ 15.472580][ C0] ? find_held_lock+0x2b/0x80 [ 15.472584][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.472589][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.472593][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.472598][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.472605][ C0] rcu_core+0x2bb/0x500 [ 15.472613][ C0] handle_softirqs+0x218/0x620 [ 15.472622][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.472625][ C0] irq_exit_rcu+0xe/0x30 [ 15.472628][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.472633][ C0] [ 15.472634][ C0] [ 15.472636][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.472639][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.472644][ 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 [ 15.472647][ C0] RSP: 0018:ffffffffb6e07df8 EFLAGS: 00000246 [ 15.472651][ C0] RAX: 00000000000611f3 RBX: 1ffffffff6dc0fc3 RCX: ffffffffb61a35d9 [ 15.472653][ C0] RDX: 0000000000000000 RSI: ffffffffb6c9175c RDI: ffffffffb6453ca0 [ 15.472655][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 15.472656][ C0] R10: ffff8880360337d3 R11: ffffffffb6e11288 R12: 0000000000000000 [ 15.472658][ C0] R13: ffffffffb6e1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.472662][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.472667][ C0] default_idle+0x9/0x10 [ 15.472669][ C0] default_idle_call+0x6d/0xb0 [ 15.472672][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.472675][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.472680][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.472687][ C0] do_idle+0xf6/0x160 [ 15.472691][ C0] cpu_startup_entry+0x54/0x60 [ 15.472694][ C0] rest_init+0x14b/0x260 [ 15.472697][ C0] start_kernel+0x350/0x410 [ 15.472701][ C0] x86_64_start_reservations+0x18/0x30 [ 15.472706][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.472711][ C0] common_startup_64+0x13e/0x148 [ 15.472721][ C0] [ 15.492461][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.492820][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 15.493201][ C0] preempt_count: 101, expected: 0 [ 15.493412][ C0] RCU nest depth: 0, expected: 0 [ 15.493621][ C0] INFO: lockdep is turned off. [ 15.493856][ C0] Preemption disabled at: [ 15.493858][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 15.494360][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.494365][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.494367][ C0] Call Trace: [ 15.494370][ C0] [ 15.494372][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.494379][ C0] __might_resched+0x360/0x5a0 [ 15.494389][ C0] down_write+0x72/0x210 [ 15.494393][ C0] ? __pfx_down_write+0x10/0x10 [ 15.494396][ C0] ? simple_recursive_removal+0x33/0x610 [ 15.494402][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.494409][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.494414][ C0] simple_recursive_removal+0x6a/0x610 [ 15.494417][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.494420][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.494427][ C0] debugfs_remove+0x44/0x70 [ 15.494430][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.494436][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.494438][ C0] ? __sk_destruct+0x383/0x780 [ 15.494446][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.494450][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.494453][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.494461][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.494467][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.494472][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.494475][ C0] ? default_idle+0x9/0x10 [ 15.494478][ C0] ? default_idle_call+0x6d/0xb0 [ 15.494481][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.494486][ C0] ? do_idle+0xf6/0x160 [ 15.494489][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.494492][ C0] ? rest_init+0x14b/0x260 [ 15.494494][ C0] ? start_kernel+0x350/0x410 [ 15.494504][ C0] __put_net+0x19/0x60 [ 15.494509][ C0] __sk_destruct+0x58a/0x780 [ 15.494514][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.494517][ C0] rcu_do_batch+0x34c/0xf20 [ 15.494520][ C0] ? find_held_lock+0x2b/0x80 [ 15.494525][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.494529][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.494534][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.494538][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.494543][ C0] rcu_core+0x2bb/0x500 [ 15.494548][ C0] handle_softirqs+0x218/0x620 [ 15.494554][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.494557][ C0] irq_exit_rcu+0xe/0x30 [ 15.494560][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.494564][ C0] [ 15.494565][ C0] [ 15.494566][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.494569][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.494574][ 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 [ 15.494577][ C0] RSP: 0018:ffffffffb6e07df8 EFLAGS: 00000246 [ 15.494581][ C0] RAX: 00000000000611f3 RBX: 1ffffffff6dc0fc3 RCX: ffffffffb61a35d9 [ 15.494583][ C0] RDX: 0000000000000000 RSI: ffffffffb6c9175c RDI: ffffffffb6453ca0 [ 15.494584][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 15.494586][ C0] R10: ffff8880360337d3 R11: ffffffffb6e11288 R12: 0000000000000000 [ 15.494588][ C0] R13: ffffffffb6e1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.494591][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.494596][ C0] default_idle+0x9/0x10 [ 15.494599][ C0] default_idle_call+0x6d/0xb0 [ 15.494601][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.494605][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.494609][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.494616][ C0] do_idle+0xf6/0x160 [ 15.494620][ C0] cpu_startup_entry+0x54/0x60 [ 15.494623][ C0] rest_init+0x14b/0x260 [ 15.494626][ C0] start_kernel+0x350/0x410 [ 15.494631][ C0] x86_64_start_reservations+0x18/0x30 [ 15.494635][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.494640][ C0] common_startup_64+0x13e/0x148 [ 15.494650][ C0]