[ 12.937997][ C2] [ 12.938142][ C2] ================================ [ 12.938341][ C2] WARNING: inconsistent lock state [ 12.938532][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 12.938726][ C2] -------------------------------- [ 12.938915][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.939151][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.939393][ C2] ffffffffa89bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.939739][ C2] {SOFTIRQ-ON-W} state was registered at: [ 12.939930][ C2] __lock_acquire+0x3eb/0x9d0 [ 12.940132][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.940318][ C2] _raw_spin_lock+0x33/0x40 [ 12.940515][ C2] simple_pin_fs+0x24/0x150 [ 12.940703][ C2] start_creating.part.0+0x3f/0x2f0 [ 12.940894][ C2] debugfs_create_dir+0x6a/0x540 [ 12.941086][ C2] component_debug_init+0x17/0x30 [ 12.941282][ C2] do_one_initcall+0x8c/0x1e0 [ 12.941470][ C2] do_initcalls+0x176/0x280 [ 12.941667][ C2] kernel_init_freeable+0x22d/0x300 [ 12.941859][ C2] kernel_init+0x20/0x200 [ 12.942052][ C2] ret_from_fork+0x31/0x70 [ 12.942246][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.942440][ C2] irq event stamp: 255840 [ 12.942585][ C2] hardirqs last enabled at (255840): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.942966][ C2] hardirqs last disabled at (255839): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.943351][ C2] softirqs last enabled at (254838): [] handle_softirqs+0x358/0x620 [ 12.943692][ C2] softirqs last disabled at (254863): [] __irq_exit_rcu+0xfa/0x160 [ 12.944029][ C2] [ 12.944029][ C2] other info that might help us debug this: [ 12.944316][ C2] Possible unsafe locking scenario: [ 12.944316][ C2] [ 12.944601][ C2] CPU0 [ 12.944747][ C2] ---- [ 12.944894][ C2] lock(pin_fs_lock); [ 12.945041][ C2] [ 12.945184][ C2] lock(pin_fs_lock); [ 12.945329][ C2] [ 12.945329][ C2] *** DEADLOCK *** [ 12.945329][ C2] [ 12.945608][ C2] 1 lock held by swapper/2/0: [ 12.945800][ C2] #0: ffffffffa8774480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.946147][ C2] [ 12.946147][ C2] stack backtrace: [ 12.946385][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 12.946389][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.946391][ C2] Call Trace: [ 12.946393][ C2] [ 12.946396][ C2] dump_stack_lvl+0x82/0xd0 [ 12.946401][ C2] print_usage_bug.part.0+0x25f/0x360 [ 12.946405][ C2] mark_lock_irq+0x343/0x400 [ 12.946409][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 12.946413][ C2] ? save_trace+0x52/0x170 [ 12.946419][ C2] mark_lock+0x174/0x2f0 [ 12.946422][ C2] mark_usage+0x46/0x150 [ 12.946425][ C2] __lock_acquire+0x3eb/0x9d0 [ 12.946429][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.946432][ C2] ? simple_pin_fs+0x24/0x150 [ 12.946435][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.946438][ C2] ? lock_acquire+0x10c/0x170 [ 12.946440][ C2] ? simple_pin_fs+0x24/0x150 [ 12.946444][ C2] _raw_spin_lock+0x33/0x40 [ 12.946447][ C2] ? simple_pin_fs+0x24/0x150 [ 12.946449][ C2] simple_pin_fs+0x24/0x150 [ 12.946452][ C2] debugfs_remove+0x35/0x70 [ 12.946455][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.946460][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.946464][ C2] ? __sk_destruct+0x383/0x780 [ 12.946469][ C2] ? rcu_do_batch+0x34c/0xf20 [ 12.946473][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.946476][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.946478][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.946482][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.946486][ C2] ? pv_native_safe_halt+0xf/0x20 [ 12.946489][ C2] ? default_idle+0x9/0x10 [ 12.946493][ C2] ? default_idle_call+0x6d/0xb0 [ 12.946495][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.946498][ C2] ? do_idle+0xf6/0x160 [ 12.946500][ C2] ? cpu_startup_entry+0x54/0x60 [ 12.946502][ C2] ? start_secondary+0x213/0x2a0 [ 12.946505][ C2] ? common_startup_64+0x13e/0x148 [ 12.946511][ C2] __put_net+0x19/0x60 [ 12.946515][ C2] __sk_destruct+0x58a/0x780 [ 12.946519][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.946522][ C2] rcu_do_batch+0x34c/0xf20 [ 12.946526][ C2] ? find_held_lock+0x2b/0x80 [ 12.946531][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.946535][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.946538][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.946541][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.946545][ C2] rcu_core+0x2bb/0x500 [ 12.946549][ C2] handle_softirqs+0x218/0x620 [ 12.946554][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.946556][ C2] irq_exit_rcu+0xe/0x30 [ 12.946559][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.946562][ C2] [ 12.946563][ C2] [ 12.946564][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.946567][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.946571][ C2] Code: a0 b7 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 a0 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.946574][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 12.946577][ C2] RAX: 000000000003e38d RBX: 1ffff92000028fc1 RCX: ffffffffa7768a19 [ 12.946580][ C2] RDX: 0000000000000000 RSI: ffffffffa82881e1 RDI: ffffffffa7a50e20 [ 12.946582][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 12.946583][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 12.946585][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 12.946589][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.946594][ C2] default_idle+0x9/0x10 [ 12.946597][ C2] default_idle_call+0x6d/0xb0 [ 12.946599][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 12.946602][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.946605][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 12.946610][ C2] do_idle+0xf6/0x160 [ 12.946613][ C2] cpu_startup_entry+0x54/0x60 [ 12.946615][ C2] start_secondary+0x213/0x2a0 [ 12.946618][ C2] ? __pfx_start_secondary+0x10/0x10 [ 12.946622][ C2] common_startup_64+0x13e/0x148 [ 12.946628][ C2] [ 12.962849][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.963189][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 12.963619][ C2] preempt_count: 101, expected: 0 [ 12.963811][ C2] RCU nest depth: 0, expected: 0 [ 12.964006][ C2] INFO: lockdep is turned off. [ 12.964206][ C2] Preemption disabled at: [ 12.964208][ C2] [<0000000000000000>] 0x0 [ 12.964547][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 12.964551][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.964553][ C2] Call Trace: [ 12.964555][ C2] [ 12.964557][ C2] dump_stack_lvl+0xb0/0xd0 [ 12.964564][ C2] __might_resched+0x360/0x5a0 [ 12.964570][ C2] down_write+0x72/0x210 [ 12.964573][ C2] ? __pfx_down_write+0x10/0x10 [ 12.964576][ C2] ? simple_recursive_removal+0x3a/0x860 [ 12.964580][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.964584][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.964589][ C2] simple_recursive_removal+0x166/0x860 [ 12.964592][ C2] ? __pfx_remove_one+0x10/0x10 [ 12.964597][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.964601][ C2] debugfs_remove+0x44/0x70 [ 12.964604][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.964609][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.964613][ C2] ? __sk_destruct+0x383/0x780 [ 12.964617][ C2] ? rcu_do_batch+0x34c/0xf20 [ 12.964622][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.964625][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.964629][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.964633][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.964636][ C2] ? pv_native_safe_halt+0xf/0x20 [ 12.964639][ C2] ? default_idle+0x9/0x10 [ 12.964643][ C2] ? default_idle_call+0x6d/0xb0 [ 12.964645][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.964648][ C2] ? do_idle+0xf6/0x160 [ 12.964650][ C2] ? cpu_startup_entry+0x54/0x60 [ 12.964652][ C2] ? start_secondary+0x213/0x2a0 [ 12.964654][ C2] ? common_startup_64+0x13e/0x148 [ 12.964661][ C2] __put_net+0x19/0x60 [ 12.964664][ C2] __sk_destruct+0x58a/0x780 [ 12.964668][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.964671][ C2] rcu_do_batch+0x34c/0xf20 [ 12.964675][ C2] ? find_held_lock+0x2b/0x80 [ 12.964680][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.964684][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.964688][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.964691][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.964696][ C2] rcu_core+0x2bb/0x500 [ 12.964699][ C2] handle_softirqs+0x218/0x620 [ 12.964704][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.964706][ C2] irq_exit_rcu+0xe/0x30 [ 12.964709][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.964712][ C2] [ 12.964713][ C2] [ 12.964714][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.964717][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.964721][ C2] Code: a0 b7 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 a0 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.964723][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 12.964727][ C2] RAX: 000000000003e38d RBX: 1ffff92000028fc1 RCX: ffffffffa7768a19 [ 12.964729][ C2] RDX: 0000000000000000 RSI: ffffffffa82881e1 RDI: ffffffffa7a50e20 [ 12.964731][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 12.964732][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 12.964734][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 12.964738][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.964743][ C2] default_idle+0x9/0x10 [ 12.964746][ C2] default_idle_call+0x6d/0xb0 [ 12.964748][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 12.964751][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.964754][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 12.964758][ C2] do_idle+0xf6/0x160 [ 12.964761][ C2] cpu_startup_entry+0x54/0x60 [ 12.964764][ C2] start_secondary+0x213/0x2a0 [ 12.964766][ C2] ? __pfx_start_secondary+0x10/0x10 [ 12.964770][ C2] common_startup_64+0x13e/0x148 [ 12.964777][ C2]