[ 13.370237][ C0] [ 13.370398][ C0] ================================ [ 13.370611][ C0] WARNING: inconsistent lock state [ 13.370825][ C0] 6.15.0-rc5-virtme #1 Not tainted [ 13.371034][ C0] -------------------------------- [ 13.371242][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.371504][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.371767][ C0] ffffffff9a1bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.372142][ C0] {SOFTIRQ-ON-W} state was registered at: [ 13.372353][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.372571][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.372782][ C0] _raw_spin_lock+0x33/0x40 [ 13.372992][ C0] simple_pin_fs+0x24/0x150 [ 13.373202][ C0] start_creating.part.0+0x3f/0x2f0 [ 13.373428][ C0] debugfs_create_dir+0x6a/0x540 [ 13.373629][ C0] component_debug_init+0x17/0x30 [ 13.373829][ C0] do_one_initcall+0x8c/0x1e0 [ 13.374030][ C0] do_initcalls+0x176/0x280 [ 13.374237][ C0] kernel_init_freeable+0x22d/0x300 [ 13.374440][ C0] kernel_init+0x20/0x200 [ 13.374638][ C0] ret_from_fork+0x31/0x70 [ 13.374836][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.375037][ C0] irq event stamp: 442460 [ 13.375198][ C0] hardirqs last enabled at (442460): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.375616][ C0] hardirqs last disabled at (442459): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.376011][ C0] softirqs last enabled at (440976): [] handle_softirqs+0x358/0x620 [ 13.376360][ C0] softirqs last disabled at (440991): [] __irq_exit_rcu+0xfa/0x160 [ 13.376713][ C0] [ 13.376713][ C0] other info that might help us debug this: [ 13.377006][ C0] Possible unsafe locking scenario: [ 13.377006][ C0] [ 13.377299][ C0] CPU0 [ 13.377443][ C0] ---- [ 13.377593][ C0] lock(pin_fs_lock); [ 13.377743][ C0] [ 13.377904][ C0] lock(pin_fs_lock); [ 13.378062][ C0] [ 13.378062][ C0] *** DEADLOCK *** [ 13.378062][ C0] [ 13.378382][ C0] 1 lock held by swapper/0/0: [ 13.378592][ C0] #0: ffffffff99f74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.378991][ C0] [ 13.378991][ C0] stack backtrace: [ 13.379259][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.379263][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.379265][ C0] Call Trace: [ 13.379267][ C0] [ 13.379269][ C0] dump_stack_lvl+0x82/0xd0 [ 13.379275][ C0] print_usage_bug.part.0+0x25f/0x360 [ 13.379279][ C0] mark_lock_irq+0x343/0x400 [ 13.379282][ C0] ? is_bpf_text_address+0x67/0x120 [ 13.379286][ C0] ? __lock_release+0x5d/0x170 [ 13.379290][ C0] ? save_trace+0x52/0x170 [ 13.379295][ C0] mark_lock+0x174/0x2f0 [ 13.379298][ C0] mark_usage+0x46/0x150 [ 13.379301][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.379305][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.379308][ C0] ? simple_pin_fs+0x24/0x150 [ 13.379312][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.379315][ C0] ? lock_acquire+0x10c/0x170 [ 13.379317][ C0] ? simple_pin_fs+0x24/0x150 [ 13.379320][ C0] _raw_spin_lock+0x33/0x40 [ 13.379324][ C0] ? simple_pin_fs+0x24/0x150 [ 13.379327][ C0] simple_pin_fs+0x24/0x150 [ 13.379330][ C0] debugfs_remove+0x35/0x70 [ 13.379334][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.379339][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.379342][ C0] ? __sk_destruct+0x383/0x780 [ 13.379347][ C0] ? rcu_do_batch+0x34c/0xf20 [ 13.379351][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.379354][ C0] ? irq_exit_rcu+0xe/0x30 [ 13.379357][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.379360][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.379364][ C0] ? pv_native_safe_halt+0xf/0x20 [ 13.379367][ C0] ? default_idle+0x9/0x10 [ 13.379370][ C0] ? default_idle_call+0x6d/0xb0 [ 13.379372][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.379375][ C0] ? do_idle+0xf6/0x160 [ 13.379377][ C0] ? cpu_startup_entry+0x54/0x60 [ 13.379379][ C0] ? rest_init+0x14b/0x260 [ 13.379382][ C0] ? start_kernel+0x350/0x410 [ 13.379388][ C0] __put_net+0x19/0x60 [ 13.379391][ C0] __sk_destruct+0x58a/0x780 [ 13.379395][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.379398][ C0] rcu_do_batch+0x34c/0xf20 [ 13.379402][ C0] ? find_held_lock+0x2b/0x80 [ 13.379406][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.379410][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.379414][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.379417][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.379421][ C0] rcu_core+0x2bb/0x500 [ 13.379425][ C0] handle_softirqs+0x218/0x620 [ 13.379430][ C0] __irq_exit_rcu+0xfa/0x160 [ 13.379433][ C0] irq_exit_rcu+0xe/0x30 [ 13.379435][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.379438][ C0] [ 13.379439][ C0] [ 13.379441][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.379444][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.379448][ 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 [ 13.379450][ C0] RSP: 0018:ffffffff99c07df8 EFLAGS: 00000242 [ 13.379454][ C0] RAX: 000000000006ba9d RBX: 1ffffffff3380fc3 RCX: ffffffff98f68a19 [ 13.379456][ C0] RDX: 0000000000000000 RSI: ffffffff99a881e1 RDI: ffffffff99250e20 [ 13.379458][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 13.379459][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.379461][ C0] R13: ffffffff99c1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 13.379465][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.379470][ C0] default_idle+0x9/0x10 [ 13.379474][ C0] default_idle_call+0x6d/0xb0 [ 13.379476][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 13.379479][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.379482][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.379487][ C0] do_idle+0xf6/0x160 [ 13.379490][ C0] cpu_startup_entry+0x54/0x60 [ 13.379492][ C0] rest_init+0x14b/0x260 [ 13.379495][ C0] start_kernel+0x350/0x410 [ 13.379499][ C0] x86_64_start_reservations+0x18/0x30 [ 13.379504][ C0] x86_64_start_kernel+0xba/0x110 [ 13.379507][ C0] common_startup_64+0x13e/0x148 [ 13.379515][ C0] [ 13.399082][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.399839][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 13.400189][ C0] preempt_count: 101, expected: 0 [ 13.400409][ C0] RCU nest depth: 0, expected: 0 [ 13.400742][ C0] INFO: lockdep is turned off. [ 13.401083][ C0] Preemption disabled at: [ 13.401085][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 13.401685][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.401690][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.401692][ C0] Call Trace: [ 13.401695][ C0] [ 13.401696][ C0] dump_stack_lvl+0xb0/0xd0 [ 13.401703][ C0] __might_resched+0x360/0x5a0 [ 13.401710][ C0] down_write+0x72/0x210 [ 13.401713][ C0] ? __pfx_down_write+0x10/0x10 [ 13.401715][ C0] ? simple_recursive_removal+0x3a/0x860 [ 13.401720][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.401725][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.401730][ C0] simple_recursive_removal+0x166/0x860 [ 13.401733][ C0] ? __pfx_remove_one+0x10/0x10 [ 13.401738][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.401743][ C0] debugfs_remove+0x44/0x70 [ 13.401746][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.401752][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.401755][ C0] ? __sk_destruct+0x383/0x780 [ 13.401760][ C0] ? rcu_do_batch+0x34c/0xf20 [ 13.401765][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.401768][ C0] ? irq_exit_rcu+0xe/0x30 [ 13.401772][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.401776][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.401780][ C0] ? pv_native_safe_halt+0xf/0x20 [ 13.401783][ C0] ? default_idle+0x9/0x10 [ 13.401786][ C0] ? default_idle_call+0x6d/0xb0 [ 13.401788][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.401791][ C0] ? do_idle+0xf6/0x160 [ 13.401793][ C0] ? cpu_startup_entry+0x54/0x60 [ 13.401795][ C0] ? rest_init+0x14b/0x260 [ 13.401798][ C0] ? start_kernel+0x350/0x410 [ 13.401805][ C0] __put_net+0x19/0x60 [ 13.401809][ C0] __sk_destruct+0x58a/0x780 [ 13.401813][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.401816][ C0] rcu_do_batch+0x34c/0xf20 [ 13.401820][ C0] ? find_held_lock+0x2b/0x80 [ 13.401825][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.401829][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.401833][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.401836][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.401840][ C0] rcu_core+0x2bb/0x500 [ 13.401844][ C0] handle_softirqs+0x218/0x620 [ 13.401849][ C0] __irq_exit_rcu+0xfa/0x160 [ 13.401852][ C0] irq_exit_rcu+0xe/0x30 [ 13.401854][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.401857][ C0] [ 13.401858][ C0] [ 13.401860][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.401862][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.401866][ 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 [ 13.401868][ C0] RSP: 0018:ffffffff99c07df8 EFLAGS: 00000242 [ 13.401872][ C0] RAX: 000000000006ba9d RBX: 1ffffffff3380fc3 RCX: ffffffff98f68a19 [ 13.401874][ C0] RDX: 0000000000000000 RSI: ffffffff99a881e1 RDI: ffffffff99250e20 [ 13.401876][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 13.401877][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.401879][ C0] R13: ffffffff99c1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 13.401883][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.401888][ C0] default_idle+0x9/0x10 [ 13.401891][ C0] default_idle_call+0x6d/0xb0 [ 13.401893][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 13.401896][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.401899][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.401904][ C0] do_idle+0xf6/0x160 [ 13.401907][ C0] cpu_startup_entry+0x54/0x60 [ 13.401910][ C0] rest_init+0x14b/0x260 [ 13.401913][ C0] start_kernel+0x350/0x410 [ 13.401917][ C0] x86_64_start_reservations+0x18/0x30 [ 13.401921][ C0] x86_64_start_kernel+0xba/0x110 [ 13.401925][ C0] common_startup_64+0x13e/0x148 [ 13.401934][ C0]