[ 12.655358][ C1] [ 12.655500][ C1] ================================ [ 12.655706][ C1] WARNING: inconsistent lock state [ 12.655906][ C1] 6.15.0-rc7-virtme #1 Not tainted [ 12.656111][ C1] -------------------------------- [ 12.656314][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.656565][ C1] swapper/1/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.656817][ C1] ffffffff8dbbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.657184][ C1] {SOFTIRQ-ON-W} state was registered at: [ 12.657386][ C1] __lock_acquire+0x3eb/0x9d0 [ 12.657596][ C1] lock_acquire.part.0+0xb6/0x240 [ 12.657802][ C1] _raw_spin_lock+0x33/0x40 [ 12.658009][ C1] simple_pin_fs+0x24/0x150 [ 12.658213][ C1] start_creating.part.0+0x3f/0x2f0 [ 12.658418][ C1] debugfs_create_dir+0x6a/0x540 [ 12.658622][ C1] component_debug_init+0x17/0x30 [ 12.658828][ C1] do_one_initcall+0x8f/0x1e0 [ 12.659034][ C1] do_initcalls+0x176/0x280 [ 12.659240][ C1] kernel_init_freeable+0x22d/0x300 [ 12.659444][ C1] kernel_init+0x20/0x200 [ 12.659651][ C1] ret_from_fork+0x31/0x70 [ 12.659858][ C1] ret_from_fork_asm+0x1a/0x30 [ 12.660063][ C1] irq event stamp: 409104 [ 12.660217][ C1] hardirqs last enabled at (409104): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.660626][ C1] hardirqs last disabled at (409103): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.661034][ C1] softirqs last enabled at (408862): [] handle_softirqs+0x358/0x620 [ 12.661399][ C1] softirqs last disabled at (408941): [] __irq_exit_rcu+0xfa/0x160 [ 12.661754][ C1] [ 12.661754][ C1] other info that might help us debug this: [ 12.662060][ C1] Possible unsafe locking scenario: [ 12.662060][ C1] [ 12.662363][ C1] CPU0 [ 12.662515][ C1] ---- [ 12.662669][ C1] lock(pin_fs_lock); [ 12.662829][ C1] [ 12.662982][ C1] lock(pin_fs_lock); [ 12.663139][ C1] [ 12.663139][ C1] *** DEADLOCK *** [ 12.663139][ C1] [ 12.663443][ C1] 1 lock held by swapper/1/0: [ 12.663652][ C1] #0: ffffffff8d9749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.664034][ C1] [ 12.664034][ C1] stack backtrace: [ 12.664291][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 12.664295][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.664297][ C1] Call Trace: [ 12.664299][ C1] [ 12.664301][ C1] dump_stack_lvl+0x82/0xd0 [ 12.664307][ C1] print_usage_bug.part.0+0x25f/0x360 [ 12.664311][ C1] mark_lock_irq+0x343/0x400 [ 12.664315][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 12.664320][ C1] ? save_trace+0x52/0x170 [ 12.664326][ C1] mark_lock+0x174/0x2f0 [ 12.664329][ C1] mark_usage+0x46/0x150 [ 12.664332][ C1] __lock_acquire+0x3eb/0x9d0 [ 12.664337][ C1] lock_acquire.part.0+0xb6/0x240 [ 12.664339][ C1] ? simple_pin_fs+0x24/0x150 [ 12.664343][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.664346][ C1] ? lock_acquire+0x10c/0x170 [ 12.664349][ C1] ? simple_pin_fs+0x24/0x150 [ 12.664353][ C1] _raw_spin_lock+0x33/0x40 [ 12.664356][ C1] ? simple_pin_fs+0x24/0x150 [ 12.664358][ C1] simple_pin_fs+0x24/0x150 [ 12.664361][ C1] debugfs_remove+0x35/0x70 [ 12.664365][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 12.664371][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.664375][ C1] ? __sk_destruct+0x383/0x780 [ 12.664379][ C1] ? rcu_do_batch+0x34f/0xf20 [ 12.664383][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.664386][ C1] ? irq_exit_rcu+0xe/0x30 [ 12.664388][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.664392][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.664396][ C1] ? pv_native_safe_halt+0xf/0x20 [ 12.664399][ C1] ? default_idle+0x9/0x10 [ 12.664401][ C1] ? default_idle_call+0x6d/0xb0 [ 12.664403][ C1] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.664407][ C1] ? do_idle+0xf6/0x160 [ 12.664409][ C1] ? cpu_startup_entry+0x54/0x60 [ 12.664411][ C1] ? start_secondary+0x213/0x2a0 [ 12.664414][ C1] ? common_startup_64+0x13e/0x148 [ 12.664421][ C1] __put_net+0x19/0x60 [ 12.664424][ C1] __sk_destruct+0x58a/0x780 [ 12.664428][ C1] ? rcu_do_batch+0x34a/0xf20 [ 12.664432][ C1] rcu_do_batch+0x34f/0xf20 [ 12.664436][ C1] ? find_held_lock+0x2b/0x80 [ 12.664440][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.664444][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.664447][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.664451][ C1] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.664455][ C1] rcu_core+0x2bb/0x500 [ 12.664459][ C1] handle_softirqs+0x218/0x620 [ 12.664464][ C1] __irq_exit_rcu+0xfa/0x160 [ 12.664467][ C1] irq_exit_rcu+0xe/0x30 [ 12.664470][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.664473][ C1] [ 12.664474][ C1] [ 12.664476][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.664479][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.664482][ 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 [ 12.664485][ C1] RSP: 0018:ffffc90000137de8 EFLAGS: 00000242 [ 12.664488][ C1] RAX: 0000000000063d6b RBX: 1ffff92000026fc1 RCX: ffffffff8c96ea19 [ 12.664491][ C1] RDX: 0000000000000000 RSI: ffffffff8d489a45 RDI: ffffffff8cc513a0 [ 12.664492][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1667a [ 12.664494][ C1] R10: ffff8880360b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 12.664496][ C1] R13: ffff888001bf0040 R14: dffffc0000000000 R15: 0000000000000000 [ 12.664499][ C1] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.664505][ C1] default_idle+0x9/0x10 [ 12.664507][ C1] default_idle_call+0x6d/0xb0 [ 12.664509][ C1] cpuidle_idle_call+0x26f/0x3a0 [ 12.664512][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.664516][ C1] ? tsc_verify_tsc_adjust+0x98/0x300 [ 12.664520][ C1] do_idle+0xf6/0x160 [ 12.664524][ C1] cpu_startup_entry+0x54/0x60 [ 12.664526][ C1] start_secondary+0x213/0x2a0 [ 12.664529][ C1] ? __pfx_start_secondary+0x10/0x10 [ 12.664533][ C1] common_startup_64+0x13e/0x148 [ 12.664540][ C1] [ 12.680577][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.680923][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/1 [ 12.681256][ C1] preempt_count: 101, expected: 0 [ 12.681446][ C1] RCU nest depth: 0, expected: 0 [ 12.681633][ C1] INFO: lockdep is turned off. [ 12.681836][ C1] Preemption disabled at: [ 12.681838][ C1] [<0000000000000000>] 0x0 [ 12.682169][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 12.682174][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.682175][ C1] Call Trace: [ 12.682177][ C1] [ 12.682178][ C1] dump_stack_lvl+0xb0/0xd0 [ 12.682185][ C1] __might_resched+0x360/0x5a0 [ 12.682192][ C1] down_write+0x72/0x210 [ 12.682198][ C1] ? __pfx_down_write+0x10/0x10 [ 12.682200][ C1] ? simple_recursive_removal+0x3a/0x860 [ 12.682204][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.682208][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 12.682214][ C1] simple_recursive_removal+0x166/0x860 [ 12.682217][ C1] ? __pfx_remove_one+0x10/0x10 [ 12.682221][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 12.682226][ C1] debugfs_remove+0x44/0x70 [ 12.682229][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 12.682234][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.682238][ C1] ? __sk_destruct+0x383/0x780 [ 12.682242][ C1] ? rcu_do_batch+0x34f/0xf20 [ 12.682246][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.682250][ C1] ? irq_exit_rcu+0xe/0x30 [ 12.682254][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.682258][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.682261][ C1] ? pv_native_safe_halt+0xf/0x20 [ 12.682264][ C1] ? default_idle+0x9/0x10 [ 12.682267][ C1] ? default_idle_call+0x6d/0xb0 [ 12.682269][ C1] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.682272][ C1] ? do_idle+0xf6/0x160 [ 12.682274][ C1] ? cpu_startup_entry+0x54/0x60 [ 12.682276][ C1] ? start_secondary+0x213/0x2a0 [ 12.682279][ C1] ? common_startup_64+0x13e/0x148 [ 12.682285][ C1] __put_net+0x19/0x60 [ 12.682288][ C1] __sk_destruct+0x58a/0x780 [ 12.682292][ C1] ? rcu_do_batch+0x34a/0xf20 [ 12.682295][ C1] rcu_do_batch+0x34f/0xf20 [ 12.682299][ C1] ? find_held_lock+0x2b/0x80 [ 12.682304][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.682308][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.682312][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.682315][ C1] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.682320][ C1] rcu_core+0x2bb/0x500 [ 12.682324][ C1] handle_softirqs+0x218/0x620 [ 12.682329][ C1] __irq_exit_rcu+0xfa/0x160 [ 12.682332][ C1] irq_exit_rcu+0xe/0x30 [ 12.682335][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.682338][ C1] [ 12.682339][ C1] [ 12.682341][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.682343][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.682347][ 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 [ 12.682349][ C1] RSP: 0018:ffffc90000137de8 EFLAGS: 00000242 [ 12.682352][ C1] RAX: 0000000000063d6b RBX: 1ffff92000026fc1 RCX: ffffffff8c96ea19 [ 12.682354][ C1] RDX: 0000000000000000 RSI: ffffffff8d489a45 RDI: ffffffff8cc513a0 [ 12.682356][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1667a [ 12.682358][ C1] R10: ffff8880360b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 12.682359][ C1] R13: ffff888001bf0040 R14: dffffc0000000000 R15: 0000000000000000 [ 12.682363][ C1] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.682369][ C1] default_idle+0x9/0x10 [ 12.682371][ C1] default_idle_call+0x6d/0xb0 [ 12.682373][ C1] cpuidle_idle_call+0x26f/0x3a0 [ 12.682376][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.682380][ C1] ? tsc_verify_tsc_adjust+0x98/0x300 [ 12.682384][ C1] do_idle+0xf6/0x160 [ 12.682387][ C1] cpu_startup_entry+0x54/0x60 [ 12.682390][ C1] start_secondary+0x213/0x2a0 [ 12.682392][ C1] ? __pfx_start_secondary+0x10/0x10 [ 12.682397][ C1] common_startup_64+0x13e/0x148 [ 12.682403][ C1]