[ 18.448650][ C3] [ 18.448795][ C3] ================================ [ 18.448985][ C3] WARNING: inconsistent lock state [ 18.449175][ C3] 6.15.0-rc5-virtme #1 Not tainted [ 18.449367][ C3] -------------------------------- [ 18.449582][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 18.449817][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 18.450062][ C3] ffffffff8e7bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 18.450407][ C3] {SOFTIRQ-ON-W} state was registered at: [ 18.450592][ C3] __lock_acquire+0x3eb/0x9d0 [ 18.450788][ C3] lock_acquire.part.0+0xb6/0x240 [ 18.450977][ C3] _raw_spin_lock+0x33/0x40 [ 18.451165][ C3] simple_pin_fs+0x24/0x150 [ 18.451352][ C3] start_creating.part.0+0x3f/0x2f0 [ 18.451538][ C3] debugfs_create_dir+0x6a/0x540 [ 18.451721][ C3] component_debug_init+0x17/0x30 [ 18.451912][ C3] do_one_initcall+0x8c/0x1e0 [ 18.452099][ C3] do_initcalls+0x176/0x280 [ 18.452286][ C3] kernel_init_freeable+0x22d/0x300 [ 18.452472][ C3] kernel_init+0x20/0x200 [ 18.452656][ C3] ret_from_fork+0x31/0x70 [ 18.452845][ C3] ret_from_fork_asm+0x1a/0x30 [ 18.453030][ C3] irq event stamp: 334350 [ 18.453179][ C3] hardirqs last enabled at (334350): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 18.453547][ C3] hardirqs last disabled at (334349): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 18.453918][ C3] softirqs last enabled at (334100): [] handle_softirqs+0x358/0x620 [ 18.454242][ C3] softirqs last disabled at (334125): [] __irq_exit_rcu+0xfa/0x160 [ 18.454549][ C3] [ 18.454549][ C3] other info that might help us debug this: [ 18.454809][ C3] Possible unsafe locking scenario: [ 18.454809][ C3] [ 18.455067][ C3] CPU0 [ 18.455200][ C3] ---- [ 18.455341][ C3] lock(pin_fs_lock); [ 18.455481][ C3] [ 18.455617][ C3] lock(pin_fs_lock); [ 18.455757][ C3] [ 18.455757][ C3] *** DEADLOCK *** [ 18.455757][ C3] [ 18.456014][ C3] 1 lock held by swapper/3/0: [ 18.456192][ C3] #0: ffffffff8e574480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 18.456518][ C3] [ 18.456518][ C3] stack backtrace: [ 18.456738][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 18.456742][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.456744][ C3] Call Trace: [ 18.456746][ C3] [ 18.456749][ C3] dump_stack_lvl+0x82/0xd0 [ 18.456756][ C3] print_usage_bug.part.0+0x25f/0x360 [ 18.456761][ C3] mark_lock_irq+0x343/0x400 [ 18.456766][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 18.456772][ C3] ? save_trace+0x52/0x170 [ 18.456777][ C3] mark_lock+0x174/0x2f0 [ 18.456781][ C3] mark_usage+0x46/0x150 [ 18.456784][ C3] __lock_acquire+0x3eb/0x9d0 [ 18.456789][ C3] lock_acquire.part.0+0xb6/0x240 [ 18.456793][ C3] ? simple_pin_fs+0x24/0x150 [ 18.456797][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.456804][ C3] ? lock_acquire+0x10c/0x170 [ 18.456807][ C3] ? simple_pin_fs+0x24/0x150 [ 18.456812][ C3] _raw_spin_lock+0x33/0x40 [ 18.456814][ C3] ? simple_pin_fs+0x24/0x150 [ 18.456818][ C3] simple_pin_fs+0x24/0x150 [ 18.456822][ C3] debugfs_remove+0x35/0x70 [ 18.456825][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 18.456831][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.456834][ C3] ? __sk_destruct+0x383/0x780 [ 18.456842][ C3] ? rcu_do_batch+0x34c/0xf20 [ 18.456845][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.456848][ C3] ? irq_exit_rcu+0xe/0x30 [ 18.456850][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.456854][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.456858][ C3] ? pv_native_safe_halt+0xf/0x20 [ 18.456861][ C3] ? default_idle+0x9/0x10 [ 18.456863][ C3] ? default_idle_call+0x6d/0xb0 [ 18.456866][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.456872][ C3] ? do_idle+0xf6/0x160 [ 18.456875][ C3] ? cpu_startup_entry+0x54/0x60 [ 18.456878][ C3] ? start_secondary+0x213/0x2a0 [ 18.456884][ C3] ? common_startup_64+0x13e/0x148 [ 18.456892][ C3] __put_net+0x19/0x60 [ 18.456897][ C3] __sk_destruct+0x58a/0x780 [ 18.456900][ C3] ? rcu_do_batch+0x34a/0xf20 [ 18.456904][ C3] rcu_do_batch+0x34c/0xf20 [ 18.456907][ C3] ? find_held_lock+0x2b/0x80 [ 18.456911][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.456915][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 18.456918][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 18.456922][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 18.456926][ C3] rcu_core+0x2bb/0x500 [ 18.456930][ C3] handle_softirqs+0x218/0x620 [ 18.456934][ C3] __irq_exit_rcu+0xfa/0x160 [ 18.456937][ C3] irq_exit_rcu+0xe/0x30 [ 18.456939][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.456942][ C3] [ 18.456943][ C3] [ 18.456945][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.456947][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 18.456951][ C3] 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 [ 18.456954][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 18.456958][ C3] RAX: 000000000005192b RBX: 1ffff9200002afc1 RCX: ffffffff8d555a19 [ 18.456960][ C3] RDX: 0000000000000000 RSI: ffffffff8e085f31 RDI: ffffffff8d850ce0 [ 18.456962][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 18.456963][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 18.456965][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 18.456969][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 18.456974][ C3] default_idle+0x9/0x10 [ 18.456976][ C3] default_idle_call+0x6d/0xb0 [ 18.456979][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 18.456982][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 18.456986][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 18.456991][ C3] do_idle+0xf6/0x160 [ 18.456995][ C3] cpu_startup_entry+0x54/0x60 [ 18.456999][ C3] start_secondary+0x213/0x2a0 [ 18.457002][ C3] ? __pfx_start_secondary+0x10/0x10 [ 18.457007][ C3] common_startup_64+0x13e/0x148 [ 18.457013][ C3] [ 18.471932][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.472224][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 18.472625][ C3] preempt_count: 101, expected: 0 [ 18.472895][ C3] RCU nest depth: 0, expected: 0 [ 18.473173][ C3] INFO: lockdep is turned off. [ 18.473339][ C3] Preemption disabled at: [ 18.473340][ C3] [<0000000000000000>] 0x0 [ 18.473642][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 18.473647][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.473648][ C3] Call Trace: [ 18.473650][ C3] [ 18.473652][ C3] dump_stack_lvl+0xb0/0xd0 [ 18.473658][ C3] __might_resched+0x360/0x5a0 [ 18.473664][ C3] down_write+0x72/0x210 [ 18.473668][ C3] ? __pfx_down_write+0x10/0x10 [ 18.473670][ C3] ? simple_recursive_removal+0x3a/0x860 [ 18.473674][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.473679][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 18.473684][ C3] simple_recursive_removal+0x166/0x860 [ 18.473687][ C3] ? __pfx_remove_one+0x10/0x10 [ 18.473691][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 18.473695][ C3] debugfs_remove+0x44/0x70 [ 18.473698][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 18.473702][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.473705][ C3] ? __sk_destruct+0x383/0x780 [ 18.473710][ C3] ? rcu_do_batch+0x34c/0xf20 [ 18.473714][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.473716][ C3] ? irq_exit_rcu+0xe/0x30 [ 18.473720][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.473724][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.473727][ C3] ? pv_native_safe_halt+0xf/0x20 [ 18.473730][ C3] ? default_idle+0x9/0x10 [ 18.473732][ C3] ? default_idle_call+0x6d/0xb0 [ 18.473734][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.473738][ C3] ? do_idle+0xf6/0x160 [ 18.473741][ C3] ? cpu_startup_entry+0x54/0x60 [ 18.473744][ C3] ? start_secondary+0x213/0x2a0 [ 18.473748][ C3] ? common_startup_64+0x13e/0x148 [ 18.473754][ C3] __put_net+0x19/0x60 [ 18.473757][ C3] __sk_destruct+0x58a/0x780 [ 18.473761][ C3] ? rcu_do_batch+0x34a/0xf20 [ 18.473764][ C3] rcu_do_batch+0x34c/0xf20 [ 18.473767][ C3] ? find_held_lock+0x2b/0x80 [ 18.473772][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.473775][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 18.473779][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 18.473783][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 18.473788][ C3] rcu_core+0x2bb/0x500 [ 18.473791][ C3] handle_softirqs+0x218/0x620 [ 18.473795][ C3] __irq_exit_rcu+0xfa/0x160 [ 18.473798][ C3] irq_exit_rcu+0xe/0x30 [ 18.473800][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.473803][ C3] [ 18.473804][ C3] [ 18.473806][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.473808][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 18.473812][ C3] 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 [ 18.473815][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 18.473818][ C3] RAX: 000000000005192b RBX: 1ffff9200002afc1 RCX: ffffffff8d555a19 [ 18.473820][ C3] RDX: 0000000000000000 RSI: ffffffff8e085f31 RDI: ffffffff8d850ce0 [ 18.473822][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 18.473823][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 18.473825][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 18.473829][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 18.473834][ C3] default_idle+0x9/0x10 [ 18.473836][ C3] default_idle_call+0x6d/0xb0 [ 18.473839][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 18.473842][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 18.473846][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 18.473851][ C3] do_idle+0xf6/0x160 [ 18.473855][ C3] cpu_startup_entry+0x54/0x60 [ 18.473859][ C3] start_secondary+0x213/0x2a0 [ 18.473862][ C3] ? __pfx_start_secondary+0x10/0x10 [ 18.473867][ C3] common_startup_64+0x13e/0x148 [ 18.473873][ C3]