[ 14.407421][ C2] [ 14.407551][ C2] ================================ [ 14.407732][ C2] WARNING: inconsistent lock state [ 14.407911][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 14.408086][ C2] -------------------------------- [ 14.408265][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.408483][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.408697][ C2] ffffffffac9bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.409013][ C2] {SOFTIRQ-ON-W} state was registered at: [ 14.409185][ C2] __lock_acquire+0x3eb/0x9d0 [ 14.409368][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.409543][ C2] _raw_spin_lock+0x33/0x40 [ 14.409726][ C2] simple_pin_fs+0x24/0x150 [ 14.409900][ C2] start_creating.part.0+0x3f/0x2f0 [ 14.410084][ C2] debugfs_create_dir+0x6a/0x540 [ 14.410263][ C2] component_debug_init+0x17/0x30 [ 14.410448][ C2] do_one_initcall+0x8c/0x1e0 [ 14.410625][ C2] do_initcalls+0x176/0x280 [ 14.410804][ C2] kernel_init_freeable+0x22d/0x300 [ 14.410982][ C2] kernel_init+0x20/0x200 [ 14.411157][ C2] ret_from_fork+0x31/0x70 [ 14.411335][ C2] ret_from_fork_asm+0x1a/0x30 [ 14.411514][ C2] irq event stamp: 255836 [ 14.411649][ C2] hardirqs last enabled at (255836): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.411999][ C2] hardirqs last disabled at (255835): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.412352][ C2] softirqs last enabled at (253894): [] handle_softirqs+0x358/0x620 [ 14.412660][ C2] softirqs last disabled at (253903): [] __irq_exit_rcu+0xfa/0x160 [ 14.412969][ C2] [ 14.412969][ C2] other info that might help us debug this: [ 14.413228][ C2] Possible unsafe locking scenario: [ 14.413228][ C2] [ 14.413491][ C2] CPU0 [ 14.413624][ C2] ---- [ 14.413752][ C2] lock(pin_fs_lock); [ 14.413888][ C2] [ 14.414019][ C2] lock(pin_fs_lock); [ 14.414152][ C2] [ 14.414152][ C2] *** DEADLOCK *** [ 14.414152][ C2] [ 14.414413][ C2] 1 lock held by swapper/2/0: [ 14.414591][ C2] #0: ffffffffac774480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.414915][ C2] [ 14.414915][ C2] stack backtrace: [ 14.415136][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.415141][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.415143][ C2] Call Trace: [ 14.415145][ C2] [ 14.415147][ C2] dump_stack_lvl+0x82/0xd0 [ 14.415154][ C2] print_usage_bug.part.0+0x25f/0x360 [ 14.415159][ C2] mark_lock_irq+0x343/0x400 [ 14.415164][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.415170][ C2] ? save_trace+0x52/0x170 [ 14.415175][ C2] mark_lock+0x174/0x2f0 [ 14.415179][ C2] mark_usage+0x46/0x150 [ 14.415182][ C2] __lock_acquire+0x3eb/0x9d0 [ 14.415188][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.415191][ C2] ? simple_pin_fs+0x24/0x150 [ 14.415195][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.415203][ C2] ? lock_acquire+0x10c/0x170 [ 14.415207][ C2] ? simple_pin_fs+0x24/0x150 [ 14.415211][ C2] _raw_spin_lock+0x33/0x40 [ 14.415214][ C2] ? simple_pin_fs+0x24/0x150 [ 14.415218][ C2] simple_pin_fs+0x24/0x150 [ 14.415221][ C2] debugfs_remove+0x35/0x70 [ 14.415225][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.415231][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.415234][ C2] ? __sk_destruct+0x383/0x780 [ 14.415241][ C2] ? rcu_do_batch+0x34c/0xf20 [ 14.415244][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.415247][ C2] ? irq_exit_rcu+0xe/0x30 [ 14.415250][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.415254][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.415258][ C2] ? pv_native_safe_halt+0xf/0x20 [ 14.415261][ C2] ? default_idle+0x9/0x10 [ 14.415263][ C2] ? default_idle_call+0x6d/0xb0 [ 14.415265][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.415271][ C2] ? do_idle+0xf6/0x160 [ 14.415274][ C2] ? cpu_startup_entry+0x54/0x60 [ 14.415277][ C2] ? start_secondary+0x213/0x2a0 [ 14.415284][ C2] ? common_startup_64+0x13e/0x148 [ 14.415291][ C2] __put_net+0x19/0x60 [ 14.415296][ C2] __sk_destruct+0x58a/0x780 [ 14.415299][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.415302][ C2] rcu_do_batch+0x34c/0xf20 [ 14.415306][ C2] ? find_held_lock+0x2b/0x80 [ 14.415310][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.415314][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.415317][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.415321][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.415325][ C2] rcu_core+0x2bb/0x500 [ 14.415329][ C2] handle_softirqs+0x218/0x620 [ 14.415333][ C2] __irq_exit_rcu+0xfa/0x160 [ 14.415335][ C2] irq_exit_rcu+0xe/0x30 [ 14.415338][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.415341][ C2] [ 14.415342][ C2] [ 14.415344][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.415347][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.415351][ C2] Code: b0 b8 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 d0 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 14.415354][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 14.415357][ C2] RAX: 000000000003dfcd RBX: 1ffff92000028fc1 RCX: ffffffffab755a19 [ 14.415359][ C2] RDX: 0000000000000000 RSI: ffffffffac285f31 RDI: ffffffffaba50ce0 [ 14.415361][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 14.415363][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.415365][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 14.415369][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.415374][ C2] default_idle+0x9/0x10 [ 14.415376][ C2] default_idle_call+0x6d/0xb0 [ 14.415379][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 14.415382][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.415386][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.415392][ C2] do_idle+0xf6/0x160 [ 14.415396][ C2] cpu_startup_entry+0x54/0x60 [ 14.415399][ C2] start_secondary+0x213/0x2a0 [ 14.415402][ C2] ? __pfx_start_secondary+0x10/0x10 [ 14.415407][ C2] common_startup_64+0x13e/0x148 [ 14.415413][ C2] [ 14.429897][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.430296][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 14.430590][ C2] preempt_count: 101, expected: 0 [ 14.430772][ C2] RCU nest depth: 0, expected: 0 [ 14.431049][ C2] INFO: lockdep is turned off. [ 14.431226][ C2] Preemption disabled at: [ 14.431228][ C2] [<0000000000000000>] 0x0 [ 14.431540][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.431545][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.431546][ C2] Call Trace: [ 14.431548][ C2] [ 14.431550][ C2] dump_stack_lvl+0xb0/0xd0 [ 14.431556][ C2] __might_resched+0x360/0x5a0 [ 14.431562][ C2] down_write+0x72/0x210 [ 14.431566][ C2] ? __pfx_down_write+0x10/0x10 [ 14.431569][ C2] ? simple_recursive_removal+0x3a/0x860 [ 14.431573][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.431579][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.431584][ C2] simple_recursive_removal+0x166/0x860 [ 14.431586][ C2] ? __pfx_remove_one+0x10/0x10 [ 14.431590][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.431594][ C2] debugfs_remove+0x44/0x70 [ 14.431597][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.431602][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.431605][ C2] ? __sk_destruct+0x383/0x780 [ 14.431610][ C2] ? rcu_do_batch+0x34c/0xf20 [ 14.431614][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.431617][ C2] ? irq_exit_rcu+0xe/0x30 [ 14.431620][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.431624][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.431628][ C2] ? pv_native_safe_halt+0xf/0x20 [ 14.431631][ C2] ? default_idle+0x9/0x10 [ 14.431633][ C2] ? default_idle_call+0x6d/0xb0 [ 14.431635][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.431639][ C2] ? do_idle+0xf6/0x160 [ 14.431642][ C2] ? cpu_startup_entry+0x54/0x60 [ 14.431645][ C2] ? start_secondary+0x213/0x2a0 [ 14.431650][ C2] ? common_startup_64+0x13e/0x148 [ 14.431655][ C2] __put_net+0x19/0x60 [ 14.431658][ C2] __sk_destruct+0x58a/0x780 [ 14.431662][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.431665][ C2] rcu_do_batch+0x34c/0xf20 [ 14.431669][ C2] ? find_held_lock+0x2b/0x80 [ 14.431673][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.431677][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.431681][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.431685][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.431689][ C2] rcu_core+0x2bb/0x500 [ 14.431692][ C2] handle_softirqs+0x218/0x620 [ 14.431697][ C2] __irq_exit_rcu+0xfa/0x160 [ 14.431699][ C2] irq_exit_rcu+0xe/0x30 [ 14.431702][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.431705][ C2] [ 14.431706][ C2] [ 14.431707][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.431710][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.431714][ C2] Code: b0 b8 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 d0 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 14.431716][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 14.431719][ C2] RAX: 000000000003dfcd RBX: 1ffff92000028fc1 RCX: ffffffffab755a19 [ 14.431721][ C2] RDX: 0000000000000000 RSI: ffffffffac285f31 RDI: ffffffffaba50ce0 [ 14.431723][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 14.431724][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.431726][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 14.431730][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.431735][ C2] default_idle+0x9/0x10 [ 14.431737][ C2] default_idle_call+0x6d/0xb0 [ 14.431739][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 14.431745][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.431749][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.431754][ C2] do_idle+0xf6/0x160 [ 14.431758][ C2] cpu_startup_entry+0x54/0x60 [ 14.431761][ C2] start_secondary+0x213/0x2a0 [ 14.431765][ C2] ? __pfx_start_secondary+0x10/0x10 [ 14.431770][ C2] common_startup_64+0x13e/0x148 [ 14.431776][ C2] [ 16.063013][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.063363][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 16.063667][ C2] preempt_count: 101, expected: 0 [ 16.063856][ C2] RCU nest depth: 0, expected: 0 [ 16.064035][ C2] INFO: lockdep is turned off. [ 16.064211][ C2] Preemption disabled at: [ 16.064213][ C2] [<0000000000000000>] 0x0 [ 16.064529][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.064534][ C2] Tainted: [W]=WARN [ 16.064536][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.064538][ C2] Call Trace: [ 16.064540][ C2] [ 16.064541][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.064550][ C2] __might_resched+0x360/0x5a0 [ 16.064557][ C2] down_write+0x72/0x210 [ 16.064560][ C2] ? __pfx_down_write+0x10/0x10 [ 16.064563][ C2] ? simple_recursive_removal+0x3a/0x860 [ 16.064568][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.064574][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.064578][ C2] simple_recursive_removal+0x166/0x860 [ 16.064581][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.064585][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.064589][ C2] debugfs_remove+0x44/0x70 [ 16.064592][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.064597][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.064600][ C2] ? __sk_destruct+0x383/0x780 [ 16.064605][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.064610][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.064612][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.064616][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.064621][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.064625][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.064628][ C2] ? default_idle+0x9/0x10 [ 16.064630][ C2] ? default_idle_call+0x6d/0xb0 [ 16.064632][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.064637][ C2] ? do_idle+0xf6/0x160 [ 16.064640][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.064643][ C2] ? start_secondary+0x213/0x2a0 [ 16.064648][ C2] ? common_startup_64+0x13e/0x148 [ 16.064652][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.064657][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.064662][ C2] __put_net+0x19/0x60 [ 16.064665][ C2] __sk_destruct+0x58a/0x780 [ 16.064669][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.064672][ C2] rcu_do_batch+0x34c/0xf20 [ 16.064677][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.064681][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.064686][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.064691][ C2] rcu_core+0x2bb/0x500 [ 16.064695][ C2] handle_softirqs+0x218/0x620 [ 16.064699][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.064702][ C2] irq_exit_rcu+0xe/0x30 [ 16.064704][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.064707][ C2] [ 16.064709][ C2] [ 16.064710][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.064713][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.064717][ C2] Code: b0 b8 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 d0 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 16.064720][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 16.064723][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffffab755a19 [ 16.064725][ C2] RDX: ffffed1006c2667b RSI: ffffffffaba50c60 RDI: ffffffffa8f84d8f [ 16.064727][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c2667a [ 16.064729][ C2] R10: ffff8880361333d3 R11: ffffffffaf12ebc0 R12: 0000000000000000 [ 16.064731][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 16.064734][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.064738][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.064746][ C2] default_idle+0x9/0x10 [ 16.064748][ C2] default_idle_call+0x6d/0xb0 [ 16.064750][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.064754][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.064758][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.064763][ C2] do_idle+0xf6/0x160 [ 16.064767][ C2] cpu_startup_entry+0x54/0x60 [ 16.064770][ C2] start_secondary+0x213/0x2a0 [ 16.064774][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.064779][ C2] common_startup_64+0x13e/0x148 [ 16.064785][ C2]