[ 13.595838][ C0] [ 13.596006][ C0] ================================ [ 13.596239][ C0] WARNING: inconsistent lock state [ 13.596552][ C0] 6.15.0-rc5-virtme #1 Not tainted [ 13.596924][ C0] -------------------------------- [ 13.597277][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.597728][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.598202][ C0] ffffffffa71bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.598865][ C0] {SOFTIRQ-ON-W} state was registered at: [ 13.599215][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.599579][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.599961][ C0] _raw_spin_lock+0x33/0x40 [ 13.600333][ C0] simple_pin_fs+0x24/0x150 [ 13.600690][ C0] start_creating.part.0+0x3f/0x2f0 [ 13.601070][ C0] debugfs_create_dir+0x6a/0x540 [ 13.601447][ C0] component_debug_init+0x17/0x30 [ 13.601845][ C0] do_one_initcall+0x8c/0x1e0 [ 13.602216][ C0] do_initcalls+0x176/0x280 [ 13.602602][ C0] kernel_init_freeable+0x22d/0x300 [ 13.602984][ C0] kernel_init+0x20/0x200 [ 13.603366][ C0] ret_from_fork+0x31/0x70 [ 13.603745][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.604128][ C0] irq event stamp: 396646 [ 13.604412][ C0] hardirqs last enabled at (396646): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.605154][ C0] hardirqs last disabled at (396645): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.605911][ C0] softirqs last enabled at (396244): [] handle_softirqs+0x358/0x620 [ 13.606571][ C0] softirqs last disabled at (396263): [] __irq_exit_rcu+0xfa/0x160 [ 13.607222][ C0] [ 13.607222][ C0] other info that might help us debug this: [ 13.607772][ C0] Possible unsafe locking scenario: [ 13.607772][ C0] [ 13.608307][ C0] CPU0 [ 13.608587][ C0] ---- [ 13.608873][ C0] lock(pin_fs_lock); [ 13.609162][ C0] [ 13.609437][ C0] lock(pin_fs_lock); [ 13.609720][ C0] [ 13.609720][ C0] *** DEADLOCK *** [ 13.609720][ C0] [ 13.610250][ C0] 1 lock held by swapper/0/0: [ 13.610632][ C0] #0: ffffffffa6f74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.611295][ C0] [ 13.611295][ C0] stack backtrace: [ 13.611747][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.611756][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.611759][ C0] Call Trace: [ 13.611762][ C0] [ 13.611765][ C0] dump_stack_lvl+0x82/0xd0 [ 13.611773][ C0] print_usage_bug.part.0+0x25f/0x360 [ 13.611782][ C0] mark_lock_irq+0x343/0x400 [ 13.611788][ C0] ? is_bpf_text_address+0x67/0x120 [ 13.611807][ C0] ? __lock_release+0x5d/0x170 [ 13.611813][ C0] ? save_trace+0x52/0x170 [ 13.611822][ C0] mark_lock+0x174/0x2f0 [ 13.611828][ C0] mark_usage+0x46/0x150 [ 13.611833][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.611839][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.611844][ C0] ? simple_pin_fs+0x24/0x150 [ 13.611851][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.611857][ C0] ? lock_acquire+0x10c/0x170 [ 13.611861][ C0] ? simple_pin_fs+0x24/0x150 [ 13.611867][ C0] _raw_spin_lock+0x33/0x40 [ 13.611872][ C0] ? simple_pin_fs+0x24/0x150 [ 13.611876][ C0] simple_pin_fs+0x24/0x150 [ 13.611882][ C0] debugfs_remove+0x35/0x70 [ 13.611889][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.611897][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.611902][ C0] ? __sk_destruct+0x383/0x780 [ 13.611909][ C0] ? rcu_do_batch+0x34c/0xf20 [ 13.611916][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.611920][ C0] ? irq_exit_rcu+0xe/0x30 [ 13.611926][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.611932][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.611938][ C0] ? pv_native_safe_halt+0xf/0x20 [ 13.611943][ C0] ? default_idle+0x9/0x10 [ 13.611948][ C0] ? default_idle_call+0x6d/0xb0 [ 13.611951][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.611956][ C0] ? do_idle+0xf6/0x160 [ 13.611960][ C0] ? cpu_startup_entry+0x54/0x60 [ 13.611964][ C0] ? rest_init+0x14b/0x260 [ 13.611968][ C0] ? start_kernel+0x350/0x410 [ 13.611978][ C0] __put_net+0x19/0x60 [ 13.611983][ C0] __sk_destruct+0x58a/0x780 [ 13.611990][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.611995][ C0] rcu_do_batch+0x34c/0xf20 [ 13.612002][ C0] ? find_held_lock+0x2b/0x80 [ 13.612008][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.612015][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.612020][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.612026][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.612033][ C0] rcu_core+0x2bb/0x500 [ 13.612039][ C0] handle_softirqs+0x218/0x620 [ 13.612048][ C0] __irq_exit_rcu+0xfa/0x160 [ 13.612053][ C0] irq_exit_rcu+0xe/0x30 [ 13.612057][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.612063][ C0] [ 13.612065][ C0] [ 13.612067][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.612072][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.612078][ 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.612083][ C0] RSP: 0018:ffffffffa6c07df8 EFLAGS: 00000242 [ 13.612088][ C0] RAX: 0000000000060be5 RBX: 1ffffffff4d80fc3 RCX: ffffffffa5f68a19 [ 13.612091][ C0] RDX: 0000000000000000 RSI: ffffffffa6a881e1 RDI: ffffffffa6250e20 [ 13.612094][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 13.612097][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.612100][ C0] R13: ffffffffa6c1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 13.612108][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.612117][ C0] default_idle+0x9/0x10 [ 13.612121][ C0] default_idle_call+0x6d/0xb0 [ 13.612125][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 13.612131][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.612137][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.612145][ C0] do_idle+0xf6/0x160 [ 13.612150][ C0] cpu_startup_entry+0x54/0x60 [ 13.612154][ C0] rest_init+0x14b/0x260 [ 13.612158][ C0] start_kernel+0x350/0x410 [ 13.612163][ C0] x86_64_start_reservations+0x18/0x30 [ 13.612169][ C0] x86_64_start_kernel+0xba/0x110 [ 13.612176][ C0] common_startup_64+0x13e/0x148 [ 13.612188][ C0] [ 13.644717][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.645063][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 13.645776][ C0] preempt_count: 101, expected: 0 [ 13.646035][ C0] RCU nest depth: 0, expected: 0 [ 13.646245][ C0] INFO: lockdep is turned off. [ 13.646450][ C0] Preemption disabled at: [ 13.646452][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 13.647034][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.647039][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.647041][ C0] Call Trace: [ 13.647043][ C0] [ 13.647045][ C0] dump_stack_lvl+0xb0/0xd0 [ 13.647051][ C0] __might_resched+0x360/0x5a0 [ 13.647058][ C0] down_write+0x72/0x210 [ 13.647061][ C0] ? __pfx_down_write+0x10/0x10 [ 13.647064][ C0] ? simple_recursive_removal+0x3a/0x860 [ 13.647068][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.647073][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.647078][ C0] simple_recursive_removal+0x166/0x860 [ 13.647081][ C0] ? __pfx_remove_one+0x10/0x10 [ 13.647086][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.647091][ C0] debugfs_remove+0x44/0x70 [ 13.647094][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.647100][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.647103][ C0] ? __sk_destruct+0x383/0x780 [ 13.647108][ C0] ? rcu_do_batch+0x34c/0xf20 [ 13.647113][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.647116][ C0] ? irq_exit_rcu+0xe/0x30 [ 13.647121][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.647124][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.647128][ C0] ? pv_native_safe_halt+0xf/0x20 [ 13.647131][ C0] ? default_idle+0x9/0x10 [ 13.647135][ C0] ? default_idle_call+0x6d/0xb0 [ 13.647137][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.647140][ C0] ? do_idle+0xf6/0x160 [ 13.647142][ C0] ? cpu_startup_entry+0x54/0x60 [ 13.647144][ C0] ? rest_init+0x14b/0x260 [ 13.647147][ C0] ? start_kernel+0x350/0x410 [ 13.647154][ C0] __put_net+0x19/0x60 [ 13.647158][ C0] __sk_destruct+0x58a/0x780 [ 13.647161][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.647165][ C0] rcu_do_batch+0x34c/0xf20 [ 13.647169][ C0] ? find_held_lock+0x2b/0x80 [ 13.647174][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.647178][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.647182][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.647185][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.647190][ C0] rcu_core+0x2bb/0x500 [ 13.647193][ C0] handle_softirqs+0x218/0x620 [ 13.647199][ C0] __irq_exit_rcu+0xfa/0x160 [ 13.647204][ C0] irq_exit_rcu+0xe/0x30 [ 13.647207][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.647212][ C0] [ 13.647214][ C0] [ 13.647216][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.647221][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.647226][ 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.647228][ C0] RSP: 0018:ffffffffa6c07df8 EFLAGS: 00000242 [ 13.647232][ C0] RAX: 0000000000060be5 RBX: 1ffffffff4d80fc3 RCX: ffffffffa5f68a19 [ 13.647234][ C0] RDX: 0000000000000000 RSI: ffffffffa6a881e1 RDI: ffffffffa6250e20 [ 13.647236][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 13.647238][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.647240][ C0] R13: ffffffffa6c1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 13.647244][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.647249][ C0] default_idle+0x9/0x10 [ 13.647253][ C0] default_idle_call+0x6d/0xb0 [ 13.647255][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 13.647258][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.647261][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.647266][ C0] do_idle+0xf6/0x160 [ 13.647269][ C0] cpu_startup_entry+0x54/0x60 [ 13.647272][ C0] rest_init+0x14b/0x260 [ 13.647275][ C0] start_kernel+0x350/0x410 [ 13.647279][ C0] x86_64_start_reservations+0x18/0x30 [ 13.647283][ C0] x86_64_start_kernel+0xba/0x110 [ 13.647287][ C0] common_startup_64+0x13e/0x148 [ 13.647295][ C0] [ 14.543022][ T229] unsigned-md5_ip (229) used greatest stack depth: 24752 bytes left