[ 15.373085][ C0] [ 15.373250][ C0] ================================ [ 15.373480][ C0] WARNING: inconsistent lock state [ 15.373705][ C0] 6.15.0-virtme #1 Not tainted [ 15.373928][ C0] -------------------------------- [ 15.374158][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.374437][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.374710][ C0] ffffffff94fc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.375111][ C0] {SOFTIRQ-ON-W} state was registered at: [ 15.375339][ C0] __lock_acquire+0x20b/0x7e0 [ 15.375567][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.375792][ C0] _raw_spin_lock+0x33/0x40 [ 15.376013][ C0] simple_pin_fs+0x24/0x150 [ 15.376242][ C0] start_creating.part.0+0x52/0x310 [ 15.376462][ C0] debugfs_create_dir+0x6a/0x540 [ 15.376690][ C0] component_debug_init+0x17/0x30 [ 15.376912][ C0] do_one_initcall+0x8f/0x1e0 [ 15.377145][ C0] do_initcalls+0x176/0x280 [ 15.377361][ C0] kernel_init_freeable+0x22d/0x300 [ 15.377578][ C0] kernel_init+0x20/0x200 [ 15.377805][ C0] ret_from_fork+0x240/0x320 [ 15.378025][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.378247][ C0] irq event stamp: 467144 [ 15.378410][ C0] hardirqs last enabled at (467144): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.378867][ C0] hardirqs last disabled at (467143): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.379300][ C0] softirqs last enabled at (466604): [] handle_softirqs+0x358/0x620 [ 15.379693][ C0] softirqs last disabled at (466617): [] __irq_exit_rcu+0xfa/0x160 [ 15.380089][ C0] [ 15.380089][ C0] other info that might help us debug this: [ 15.380419][ C0] Possible unsafe locking scenario: [ 15.380419][ C0] [ 15.380740][ C0] CPU0 [ 15.380903][ C0] ---- [ 15.381064][ C0] lock(pin_fs_lock); [ 15.381229][ C0] [ 15.381391][ C0] lock(pin_fs_lock); [ 15.381568][ C0] [ 15.381568][ C0] *** DEADLOCK *** [ 15.381568][ C0] [ 15.381886][ C0] 1 lock held by swapper/0/0: [ 15.382121][ C0] #0: ffffffff94d774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.382511][ C0] [ 15.382511][ C0] stack backtrace: [ 15.382796][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.382800][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.382802][ C0] Call Trace: [ 15.382804][ C0] [ 15.382806][ C0] dump_stack_lvl+0x82/0xd0 [ 15.382812][ C0] print_usage_bug.part.0+0x25f/0x360 [ 15.382817][ C0] mark_lock_irq+0x343/0x400 [ 15.382821][ C0] ? is_bpf_text_address+0x67/0x120 [ 15.382825][ C0] ? __lock_release+0x5d/0x170 [ 15.382830][ C0] ? save_trace+0x52/0x170 [ 15.382835][ C0] mark_lock+0x174/0x2f0 [ 15.382839][ C0] mark_usage+0x46/0x150 [ 15.382842][ C0] __lock_acquire+0x20b/0x7e0 [ 15.382845][ C0] ? __lock_acquire+0x44d/0x7e0 [ 15.382849][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.382852][ C0] ? simple_pin_fs+0x24/0x150 [ 15.382857][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.382861][ C0] ? lock_acquire+0x10c/0x170 [ 15.382864][ C0] ? simple_pin_fs+0x24/0x150 [ 15.382868][ C0] _raw_spin_lock+0x33/0x40 [ 15.382872][ C0] ? simple_pin_fs+0x24/0x150 [ 15.382875][ C0] simple_pin_fs+0x24/0x150 [ 15.382879][ C0] debugfs_remove+0x35/0x70 [ 15.382883][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.382888][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.382892][ C0] ? __sk_destruct+0x383/0x780 [ 15.382897][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.382900][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.382903][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.382906][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.382910][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.382914][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.382917][ C0] ? default_idle+0x9/0x10 [ 15.382919][ C0] ? default_idle_call+0x6d/0xb0 [ 15.382922][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.382926][ C0] ? do_idle+0xf6/0x160 [ 15.382928][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.382931][ C0] ? rest_init+0x14b/0x260 [ 15.382934][ C0] ? start_kernel+0x350/0x410 [ 15.382939][ C0] __put_net+0x19/0x60 [ 15.382943][ C0] __sk_destruct+0x58a/0x780 [ 15.382947][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.382949][ C0] rcu_do_batch+0x34c/0xf20 [ 15.382953][ C0] ? find_held_lock+0x2b/0x80 [ 15.382957][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.382960][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.382964][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.382966][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.382971][ C0] rcu_core+0x2bb/0x500 [ 15.382976][ C0] handle_softirqs+0x218/0x620 [ 15.382981][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.382984][ C0] irq_exit_rcu+0xe/0x30 [ 15.382987][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.382990][ C0] [ 15.382992][ C0] [ 15.382993][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.382996][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.383000][ C0] Code: 92 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 37 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.383003][ C0] RSP: 0018:ffffffff94a07df8 EFLAGS: 00000246 [ 15.383006][ C0] RAX: 0000000000071eb7 RBX: 1ffffffff2940fc3 RCX: ffffffff93d905d9 [ 15.383008][ C0] RDX: 0000000000000000 RSI: ffffffff9488f4e4 RDI: ffffffff94053be0 [ 15.383010][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 15.383011][ C0] R10: ffff8880360337d3 R11: ffffffff94a11288 R12: 0000000000000000 [ 15.383013][ C0] R13: ffffffff94a1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.383017][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.383022][ C0] default_idle+0x9/0x10 [ 15.383024][ C0] default_idle_call+0x6d/0xb0 [ 15.383027][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.383030][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.383034][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.383039][ C0] do_idle+0xf6/0x160 [ 15.383042][ C0] cpu_startup_entry+0x54/0x60 [ 15.383045][ C0] rest_init+0x14b/0x260 [ 15.383049][ C0] start_kernel+0x350/0x410 [ 15.383053][ C0] x86_64_start_reservations+0x18/0x30 [ 15.383057][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.383061][ C0] common_startup_64+0x13e/0x148 [ 15.383071][ C0] [ 15.401255][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.401616][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 15.401980][ C0] preempt_count: 101, expected: 0 [ 15.402189][ C0] RCU nest depth: 0, expected: 0 [ 15.402398][ C0] INFO: lockdep is turned off. [ 15.402599][ C0] Preemption disabled at: [ 15.402600][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 15.403085][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.403089][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.403091][ C0] Call Trace: [ 15.403092][ C0] [ 15.403094][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.403099][ C0] __might_resched+0x360/0x5a0 [ 15.403107][ C0] down_write+0x72/0x210 [ 15.403111][ C0] ? __pfx_down_write+0x10/0x10 [ 15.403114][ C0] ? simple_recursive_removal+0x33/0x610 [ 15.403119][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.403126][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.403132][ C0] simple_recursive_removal+0x6a/0x610 [ 15.403135][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.403138][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.403143][ C0] debugfs_remove+0x44/0x70 [ 15.403146][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.403152][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.403156][ C0] ? __sk_destruct+0x383/0x780 [ 15.403161][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.403164][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.403167][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.403172][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.403176][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.403180][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.403183][ C0] ? default_idle+0x9/0x10 [ 15.403186][ C0] ? default_idle_call+0x6d/0xb0 [ 15.403188][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.403192][ C0] ? do_idle+0xf6/0x160 [ 15.403194][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.403197][ C0] ? rest_init+0x14b/0x260 [ 15.403200][ C0] ? start_kernel+0x350/0x410 [ 15.403206][ C0] __put_net+0x19/0x60 [ 15.403210][ C0] __sk_destruct+0x58a/0x780 [ 15.403214][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.403217][ C0] rcu_do_batch+0x34c/0xf20 [ 15.403220][ C0] ? find_held_lock+0x2b/0x80 [ 15.403225][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.403229][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.403233][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.403236][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.403240][ C0] rcu_core+0x2bb/0x500 [ 15.403245][ C0] handle_softirqs+0x218/0x620 [ 15.403250][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.403253][ C0] irq_exit_rcu+0xe/0x30 [ 15.403256][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.403260][ C0] [ 15.403261][ C0] [ 15.403262][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.403265][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.403269][ C0] Code: 92 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 37 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.403271][ C0] RSP: 0018:ffffffff94a07df8 EFLAGS: 00000246 [ 15.403274][ C0] RAX: 0000000000071eb7 RBX: 1ffffffff2940fc3 RCX: ffffffff93d905d9 [ 15.403276][ C0] RDX: 0000000000000000 RSI: ffffffff9488f4e4 RDI: ffffffff94053be0 [ 15.403278][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 15.403280][ C0] R10: ffff8880360337d3 R11: ffffffff94a11288 R12: 0000000000000000 [ 15.403282][ C0] R13: ffffffff94a1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.403289][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.403297][ C0] default_idle+0x9/0x10 [ 15.403302][ C0] default_idle_call+0x6d/0xb0 [ 15.403306][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.403310][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.403314][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.403319][ C0] do_idle+0xf6/0x160 [ 15.403322][ C0] cpu_startup_entry+0x54/0x60 [ 15.403325][ C0] rest_init+0x14b/0x260 [ 15.403328][ C0] start_kernel+0x350/0x410 [ 15.403332][ C0] x86_64_start_reservations+0x18/0x30 [ 15.403337][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.403341][ C0] common_startup_64+0x13e/0x148 [ 15.403350][ C0] [ 17.276436][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.276851][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 17.277194][ C2] preempt_count: 101, expected: 0 [ 17.277407][ C2] RCU nest depth: 0, expected: 0 [ 17.277613][ C2] INFO: lockdep is turned off. [ 17.277820][ C2] Preemption disabled at: [ 17.277822][ C2] [<0000000000000000>] 0x0 [ 17.278192][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 17.278198][ C2] Tainted: [W]=WARN [ 17.278199][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.278201][ C2] Call Trace: [ 17.278203][ C2] [ 17.278205][ C2] dump_stack_lvl+0xb0/0xd0 [ 17.278214][ C2] __might_resched+0x360/0x5a0 [ 17.278221][ C2] down_write+0x72/0x210 [ 17.278226][ C2] ? __pfx_down_write+0x10/0x10 [ 17.278229][ C2] ? simple_recursive_removal+0x33/0x610 [ 17.278233][ C2] ? rcu_is_watching+0x12/0xc0 [ 17.278238][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 17.278244][ C2] simple_recursive_removal+0x6a/0x610 [ 17.278247][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 17.278250][ C2] ? __pfx_remove_one+0x10/0x10 [ 17.278255][ C2] debugfs_remove+0x44/0x70 [ 17.278258][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 17.278265][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.278268][ C2] ? __sk_destruct+0x383/0x780 [ 17.278274][ C2] ? rcu_do_batch+0x34c/0xf20 [ 17.278277][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.278280][ C2] ? irq_exit_rcu+0xe/0x30 [ 17.278285][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.278290][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.278294][ C2] ? pv_native_safe_halt+0xf/0x20 [ 17.278297][ C2] ? default_idle+0x9/0x10 [ 17.278300][ C2] ? default_idle_call+0x6d/0xb0 [ 17.278303][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.278306][ C2] ? do_idle+0xf6/0x160 [ 17.278309][ C2] ? cpu_startup_entry+0x54/0x60 [ 17.278311][ C2] ? start_secondary+0x213/0x2a0 [ 17.278315][ C2] ? common_startup_64+0x13e/0x148 [ 17.278320][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.278324][ C2] ? rcu_is_watching+0x12/0xc0 [ 17.278328][ C2] __put_net+0x19/0x60 [ 17.278332][ C2] __sk_destruct+0x58a/0x780 [ 17.278336][ C2] ? rcu_do_batch+0x34a/0xf20 [ 17.278338][ C2] rcu_do_batch+0x34c/0xf20 [ 17.278343][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.278346][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.278352][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.278358][ C2] rcu_core+0x2bb/0x500 [ 17.278362][ C2] handle_softirqs+0x218/0x620 [ 17.278367][ C2] __irq_exit_rcu+0xfa/0x160 [ 17.278370][ C2] irq_exit_rcu+0xe/0x30 [ 17.278376][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.278380][ C2] [ 17.278381][ C2] [ 17.278382][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.278385][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.278389][ C2] Code: 92 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 37 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.278392][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 17.278396][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff93d905d9 [ 17.278398][ C2] RDX: ffffed1006c266fb RSI: ffffffff94053b60 RDI: ffffffff9158d18f [ 17.278400][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c266fa [ 17.278401][ C2] R10: ffff8880361337d3 R11: ffffffff976cbe00 R12: 0000000000000000 [ 17.278403][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 17.278407][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.278410][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.278414][ C2] default_idle+0x9/0x10 [ 17.278417][ C2] default_idle_call+0x6d/0xb0 [ 17.278419][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 17.278422][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.278426][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 17.278430][ C2] do_idle+0xf6/0x160 [ 17.278434][ C2] cpu_startup_entry+0x54/0x60 [ 17.278437][ C2] start_secondary+0x213/0x2a0 [ 17.278440][ C2] ? __pfx_start_secondary+0x10/0x10 [ 17.278444][ C2] common_startup_64+0x13e/0x148 [ 17.278452][ C2]