[ 15.429457][ C3] [ 15.429612][ C3] ================================ [ 15.429810][ C3] WARNING: inconsistent lock state [ 15.430008][ C3] 6.15.0-virtme #1 Not tainted [ 15.430205][ C3] -------------------------------- [ 15.430398][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.430640][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.430885][ C3] ffffffffa9fc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.431242][ C3] {SOFTIRQ-ON-W} state was registered at: [ 15.431436][ C3] __lock_acquire+0x20b/0x7e0 [ 15.431639][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.431834][ C3] _raw_spin_lock+0x33/0x40 [ 15.432033][ C3] simple_pin_fs+0x24/0x150 [ 15.432229][ C3] start_creating.part.0+0x52/0x310 [ 15.432423][ C3] debugfs_create_dir+0x6a/0x540 [ 15.432618][ C3] component_debug_init+0x17/0x30 [ 15.432820][ C3] do_one_initcall+0x8f/0x1e0 [ 15.433025][ C3] do_initcalls+0x176/0x280 [ 15.433226][ C3] kernel_init_freeable+0x22d/0x300 [ 15.433419][ C3] kernel_init+0x20/0x200 [ 15.433615][ C3] ret_from_fork+0x240/0x320 [ 15.433816][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.434010][ C3] irq event stamp: 245638 [ 15.434159][ C3] hardirqs last enabled at (245638): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.434554][ C3] hardirqs last disabled at (245637): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.434949][ C3] softirqs last enabled at (244694): [] handle_softirqs+0x358/0x620 [ 15.435300][ C3] softirqs last disabled at (244713): [] __irq_exit_rcu+0xfa/0x160 [ 15.435645][ C3] [ 15.435645][ C3] other info that might help us debug this: [ 15.435929][ C3] Possible unsafe locking scenario: [ 15.435929][ C3] [ 15.436221][ C3] CPU0 [ 15.436370][ C3] ---- [ 15.436517][ C3] lock(pin_fs_lock); [ 15.436669][ C3] [ 15.436818][ C3] lock(pin_fs_lock); [ 15.436968][ C3] [ 15.436968][ C3] *** DEADLOCK *** [ 15.436968][ C3] [ 15.437256][ C3] 1 lock held by swapper/3/0: [ 15.437451][ C3] #0: ffffffffa9d774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.437804][ C3] [ 15.437804][ C3] stack backtrace: [ 15.438053][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.438058][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.438060][ C3] Call Trace: [ 15.438063][ C3] [ 15.438066][ C3] dump_stack_lvl+0x82/0xd0 [ 15.438074][ C3] print_usage_bug.part.0+0x25f/0x360 [ 15.438078][ C3] mark_lock_irq+0x343/0x400 [ 15.438083][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.438088][ C3] ? save_trace+0x52/0x170 [ 15.438095][ C3] mark_lock+0x174/0x2f0 [ 15.438099][ C3] mark_usage+0x46/0x150 [ 15.438102][ C3] __lock_acquire+0x20b/0x7e0 [ 15.438105][ C3] ? __lock_acquire+0x44d/0x7e0 [ 15.438109][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.438112][ C3] ? simple_pin_fs+0x24/0x150 [ 15.438116][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.438121][ C3] ? lock_acquire+0x10c/0x170 [ 15.438124][ C3] ? simple_pin_fs+0x24/0x150 [ 15.438128][ C3] _raw_spin_lock+0x33/0x40 [ 15.438132][ C3] ? simple_pin_fs+0x24/0x150 [ 15.438135][ C3] simple_pin_fs+0x24/0x150 [ 15.438139][ C3] debugfs_remove+0x35/0x70 [ 15.438143][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.438150][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.438153][ C3] ? __sk_destruct+0x383/0x780 [ 15.438161][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.438163][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.438167][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.438170][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.438176][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.438180][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.438183][ C3] ? default_idle+0x9/0x10 [ 15.438186][ C3] ? default_idle_call+0x6d/0xb0 [ 15.438189][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.438193][ C3] ? do_idle+0xf6/0x160 [ 15.438195][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.438198][ C3] ? start_secondary+0x213/0x2a0 [ 15.438202][ C3] ? common_startup_64+0x13e/0x148 [ 15.438211][ C3] __put_net+0x19/0x60 [ 15.438216][ C3] __sk_destruct+0x58a/0x780 [ 15.438220][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.438223][ C3] rcu_do_batch+0x34c/0xf20 [ 15.438226][ C3] ? find_held_lock+0x2b/0x80 [ 15.438230][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.438234][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.438237][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.438240][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.438245][ C3] rcu_core+0x2bb/0x500 [ 15.438250][ C3] handle_softirqs+0x218/0x620 [ 15.438255][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.438258][ C3] irq_exit_rcu+0xe/0x30 [ 15.438261][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.438265][ C3] [ 15.438266][ C3] [ 15.438267][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.438270][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.438274][ C3] 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.438277][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 15.438281][ C3] RAX: 000000000003bbe7 RBX: 1ffff9200002afc1 RCX: ffffffffa8d8f5d9 [ 15.438283][ C3] RDX: 0000000000000000 RSI: ffffffffa988f4e4 RDI: ffffffffa9053be0 [ 15.438285][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 15.438286][ C3] R10: ffff8880361b37d3 R11: ffffffffa9a11288 R12: 0000000000000000 [ 15.438288][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 15.438292][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.438297][ C3] default_idle+0x9/0x10 [ 15.438299][ C3] default_idle_call+0x6d/0xb0 [ 15.438302][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.438305][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.438309][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.438314][ C3] do_idle+0xf6/0x160 [ 15.438317][ C3] cpu_startup_entry+0x54/0x60 [ 15.438321][ C3] start_secondary+0x213/0x2a0 [ 15.438323][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.438328][ C3] common_startup_64+0x13e/0x148 [ 15.438336][ C3] [ 15.453993][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.454315][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 15.454640][ C3] preempt_count: 101, expected: 0 [ 15.454826][ C3] RCU nest depth: 0, expected: 0 [ 15.454999][ C3] INFO: lockdep is turned off. [ 15.455177][ C3] Preemption disabled at: [ 15.455179][ C3] [<0000000000000000>] 0x0 [ 15.455504][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.455509][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.455511][ C3] Call Trace: [ 15.455512][ C3] [ 15.455515][ C3] dump_stack_lvl+0xb0/0xd0 [ 15.455520][ C3] __might_resched+0x360/0x5a0 [ 15.455528][ C3] down_write+0x72/0x210 [ 15.455533][ C3] ? __pfx_down_write+0x10/0x10 [ 15.455535][ C3] ? simple_recursive_removal+0x33/0x610 [ 15.455540][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.455548][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.455554][ C3] simple_recursive_removal+0x6a/0x610 [ 15.455557][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.455560][ C3] ? __pfx_remove_one+0x10/0x10 [ 15.455565][ C3] debugfs_remove+0x44/0x70 [ 15.455568][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.455574][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.455578][ C3] ? __sk_destruct+0x383/0x780 [ 15.455582][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.455585][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.455588][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.455593][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.455597][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.455600][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.455603][ C3] ? default_idle+0x9/0x10 [ 15.455606][ C3] ? default_idle_call+0x6d/0xb0 [ 15.455608][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.455611][ C3] ? do_idle+0xf6/0x160 [ 15.455614][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.455616][ C3] ? start_secondary+0x213/0x2a0 [ 15.455620][ C3] ? common_startup_64+0x13e/0x148 [ 15.455627][ C3] __put_net+0x19/0x60 [ 15.455630][ C3] __sk_destruct+0x58a/0x780 [ 15.455634][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.455637][ C3] rcu_do_batch+0x34c/0xf20 [ 15.455640][ C3] ? find_held_lock+0x2b/0x80 [ 15.455645][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.455649][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.455653][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.455656][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.455661][ C3] rcu_core+0x2bb/0x500 [ 15.455665][ C3] handle_softirqs+0x218/0x620 [ 15.455670][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.455673][ C3] irq_exit_rcu+0xe/0x30 [ 15.455676][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.455680][ C3] [ 15.455681][ C3] [ 15.455683][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.455685][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.455689][ C3] 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.455692][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 15.455694][ C3] RAX: 000000000003bbe7 RBX: 1ffff9200002afc1 RCX: ffffffffa8d8f5d9 [ 15.455696][ C3] RDX: 0000000000000000 RSI: ffffffffa988f4e4 RDI: ffffffffa9053be0 [ 15.455698][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 15.455700][ C3] R10: ffff8880361b37d3 R11: ffffffffa9a11288 R12: 0000000000000000 [ 15.455701][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 15.455705][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.455710][ C3] default_idle+0x9/0x10 [ 15.455712][ C3] default_idle_call+0x6d/0xb0 [ 15.455715][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.455718][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.455721][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.455726][ C3] do_idle+0xf6/0x160 [ 15.455729][ C3] cpu_startup_entry+0x54/0x60 [ 15.455732][ C3] start_secondary+0x213/0x2a0 [ 15.455735][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.455739][ C3] common_startup_64+0x13e/0x148 [ 15.455747][ C3] [ 17.196148][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.196604][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 17.196931][ C3] preempt_count: 101, expected: 0 [ 17.197116][ C3] RCU nest depth: 0, expected: 0 [ 17.197303][ C3] INFO: lockdep is turned off. [ 17.197482][ C3] Preemption disabled at: [ 17.197484][ C3] [<0000000000000000>] 0x0 [ 17.197819][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 17.197826][ C3] Tainted: [W]=WARN [ 17.197827][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.197830][ C3] Call Trace: [ 17.197832][ C3] [ 17.197834][ C3] dump_stack_lvl+0xb0/0xd0 [ 17.197846][ C3] __might_resched+0x360/0x5a0 [ 17.197855][ C3] down_write+0x72/0x210 [ 17.197860][ C3] ? __pfx_down_write+0x10/0x10 [ 17.197864][ C3] ? simple_recursive_removal+0x33/0x610 [ 17.197869][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.197876][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.197884][ C3] simple_recursive_removal+0x6a/0x610 [ 17.197887][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.197890][ C3] ? __pfx_remove_one+0x10/0x10 [ 17.197897][ C3] debugfs_remove+0x44/0x70 [ 17.197900][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 17.197907][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.197911][ C3] ? __sk_destruct+0x383/0x780 [ 17.197919][ C3] ? rcu_do_batch+0x34c/0xf20 [ 17.197924][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.197927][ C3] ? irq_exit_rcu+0xe/0x30 [ 17.197933][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.197940][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.197944][ C3] ? pv_native_safe_halt+0xf/0x20 [ 17.197948][ C3] ? default_idle+0x9/0x10 [ 17.197951][ C3] ? default_idle_call+0x6d/0xb0 [ 17.197953][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.197958][ C3] ? do_idle+0xf6/0x160 [ 17.197960][ C3] ? cpu_startup_entry+0x54/0x60 [ 17.197963][ C3] ? start_secondary+0x213/0x2a0 [ 17.197967][ C3] ? common_startup_64+0x13e/0x148 [ 17.197973][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.197979][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.197983][ C3] __put_net+0x19/0x60 [ 17.197988][ C3] __sk_destruct+0x58a/0x780 [ 17.197992][ C3] ? rcu_do_batch+0x34a/0xf20 [ 17.197995][ C3] rcu_do_batch+0x34c/0xf20 [ 17.198000][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.198003][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.198011][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.198017][ C3] rcu_core+0x2bb/0x500 [ 17.198023][ C3] handle_softirqs+0x218/0x620 [ 17.198028][ C3] __irq_exit_rcu+0xfa/0x160 [ 17.198031][ C3] irq_exit_rcu+0xe/0x30 [ 17.198034][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.198038][ C3] [ 17.198039][ C3] [ 17.198041][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.198043][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.198048][ C3] 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.198051][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 17.198055][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffffa8d8f5d9 [ 17.198058][ C3] RDX: ffffed1006c366fb RSI: ffffffffa9053b60 RDI: ffffffffa658d18f [ 17.198060][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c366fa [ 17.198062][ C3] R10: ffff8880361b37d3 R11: ffffc900001579c0 R12: 0000000000000000 [ 17.198064][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 17.198068][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.198071][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.198075][ C3] default_idle+0x9/0x10 [ 17.198078][ C3] default_idle_call+0x6d/0xb0 [ 17.198080][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 17.198084][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.198088][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 17.198092][ C3] do_idle+0xf6/0x160 [ 17.198095][ C3] cpu_startup_entry+0x54/0x60 [ 17.198098][ C3] start_secondary+0x213/0x2a0 [ 17.198101][ C3] ? __pfx_start_secondary+0x10/0x10 [ 17.198106][ C3] common_startup_64+0x13e/0x148 [ 17.198113][ C3]