[ 12.825654][ C1] [ 12.825790][ C1] ================================ [ 12.825985][ C1] WARNING: inconsistent lock state [ 12.826180][ C1] 6.15.0-virtme #1 Not tainted [ 12.826382][ C1] -------------------------------- [ 12.826579][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.826819][ C1] swapper/1/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.827059][ C1] ffffffff979c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.827399][ C1] {SOFTIRQ-ON-W} state was registered at: [ 12.827590][ C1] __lock_acquire+0x20b/0x7e0 [ 12.827787][ C1] lock_acquire.part.0+0xb6/0x240 [ 12.827981][ C1] _raw_spin_lock+0x33/0x40 [ 12.828176][ C1] simple_pin_fs+0x24/0x150 [ 12.828367][ C1] start_creating.part.0+0x52/0x310 [ 12.828562][ C1] debugfs_create_dir+0x6a/0x540 [ 12.828755][ C1] component_debug_init+0x17/0x30 [ 12.828948][ C1] do_one_initcall+0x8f/0x1e0 [ 12.829138][ C1] do_initcalls+0x176/0x280 [ 12.829327][ C1] kernel_init_freeable+0x22d/0x300 [ 12.829523][ C1] kernel_init+0x20/0x200 [ 12.829712][ C1] ret_from_fork+0x240/0x320 [ 12.829902][ C1] ret_from_fork_asm+0x1a/0x30 [ 12.830089][ C1] irq event stamp: 371918 [ 12.830234][ C1] hardirqs last enabled at (371918): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.830631][ C1] hardirqs last disabled at (371917): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.831003][ C1] softirqs last enabled at (371494): [] handle_softirqs+0x358/0x620 [ 12.831337][ C1] softirqs last disabled at (371647): [] __irq_exit_rcu+0xfa/0x160 [ 12.831666][ C1] [ 12.831666][ C1] other info that might help us debug this: [ 12.831943][ C1] Possible unsafe locking scenario: [ 12.831943][ C1] [ 12.832222][ C1] CPU0 [ 12.832362][ C1] ---- [ 12.832504][ C1] lock(pin_fs_lock); [ 12.832652][ C1] [ 12.832793][ C1] lock(pin_fs_lock); [ 12.832938][ C1] [ 12.832938][ C1] *** DEADLOCK *** [ 12.832938][ C1] [ 12.833217][ C1] 1 lock held by swapper/1/0: [ 12.833407][ C1] #0: ffffffff977774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.833743][ C1] [ 12.833743][ C1] stack backtrace: [ 12.833982][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.833987][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.833989][ C1] Call Trace: [ 12.833991][ C1] [ 12.833994][ C1] dump_stack_lvl+0x82/0xd0 [ 12.834000][ C1] print_usage_bug.part.0+0x25f/0x360 [ 12.834005][ C1] mark_lock_irq+0x343/0x400 [ 12.834009][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 12.834014][ C1] ? save_trace+0x52/0x170 [ 12.834018][ C1] mark_lock+0x174/0x2f0 [ 12.834022][ C1] mark_usage+0x46/0x150 [ 12.834025][ C1] __lock_acquire+0x20b/0x7e0 [ 12.834029][ C1] ? __lock_acquire+0x44d/0x7e0 [ 12.834033][ C1] lock_acquire.part.0+0xb6/0x240 [ 12.834036][ C1] ? simple_pin_fs+0x24/0x150 [ 12.834040][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.834045][ C1] ? lock_acquire+0x10c/0x170 [ 12.834048][ C1] ? simple_pin_fs+0x24/0x150 [ 12.834051][ C1] _raw_spin_lock+0x33/0x40 [ 12.834054][ C1] ? simple_pin_fs+0x24/0x150 [ 12.834057][ C1] simple_pin_fs+0x24/0x150 [ 12.834060][ C1] debugfs_remove+0x35/0x70 [ 12.834064][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 12.834069][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.834071][ C1] ? __sk_destruct+0x383/0x780 [ 12.834077][ C1] ? rcu_do_batch+0x34c/0xf20 [ 12.834080][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.834083][ C1] ? irq_exit_rcu+0xe/0x30 [ 12.834086][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.834090][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.834093][ C1] ? pv_native_safe_halt+0xf/0x20 [ 12.834096][ C1] ? default_idle+0x9/0x10 [ 12.834099][ C1] ? default_idle_call+0x6d/0xb0 [ 12.834101][ C1] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.834104][ C1] ? do_idle+0xf6/0x160 [ 12.834107][ C1] ? cpu_startup_entry+0x54/0x60 [ 12.834109][ C1] ? start_secondary+0x213/0x2a0 [ 12.834113][ C1] ? common_startup_64+0x13e/0x148 [ 12.834120][ C1] __put_net+0x19/0x60 [ 12.834124][ C1] __sk_destruct+0x58a/0x780 [ 12.834128][ C1] ? rcu_do_batch+0x34a/0xf20 [ 12.834131][ C1] rcu_do_batch+0x34c/0xf20 [ 12.834134][ C1] ? find_held_lock+0x2b/0x80 [ 12.834138][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.834141][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.834145][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.834149][ C1] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.834153][ C1] rcu_core+0x2bb/0x500 [ 12.834158][ C1] handle_softirqs+0x218/0x620 [ 12.834164][ C1] __irq_exit_rcu+0xfa/0x160 [ 12.834167][ C1] irq_exit_rcu+0xe/0x30 [ 12.834170][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.834174][ C1] [ 12.834175][ C1] [ 12.834177][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.834179][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.834184][ C1] Code: 92 b4 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 83 07 0f 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 12.834186][ C1] RSP: 0018:ffffc90000137de8 EFLAGS: 00000246 [ 12.834189][ C1] RAX: 000000000005abbd RBX: 1ffff92000026fc1 RCX: ffffffff967a35d9 [ 12.834191][ C1] RDX: 0000000000000000 RSI: ffffffff9729175c RDI: ffffffff96a53ca0 [ 12.834193][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005e966fa [ 12.834195][ C1] R10: ffff88802f4b37d3 R11: ffffffff97411288 R12: 0000000000000000 [ 12.834196][ C1] R13: ffff888001bf0040 R14: dffffc0000000000 R15: 0000000000000000 [ 12.834200][ C1] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.834205][ C1] default_idle+0x9/0x10 [ 12.834207][ C1] default_idle_call+0x6d/0xb0 [ 12.834210][ C1] cpuidle_idle_call+0x26f/0x3a0 [ 12.834213][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.834217][ C1] ? tsc_verify_tsc_adjust+0x98/0x310 [ 12.834222][ C1] do_idle+0xf6/0x160 [ 12.834226][ C1] cpu_startup_entry+0x54/0x60 [ 12.834229][ C1] start_secondary+0x213/0x2a0 [ 12.834232][ C1] ? __pfx_start_secondary+0x10/0x10 [ 12.834237][ C1] common_startup_64+0x13e/0x148 [ 12.834245][ C1] [ 12.849383][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.849696][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/1 [ 12.849994][ C1] preempt_count: 101, expected: 0 [ 12.850168][ C1] RCU nest depth: 0, expected: 0 [ 12.850341][ C1] INFO: lockdep is turned off. [ 12.850538][ C1] Preemption disabled at: [ 12.850540][ C1] [<0000000000000000>] 0x0 [ 12.850853][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.850858][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.850860][ C1] Call Trace: [ 12.850861][ C1] [ 12.850863][ C1] dump_stack_lvl+0xb0/0xd0 [ 12.850870][ C1] __might_resched+0x360/0x5a0 [ 12.850877][ C1] down_write+0x72/0x210 [ 12.850881][ C1] ? __pfx_down_write+0x10/0x10 [ 12.850884][ C1] ? simple_recursive_removal+0x33/0x610 [ 12.850888][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.850894][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 12.850898][ C1] simple_recursive_removal+0x6a/0x610 [ 12.850901][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 12.850904][ C1] ? __pfx_remove_one+0x10/0x10 [ 12.850910][ C1] debugfs_remove+0x44/0x70 [ 12.850913][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 12.850917][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.850920][ C1] ? __sk_destruct+0x383/0x780 [ 12.850926][ C1] ? rcu_do_batch+0x34c/0xf20 [ 12.850929][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.850932][ C1] ? irq_exit_rcu+0xe/0x30 [ 12.850937][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.850941][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.850945][ C1] ? pv_native_safe_halt+0xf/0x20 [ 12.850949][ C1] ? default_idle+0x9/0x10 [ 12.850951][ C1] ? default_idle_call+0x6d/0xb0 [ 12.850954][ C1] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.850958][ C1] ? do_idle+0xf6/0x160 [ 12.850960][ C1] ? cpu_startup_entry+0x54/0x60 [ 12.850963][ C1] ? start_secondary+0x213/0x2a0 [ 12.850967][ C1] ? common_startup_64+0x13e/0x148 [ 12.850975][ C1] __put_net+0x19/0x60 [ 12.850978][ C1] __sk_destruct+0x58a/0x780 [ 12.850982][ C1] ? rcu_do_batch+0x34a/0xf20 [ 12.850985][ C1] rcu_do_batch+0x34c/0xf20 [ 12.850989][ C1] ? find_held_lock+0x2b/0x80 [ 12.850993][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.850997][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.851001][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.851005][ C1] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.851009][ C1] rcu_core+0x2bb/0x500 [ 12.851014][ C1] handle_softirqs+0x218/0x620 [ 12.851020][ C1] __irq_exit_rcu+0xfa/0x160 [ 12.851023][ C1] irq_exit_rcu+0xe/0x30 [ 12.851026][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.851030][ C1] [ 12.851031][ C1] [ 12.851032][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.851035][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.851039][ C1] Code: 92 b4 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 83 07 0f 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 12.851041][ C1] RSP: 0018:ffffc90000137de8 EFLAGS: 00000246 [ 12.851044][ C1] RAX: 000000000005abbd RBX: 1ffff92000026fc1 RCX: ffffffff967a35d9 [ 12.851046][ C1] RDX: 0000000000000000 RSI: ffffffff9729175c RDI: ffffffff96a53ca0 [ 12.851048][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005e966fa [ 12.851049][ C1] R10: ffff88802f4b37d3 R11: ffffffff97411288 R12: 0000000000000000 [ 12.851051][ C1] R13: ffff888001bf0040 R14: dffffc0000000000 R15: 0000000000000000 [ 12.851055][ C1] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.851059][ C1] default_idle+0x9/0x10 [ 12.851062][ C1] default_idle_call+0x6d/0xb0 [ 12.851064][ C1] cpuidle_idle_call+0x26f/0x3a0 [ 12.851068][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.851072][ C1] ? tsc_verify_tsc_adjust+0x98/0x310 [ 12.851076][ C1] do_idle+0xf6/0x160 [ 12.851080][ C1] cpu_startup_entry+0x54/0x60 [ 12.851083][ C1] start_secondary+0x213/0x2a0 [ 12.851086][ C1] ? __pfx_start_secondary+0x10/0x10 [ 12.851091][ C1] common_startup_64+0x13e/0x148 [ 12.851099][ C1]