[ 15.273726][ C0] [ 15.273870][ C0] ================================ [ 15.274075][ C0] WARNING: inconsistent lock state [ 15.274282][ C0] 6.15.0-virtme #1 Not tainted [ 15.274485][ C0] -------------------------------- [ 15.274688][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.274943][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.275202][ C0] ffffffff917c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.275554][ C0] {SOFTIRQ-ON-W} state was registered at: [ 15.275750][ C0] __lock_acquire+0x20b/0x7e0 [ 15.275952][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.276150][ C0] _raw_spin_lock+0x33/0x40 [ 15.276378][ C0] simple_pin_fs+0x24/0x150 [ 15.276585][ C0] start_creating.part.0+0x52/0x310 [ 15.276792][ C0] debugfs_create_dir+0x6a/0x540 [ 15.276997][ C0] component_debug_init+0x17/0x30 [ 15.277203][ C0] do_one_initcall+0x8f/0x1e0 [ 15.277409][ C0] do_initcalls+0x176/0x280 [ 15.277620][ C0] kernel_init_freeable+0x22d/0x300 [ 15.277819][ C0] kernel_init+0x20/0x200 [ 15.278017][ C0] ret_from_fork+0x240/0x320 [ 15.278216][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.278414][ C0] irq event stamp: 477134 [ 15.278566][ C0] hardirqs last enabled at (477134): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.278959][ C0] hardirqs last disabled at (477133): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.279361][ C0] softirqs last enabled at (475122): [] handle_softirqs+0x358/0x620 [ 15.279707][ C0] softirqs last disabled at (475141): [] __irq_exit_rcu+0xfa/0x160 [ 15.280053][ C0] [ 15.280053][ C0] other info that might help us debug this: [ 15.280346][ C0] Possible unsafe locking scenario: [ 15.280346][ C0] [ 15.280636][ C0] CPU0 [ 15.280782][ C0] ---- [ 15.280928][ C0] lock(pin_fs_lock); [ 15.281078][ C0] [ 15.281228][ C0] lock(pin_fs_lock); [ 15.281377][ C0] [ 15.281377][ C0] *** DEADLOCK *** [ 15.281377][ C0] [ 15.281671][ C0] 1 lock held by swapper/0/0: [ 15.281872][ C0] #0: ffffffff915774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.282226][ C0] [ 15.282226][ C0] stack backtrace: [ 15.282495][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.282500][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.282501][ C0] Call Trace: [ 15.282503][ C0] [ 15.282505][ C0] dump_stack_lvl+0x82/0xd0 [ 15.282511][ C0] print_usage_bug.part.0+0x25f/0x360 [ 15.282516][ C0] mark_lock_irq+0x343/0x400 [ 15.282519][ C0] ? is_bpf_text_address+0x67/0x120 [ 15.282524][ C0] ? __lock_release+0x5d/0x170 [ 15.282528][ C0] ? save_trace+0x52/0x170 [ 15.282534][ C0] mark_lock+0x174/0x2f0 [ 15.282538][ C0] mark_usage+0x46/0x150 [ 15.282541][ C0] __lock_acquire+0x20b/0x7e0 [ 15.282544][ C0] ? __lock_acquire+0x44d/0x7e0 [ 15.282548][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.282551][ C0] ? simple_pin_fs+0x24/0x150 [ 15.282555][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.282559][ C0] ? lock_acquire+0x10c/0x170 [ 15.282562][ C0] ? simple_pin_fs+0x24/0x150 [ 15.282566][ C0] _raw_spin_lock+0x33/0x40 [ 15.282570][ C0] ? simple_pin_fs+0x24/0x150 [ 15.282573][ C0] simple_pin_fs+0x24/0x150 [ 15.282577][ C0] debugfs_remove+0x35/0x70 [ 15.282580][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.282586][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.282590][ C0] ? __sk_destruct+0x383/0x780 [ 15.282596][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.282598][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.282601][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.282604][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.282609][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.282613][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.282616][ C0] ? default_idle+0x9/0x10 [ 15.282619][ C0] ? default_idle_call+0x6d/0xb0 [ 15.282621][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.282624][ C0] ? do_idle+0xf6/0x160 [ 15.282626][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.282629][ C0] ? rest_init+0x14b/0x260 [ 15.282632][ C0] ? start_kernel+0x350/0x410 [ 15.282637][ C0] __put_net+0x19/0x60 [ 15.282641][ C0] __sk_destruct+0x58a/0x780 [ 15.282645][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.282648][ C0] rcu_do_batch+0x34c/0xf20 [ 15.282651][ C0] ? find_held_lock+0x2b/0x80 [ 15.282655][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.282658][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.282662][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.282665][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.282669][ C0] rcu_core+0x2bb/0x500 [ 15.282674][ C0] handle_softirqs+0x218/0x620 [ 15.282679][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.282682][ C0] irq_exit_rcu+0xe/0x30 [ 15.282685][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.282688][ C0] [ 15.282690][ C0] [ 15.282691][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.282694][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.282698][ C0] Code: a2 b5 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 47 10 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.282701][ C0] RSP: 0018:ffffffff91207df8 EFLAGS: 00000246 [ 15.282704][ C0] RAX: 0000000000074003 RBX: 1ffffffff2240fc3 RCX: ffffffff9058f5d9 [ 15.282706][ C0] RDX: 0000000000000000 RSI: ffffffff9108f4e4 RDI: ffffffff90853be0 [ 15.282708][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 15.282709][ C0] R10: ffff8880360337d3 R11: ffffffff91211288 R12: 0000000000000000 [ 15.282711][ C0] R13: ffffffff9121f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.282715][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.282719][ C0] default_idle+0x9/0x10 [ 15.282722][ C0] default_idle_call+0x6d/0xb0 [ 15.282725][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.282728][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.282731][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.282736][ C0] do_idle+0xf6/0x160 [ 15.282740][ C0] cpu_startup_entry+0x54/0x60 [ 15.282743][ C0] rest_init+0x14b/0x260 [ 15.282746][ C0] start_kernel+0x350/0x410 [ 15.282750][ C0] x86_64_start_reservations+0x18/0x30 [ 15.282754][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.282758][ C0] common_startup_64+0x13e/0x148 [ 15.282767][ C0] [ 15.299746][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.300081][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 15.300427][ C0] preempt_count: 101, expected: 0 [ 15.300619][ C0] RCU nest depth: 0, expected: 0 [ 15.300810][ C0] INFO: lockdep is turned off. [ 15.301001][ C0] Preemption disabled at: [ 15.301002][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 15.301573][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.301577][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.301579][ C0] Call Trace: [ 15.301581][ C0] [ 15.301582][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.301587][ C0] __might_resched+0x360/0x5a0 [ 15.301594][ C0] down_write+0x72/0x210 [ 15.301597][ C0] ? __pfx_down_write+0x10/0x10 [ 15.301600][ C0] ? simple_recursive_removal+0x33/0x610 [ 15.301604][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.301609][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.301614][ C0] simple_recursive_removal+0x6a/0x610 [ 15.301617][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.301620][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.301625][ C0] debugfs_remove+0x44/0x70 [ 15.301628][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.301632][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.301636][ C0] ? __sk_destruct+0x383/0x780 [ 15.301640][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.301643][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.301646][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.301650][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.301655][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.301658][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.301661][ C0] ? default_idle+0x9/0x10 [ 15.301664][ C0] ? default_idle_call+0x6d/0xb0 [ 15.301666][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.301670][ C0] ? do_idle+0xf6/0x160 [ 15.301672][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.301674][ C0] ? rest_init+0x14b/0x260 [ 15.301677][ C0] ? start_kernel+0x350/0x410 [ 15.301684][ C0] __put_net+0x19/0x60 [ 15.301687][ C0] __sk_destruct+0x58a/0x780 [ 15.301691][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.301694][ C0] rcu_do_batch+0x34c/0xf20 [ 15.301697][ C0] ? find_held_lock+0x2b/0x80 [ 15.301702][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.301705][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.301710][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.301713][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.301717][ C0] rcu_core+0x2bb/0x500 [ 15.301722][ C0] handle_softirqs+0x218/0x620 [ 15.301727][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.301730][ C0] irq_exit_rcu+0xe/0x30 [ 15.301733][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.301737][ C0] [ 15.301738][ C0] [ 15.301739][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.301742][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.301746][ C0] Code: a2 b5 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 47 10 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.301748][ C0] RSP: 0018:ffffffff91207df8 EFLAGS: 00000246 [ 15.301751][ C0] RAX: 0000000000074003 RBX: 1ffffffff2240fc3 RCX: ffffffff9058f5d9 [ 15.301753][ C0] RDX: 0000000000000000 RSI: ffffffff9108f4e4 RDI: ffffffff90853be0 [ 15.301754][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 15.301756][ C0] R10: ffff8880360337d3 R11: ffffffff91211288 R12: 0000000000000000 [ 15.301757][ C0] R13: ffffffff9121f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.301761][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.301766][ C0] default_idle+0x9/0x10 [ 15.301768][ C0] default_idle_call+0x6d/0xb0 [ 15.301771][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.301774][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.301778][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.301783][ C0] do_idle+0xf6/0x160 [ 15.301786][ C0] cpu_startup_entry+0x54/0x60 [ 15.301789][ C0] rest_init+0x14b/0x260 [ 15.301793][ C0] start_kernel+0x350/0x410 [ 15.301796][ C0] x86_64_start_reservations+0x18/0x30 [ 15.301801][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.301804][ C0] common_startup_64+0x13e/0x148 [ 15.301812][ C0] [ 17.023260][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.023634][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 17.023942][ C2] preempt_count: 101, expected: 0 [ 17.024120][ C2] RCU nest depth: 0, expected: 0 [ 17.024314][ C2] INFO: lockdep is turned off. [ 17.024492][ C2] Preemption disabled at: [ 17.024494][ C2] [<0000000000000000>] 0x0 [ 17.024816][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 17.024822][ C2] Tainted: [W]=WARN [ 17.024823][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.024825][ C2] Call Trace: [ 17.024827][ C2] [ 17.024829][ C2] dump_stack_lvl+0xb0/0xd0 [ 17.024838][ C2] __might_resched+0x360/0x5a0 [ 17.024844][ C2] down_write+0x72/0x210 [ 17.024849][ C2] ? __pfx_down_write+0x10/0x10 [ 17.024852][ C2] ? simple_recursive_removal+0x33/0x610 [ 17.024856][ C2] ? rcu_is_watching+0x12/0xc0 [ 17.024861][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 17.024866][ C2] simple_recursive_removal+0x6a/0x610 [ 17.024869][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 17.024872][ C2] ? __pfx_remove_one+0x10/0x10 [ 17.024878][ C2] debugfs_remove+0x44/0x70 [ 17.024881][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 17.024887][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.024890][ C2] ? __sk_destruct+0x383/0x780 [ 17.024896][ C2] ? rcu_do_batch+0x34c/0xf20 [ 17.024899][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.024902][ C2] ? irq_exit_rcu+0xe/0x30 [ 17.024907][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.024912][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.024916][ C2] ? pv_native_safe_halt+0xf/0x20 [ 17.024919][ C2] ? default_idle+0x9/0x10 [ 17.024921][ C2] ? default_idle_call+0x6d/0xb0 [ 17.024924][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.024927][ C2] ? do_idle+0xf6/0x160 [ 17.024929][ C2] ? cpu_startup_entry+0x54/0x60 [ 17.024932][ C2] ? start_secondary+0x213/0x2a0 [ 17.024935][ C2] ? common_startup_64+0x13e/0x148 [ 17.024940][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.024944][ C2] ? rcu_is_watching+0x12/0xc0 [ 17.024949][ C2] __put_net+0x19/0x60 [ 17.024952][ C2] __sk_destruct+0x58a/0x780 [ 17.024956][ C2] ? rcu_do_batch+0x34a/0xf20 [ 17.024959][ C2] rcu_do_batch+0x34c/0xf20 [ 17.024963][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.024967][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.024972][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.024978][ C2] rcu_core+0x2bb/0x500 [ 17.024982][ C2] handle_softirqs+0x218/0x620 [ 17.024987][ C2] __irq_exit_rcu+0xfa/0x160 [ 17.024990][ C2] irq_exit_rcu+0xe/0x30 [ 17.024993][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.024997][ C2] [ 17.024998][ C2] [ 17.024999][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.025002][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.025006][ C2] Code: a2 b5 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 47 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 17.025009][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 17.025013][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff9058f5d9 [ 17.025015][ C2] RDX: ffffed1006c266fb RSI: ffffffff90853b60 RDI: ffffffff8dd8d18f [ 17.025016][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c266fa [ 17.025018][ C2] R10: ffff8880361337d3 R11: ffffffff93f108d8 R12: 0000000000000000 [ 17.025020][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 17.025024][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.025027][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.025030][ C2] default_idle+0x9/0x10 [ 17.025033][ C2] default_idle_call+0x6d/0xb0 [ 17.025035][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 17.025039][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.025042][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 17.025046][ C2] do_idle+0xf6/0x160 [ 17.025050][ C2] cpu_startup_entry+0x54/0x60 [ 17.025053][ C2] start_secondary+0x213/0x2a0 [ 17.025055][ C2] ? __pfx_start_secondary+0x10/0x10 [ 17.025060][ C2] common_startup_64+0x13e/0x148 [ 17.025067][ C2]