[ 12.812363][ C2] [ 12.812508][ C2] ================================ [ 12.812699][ C2] WARNING: inconsistent lock state [ 12.812886][ C2] 6.15.0-rc7-virtme #1 Not tainted [ 12.813075][ C2] -------------------------------- [ 12.813265][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.813503][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.813737][ C2] ffffffff905bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.814078][ C2] {SOFTIRQ-ON-W} state was registered at: [ 12.814278][ C2] __lock_acquire+0x3eb/0x9d0 [ 12.814475][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.814668][ C2] _raw_spin_lock+0x33/0x40 [ 12.814859][ C2] simple_pin_fs+0x24/0x150 [ 12.815046][ C2] start_creating.part.0+0x3f/0x2f0 [ 12.815261][ C2] debugfs_create_dir+0x6a/0x540 [ 12.815450][ C2] component_debug_init+0x17/0x30 [ 12.815645][ C2] do_one_initcall+0x8f/0x1e0 [ 12.815841][ C2] do_initcalls+0x176/0x280 [ 12.816031][ C2] kernel_init_freeable+0x22d/0x300 [ 12.816224][ C2] kernel_init+0x20/0x200 [ 12.816423][ C2] ret_from_fork+0x31/0x70 [ 12.816632][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.816820][ C2] irq event stamp: 225876 [ 12.816970][ C2] hardirqs last enabled at (225876): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.817352][ C2] hardirqs last disabled at (225875): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.817730][ C2] softirqs last enabled at (225784): [] handle_softirqs+0x358/0x620 [ 12.818088][ C2] softirqs last disabled at (225797): [] __irq_exit_rcu+0xfa/0x160 [ 12.818417][ C2] [ 12.818417][ C2] other info that might help us debug this: [ 12.818710][ C2] Possible unsafe locking scenario: [ 12.818710][ C2] [ 12.819003][ C2] CPU0 [ 12.819151][ C2] ---- [ 12.819297][ C2] lock(pin_fs_lock); [ 12.819453][ C2] [ 12.819595][ C2] lock(pin_fs_lock); [ 12.819739][ C2] [ 12.819739][ C2] *** DEADLOCK *** [ 12.819739][ C2] [ 12.820027][ C2] 1 lock held by swapper/2/0: [ 12.820221][ C2] #0: ffffffff903749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.820577][ C2] [ 12.820577][ C2] stack backtrace: [ 12.820814][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 12.820819][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.820821][ C2] Call Trace: [ 12.820822][ C2] [ 12.820824][ C2] dump_stack_lvl+0x82/0xd0 [ 12.820831][ C2] print_usage_bug.part.0+0x25f/0x360 [ 12.820835][ C2] mark_lock_irq+0x343/0x400 [ 12.820839][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 12.820844][ C2] ? save_trace+0x52/0x170 [ 12.820850][ C2] mark_lock+0x174/0x2f0 [ 12.820853][ C2] mark_usage+0x46/0x150 [ 12.820856][ C2] __lock_acquire+0x3eb/0x9d0 [ 12.820861][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.820863][ C2] ? simple_pin_fs+0x24/0x150 [ 12.820867][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.820871][ C2] ? lock_acquire+0x10c/0x170 [ 12.820873][ C2] ? simple_pin_fs+0x24/0x150 [ 12.820877][ C2] _raw_spin_lock+0x33/0x40 [ 12.820880][ C2] ? simple_pin_fs+0x24/0x150 [ 12.820882][ C2] simple_pin_fs+0x24/0x150 [ 12.820886][ C2] debugfs_remove+0x35/0x70 [ 12.820889][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.820895][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.820898][ C2] ? __sk_destruct+0x383/0x780 [ 12.820903][ C2] ? rcu_do_batch+0x34f/0xf20 [ 12.820907][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.820910][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.820914][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.820917][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.820921][ C2] ? pv_native_safe_halt+0xf/0x20 [ 12.820924][ C2] ? default_idle+0x9/0x10 [ 12.820926][ C2] ? default_idle_call+0x6d/0xb0 [ 12.820928][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.820932][ C2] ? do_idle+0xf6/0x160 [ 12.820934][ C2] ? cpu_startup_entry+0x54/0x60 [ 12.820936][ C2] ? start_secondary+0x213/0x2a0 [ 12.820939][ C2] ? common_startup_64+0x13e/0x148 [ 12.820945][ C2] __put_net+0x19/0x60 [ 12.820949][ C2] __sk_destruct+0x58a/0x780 [ 12.820952][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.820956][ C2] rcu_do_batch+0x34f/0xf20 [ 12.820961][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.820965][ C2] ? __lock_release+0x5d/0x170 [ 12.820969][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.820971][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.820976][ C2] rcu_core+0x2bb/0x500 [ 12.820979][ C2] handle_softirqs+0x218/0x620 [ 12.820984][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.820987][ C2] irq_exit_rcu+0xe/0x30 [ 12.820990][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.820993][ C2] [ 12.820994][ C2] [ 12.820996][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.820998][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.821002][ C2] Code: 50 b7 00 e9 c3 57 02 00 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 c3 45 12 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 12.821005][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 12.821008][ C2] RAX: 0000000000037203 RBX: 1ffff92000028fc1 RCX: ffffffff8f36ea19 [ 12.821010][ C2] RDX: 0000000000000000 RSI: ffffffff8fe89a45 RDI: ffffffff8f6513a0 [ 12.821012][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 12.821014][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 12.821015][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 12.821019][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.821025][ C2] default_idle+0x9/0x10 [ 12.821027][ C2] default_idle_call+0x6d/0xb0 [ 12.821029][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 12.821032][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.821036][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 12.821041][ C2] do_idle+0xf6/0x160 [ 12.821044][ C2] cpu_startup_entry+0x54/0x60 [ 12.821047][ C2] start_secondary+0x213/0x2a0 [ 12.821049][ C2] ? __pfx_start_secondary+0x10/0x10 [ 12.821054][ C2] common_startup_64+0x13e/0x148 [ 12.821060][ C2] [ 12.836896][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.837215][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 12.837538][ C2] preempt_count: 101, expected: 0 [ 12.837727][ C2] RCU nest depth: 0, expected: 0 [ 12.837931][ C2] INFO: lockdep is turned off. [ 12.838137][ C2] Preemption disabled at: [ 12.838139][ C2] [<0000000000000000>] 0x0 [ 12.838604][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 12.838610][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.838612][ C2] Call Trace: [ 12.838615][ C2] [ 12.838617][ C2] dump_stack_lvl+0xb0/0xd0 [ 12.838626][ C2] __might_resched+0x360/0x5a0 [ 12.838636][ C2] down_write+0x72/0x210 [ 12.838640][ C2] ? __pfx_down_write+0x10/0x10 [ 12.838642][ C2] ? simple_recursive_removal+0x3a/0x860 [ 12.838646][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.838651][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.838656][ C2] simple_recursive_removal+0x166/0x860 [ 12.838659][ C2] ? __pfx_remove_one+0x10/0x10 [ 12.838663][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.838668][ C2] debugfs_remove+0x44/0x70 [ 12.838671][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.838676][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.838679][ C2] ? __sk_destruct+0x383/0x780 [ 12.838683][ C2] ? rcu_do_batch+0x34f/0xf20 [ 12.838688][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.838691][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.838695][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.838699][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.838702][ C2] ? pv_native_safe_halt+0xf/0x20 [ 12.838705][ C2] ? default_idle+0x9/0x10 [ 12.838707][ C2] ? default_idle_call+0x6d/0xb0 [ 12.838709][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.838712][ C2] ? do_idle+0xf6/0x160 [ 12.838714][ C2] ? cpu_startup_entry+0x54/0x60 [ 12.838717][ C2] ? start_secondary+0x213/0x2a0 [ 12.838719][ C2] ? common_startup_64+0x13e/0x148 [ 12.838725][ C2] __put_net+0x19/0x60 [ 12.838728][ C2] __sk_destruct+0x58a/0x780 [ 12.838732][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.838735][ C2] rcu_do_batch+0x34f/0xf20 [ 12.838741][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.838745][ C2] ? __lock_release+0x5d/0x170 [ 12.838748][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.838751][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.838756][ C2] rcu_core+0x2bb/0x500 [ 12.838760][ C2] handle_softirqs+0x218/0x620 [ 12.838765][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.838767][ C2] irq_exit_rcu+0xe/0x30 [ 12.838770][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.838773][ C2] [ 12.838774][ C2] [ 12.838776][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.838779][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.838782][ C2] Code: 50 b7 00 e9 c3 57 02 00 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 c3 45 12 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 12.838785][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 12.838788][ C2] RAX: 0000000000037203 RBX: 1ffff92000028fc1 RCX: ffffffff8f36ea19 [ 12.838790][ C2] RDX: 0000000000000000 RSI: ffffffff8fe89a45 RDI: ffffffff8f6513a0 [ 12.838792][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 12.838793][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 12.838795][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 12.838800][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.838805][ C2] default_idle+0x9/0x10 [ 12.838807][ C2] default_idle_call+0x6d/0xb0 [ 12.838810][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 12.838813][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.838816][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 12.838820][ C2] do_idle+0xf6/0x160 [ 12.838824][ C2] cpu_startup_entry+0x54/0x60 [ 12.838826][ C2] start_secondary+0x213/0x2a0 [ 12.838829][ C2] ? __pfx_start_secondary+0x10/0x10 [ 12.838833][ C2] common_startup_64+0x13e/0x148 [ 12.838841][ C2]