[ 15.232100][ C1] [ 15.232353][ C1] ================================ [ 15.232705][ C1] WARNING: inconsistent lock state [ 15.233043][ C1] 6.15.0-rc7-virtme #1 Not tainted [ 15.233395][ C1] -------------------------------- [ 15.233719][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.234138][ C1] swapper/1/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.234564][ C1] ffffffffaafbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.235162][ C1] {SOFTIRQ-ON-W} state was registered at: [ 15.235479][ C1] __lock_acquire+0x3eb/0x9d0 [ 15.235824][ C1] lock_acquire.part.0+0xb6/0x240 [ 15.236162][ C1] _raw_spin_lock+0x33/0x40 [ 15.236499][ C1] simple_pin_fs+0x24/0x150 [ 15.236826][ C1] start_creating.part.0+0x3f/0x2f0 [ 15.237152][ C1] debugfs_create_dir+0x6a/0x540 [ 15.237472][ C1] component_debug_init+0x17/0x30 [ 15.237801][ C1] do_one_initcall+0x8f/0x1e0 [ 15.238137][ C1] do_initcalls+0x176/0x280 [ 15.238474][ C1] kernel_init_freeable+0x22d/0x300 [ 15.238810][ C1] kernel_init+0x20/0x200 [ 15.239160][ C1] ret_from_fork+0x31/0x70 [ 15.239503][ C1] ret_from_fork_asm+0x1a/0x30 [ 15.239847][ C1] irq event stamp: 425846 [ 15.240108][ C1] hardirqs last enabled at (425846): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.240801][ C1] hardirqs last disabled at (425845): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.241375][ C1] softirqs last enabled at (425466): [] handle_softirqs+0x358/0x620 [ 15.241785][ C1] softirqs last disabled at (425479): [] __irq_exit_rcu+0xfa/0x160 [ 15.242391][ C1] [ 15.242391][ C1] other info that might help us debug this: [ 15.242898][ C1] Possible unsafe locking scenario: [ 15.242898][ C1] [ 15.243407][ C1] CPU0 [ 15.243663][ C1] ---- [ 15.243922][ C1] lock(pin_fs_lock); [ 15.244187][ C1] [ 15.244442][ C1] lock(pin_fs_lock); [ 15.244704][ C1] [ 15.244704][ C1] *** DEADLOCK *** [ 15.244704][ C1] [ 15.245216][ C1] 1 lock held by swapper/1/0: [ 15.245559][ C1] #0: ffffffffaad749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.246185][ C1] [ 15.246185][ C1] stack backtrace: [ 15.246610][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.246619][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.246624][ C1] Call Trace: [ 15.246627][ C1] [ 15.246632][ C1] dump_stack_lvl+0x82/0xd0 [ 15.246644][ C1] print_usage_bug.part.0+0x25f/0x360 [ 15.246655][ C1] mark_lock_irq+0x343/0x400 [ 15.246663][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.246671][ C1] ? save_trace+0x52/0x170 [ 15.246680][ C1] mark_lock+0x174/0x2f0 [ 15.246686][ C1] mark_usage+0x46/0x150 [ 15.246691][ C1] __lock_acquire+0x3eb/0x9d0 [ 15.246699][ C1] lock_acquire.part.0+0xb6/0x240 [ 15.246705][ C1] ? simple_pin_fs+0x24/0x150 [ 15.246714][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.246721][ C1] ? lock_acquire+0x10c/0x170 [ 15.246725][ C1] ? simple_pin_fs+0x24/0x150 [ 15.246733][ C1] _raw_spin_lock+0x33/0x40 [ 15.246740][ C1] ? simple_pin_fs+0x24/0x150 [ 15.246744][ C1] simple_pin_fs+0x24/0x150 [ 15.246750][ C1] debugfs_remove+0x35/0x70 [ 15.246758][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 15.246769][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.246775][ C1] ? __sk_destruct+0x383/0x780 [ 15.246783][ C1] ? rcu_do_batch+0x34f/0xf20 [ 15.246791][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.246796][ C1] ? irq_exit_rcu+0xe/0x30 [ 15.246802][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.246808][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.246815][ C1] ? pv_native_safe_halt+0xf/0x20 [ 15.246820][ C1] ? default_idle+0x9/0x10 [ 15.246824][ C1] ? default_idle_call+0x6d/0xb0 [ 15.246829][ C1] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.246835][ C1] ? do_idle+0xf6/0x160 [ 15.246838][ C1] ? cpu_startup_entry+0x54/0x60 [ 15.246842][ C1] ? start_secondary+0x213/0x2a0 [ 15.246847][ C1] ? common_startup_64+0x13e/0x148 [ 15.246859][ C1] __put_net+0x19/0x60 [ 15.246865][ C1] __sk_destruct+0x58a/0x780 [ 15.246872][ C1] ? rcu_do_batch+0x34a/0xf20 [ 15.246877][ C1] rcu_do_batch+0x34f/0xf20 [ 15.246884][ C1] ? find_held_lock+0x2b/0x80 [ 15.246892][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.246899][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.246905][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.246911][ C1] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.246920][ C1] rcu_core+0x2bb/0x500 [ 15.246927][ C1] handle_softirqs+0x218/0x620 [ 15.246936][ C1] __irq_exit_rcu+0xfa/0x160 [ 15.246942][ C1] irq_exit_rcu+0xe/0x30 [ 15.246947][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.246953][ C1] [ 15.246955][ C1] [ 15.246958][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.246962][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.246969][ C1] 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 [ 15.246974][ C1] RSP: 0018:ffffc90000137de8 EFLAGS: 00000246 [ 15.246980][ C1] RAX: 0000000000067e05 RBX: 1ffff92000026fc1 RCX: ffffffffa9d6ea19 [ 15.246984][ C1] RDX: 0000000000000000 RSI: ffffffffaa889a45 RDI: ffffffffaa0513a0 [ 15.246987][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1667a [ 15.246990][ C1] R10: ffff8880360b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.246993][ C1] R13: ffff888001bf0040 R14: dffffc0000000000 R15: 0000000000000000 [ 15.247001][ C1] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.247012][ C1] default_idle+0x9/0x10 [ 15.247016][ C1] default_idle_call+0x6d/0xb0 [ 15.247020][ C1] cpuidle_idle_call+0x26f/0x3a0 [ 15.247025][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.247032][ C1] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.247041][ C1] do_idle+0xf6/0x160 [ 15.247047][ C1] cpu_startup_entry+0x54/0x60 [ 15.247052][ C1] start_secondary+0x213/0x2a0 [ 15.247057][ C1] ? __pfx_start_secondary+0x10/0x10 [ 15.247066][ C1] common_startup_64+0x13e/0x148 [ 15.247080][ C1] [ 15.274491][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.275100][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/1 [ 15.275604][ C1] preempt_count: 101, expected: 0 [ 15.275880][ C1] RCU nest depth: 0, expected: 0 [ 15.276461][ C1] INFO: lockdep is turned off. [ 15.276790][ C1] Preemption disabled at: [ 15.276793][ C1] [<0000000000000000>] 0x0 [ 15.277373][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.277382][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.277386][ C1] Call Trace: [ 15.277389][ C1] [ 15.277395][ C1] dump_stack_lvl+0xb0/0xd0 [ 15.277409][ C1] __might_resched+0x360/0x5a0 [ 15.277422][ C1] down_write+0x72/0x210 [ 15.277428][ C1] ? __pfx_down_write+0x10/0x10 [ 15.277435][ C1] ? simple_recursive_removal+0x3a/0x860 [ 15.277444][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.277452][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 15.277462][ C1] simple_recursive_removal+0x166/0x860 [ 15.277468][ C1] ? __pfx_remove_one+0x10/0x10 [ 15.277476][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 15.277485][ C1] debugfs_remove+0x44/0x70 [ 15.277490][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 15.277501][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.277506][ C1] ? __sk_destruct+0x383/0x780 [ 15.277514][ C1] ? rcu_do_batch+0x34f/0xf20 [ 15.277520][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.277526][ C1] ? irq_exit_rcu+0xe/0x30 [ 15.277533][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.277539][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.277545][ C1] ? pv_native_safe_halt+0xf/0x20 [ 15.277550][ C1] ? default_idle+0x9/0x10 [ 15.277554][ C1] ? default_idle_call+0x6d/0xb0 [ 15.277558][ C1] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.277564][ C1] ? do_idle+0xf6/0x160 [ 15.277568][ C1] ? cpu_startup_entry+0x54/0x60 [ 15.277572][ C1] ? start_secondary+0x213/0x2a0 [ 15.277578][ C1] ? common_startup_64+0x13e/0x148 [ 15.277589][ C1] __put_net+0x19/0x60 [ 15.277596][ C1] __sk_destruct+0x58a/0x780 [ 15.277603][ C1] ? rcu_do_batch+0x34a/0xf20 [ 15.277608][ C1] rcu_do_batch+0x34f/0xf20 [ 15.277616][ C1] ? find_held_lock+0x2b/0x80 [ 15.277626][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.277633][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.277641][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.277646][ C1] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.277655][ C1] rcu_core+0x2bb/0x500 [ 15.277662][ C1] handle_softirqs+0x218/0x620 [ 15.277672][ C1] __irq_exit_rcu+0xfa/0x160 [ 15.277677][ C1] irq_exit_rcu+0xe/0x30 [ 15.277681][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.277686][ C1] [ 15.277687][ C1] [ 15.277690][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.277695][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.277701][ C1] 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 [ 15.277706][ C1] RSP: 0018:ffffc90000137de8 EFLAGS: 00000246 [ 15.277713][ C1] RAX: 0000000000067e05 RBX: 1ffff92000026fc1 RCX: ffffffffa9d6ea19 [ 15.277716][ C1] RDX: 0000000000000000 RSI: ffffffffaa889a45 RDI: ffffffffaa0513a0 [ 15.277720][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1667a [ 15.277723][ C1] R10: ffff8880360b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.277726][ C1] R13: ffff888001bf0040 R14: dffffc0000000000 R15: 0000000000000000 [ 15.277734][ C1] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.277744][ C1] default_idle+0x9/0x10 [ 15.277748][ C1] default_idle_call+0x6d/0xb0 [ 15.277752][ C1] cpuidle_idle_call+0x26f/0x3a0 [ 15.277758][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.277765][ C1] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.277773][ C1] do_idle+0xf6/0x160 [ 15.277779][ C1] cpu_startup_entry+0x54/0x60 [ 15.277784][ C1] start_secondary+0x213/0x2a0 [ 15.277790][ C1] ? __pfx_start_secondary+0x10/0x10 [ 15.277799][ C1] common_startup_64+0x13e/0x148 [ 15.277813][ C1]