[ 13.556198][ C1] [ 13.556346][ C1] ================================ [ 13.556567][ C1] WARNING: inconsistent lock state [ 13.556772][ C1] 6.15.0-virtme #1 Not tainted [ 13.556980][ C1] -------------------------------- [ 13.557188][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.557439][ C1] swapper/1/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.557693][ C1] ffffffff881c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.558068][ C1] {SOFTIRQ-ON-W} state was registered at: [ 13.558271][ C1] __lock_acquire+0x20b/0x7e0 [ 13.558480][ C1] lock_acquire.part.0+0xb6/0x240 [ 13.558686][ C1] _raw_spin_lock+0x33/0x40 [ 13.558900][ C1] simple_pin_fs+0x24/0x150 [ 13.559111][ C1] start_creating.part.0+0x52/0x310 [ 13.559320][ C1] debugfs_create_dir+0x6a/0x540 [ 13.559528][ C1] component_debug_init+0x17/0x30 [ 13.559736][ C1] do_one_initcall+0x8f/0x1e0 [ 13.559943][ C1] do_initcalls+0x176/0x280 [ 13.560152][ C1] kernel_init_freeable+0x22d/0x300 [ 13.560378][ C1] kernel_init+0x20/0x200 [ 13.560586][ C1] ret_from_fork+0x240/0x320 [ 13.560798][ C1] ret_from_fork_asm+0x1a/0x30 [ 13.561004][ C1] irq event stamp: 392410 [ 13.561166][ C1] hardirqs last enabled at (392410): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.561575][ C1] hardirqs last disabled at (392409): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.561992][ C1] softirqs last enabled at (392070): [] handle_softirqs+0x358/0x620 [ 13.562351][ C1] softirqs last disabled at (392127): [] __irq_exit_rcu+0xfa/0x160 [ 13.562713][ C1] [ 13.562713][ C1] other info that might help us debug this: [ 13.563015][ C1] Possible unsafe locking scenario: [ 13.563015][ C1] [ 13.563318][ C1] CPU0 [ 13.563470][ C1] ---- [ 13.563634][ C1] lock(pin_fs_lock); [ 13.563790][ C1] [ 13.563947][ C1] lock(pin_fs_lock); [ 13.564108][ C1] [ 13.564108][ C1] *** DEADLOCK *** [ 13.564108][ C1] [ 13.564404][ C1] 1 lock held by swapper/1/0: [ 13.564615][ C1] #0: ffffffff87f774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.564978][ C1] [ 13.564978][ C1] stack backtrace: [ 13.565230][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.565235][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.565237][ C1] Call Trace: [ 13.565239][ C1] [ 13.565242][ C1] dump_stack_lvl+0x82/0xd0 [ 13.565248][ C1] print_usage_bug.part.0+0x25f/0x360 [ 13.565253][ C1] mark_lock_irq+0x343/0x400 [ 13.565258][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.565263][ C1] ? save_trace+0x52/0x170 [ 13.565267][ C1] mark_lock+0x174/0x2f0 [ 13.565271][ C1] mark_usage+0x46/0x150 [ 13.565274][ C1] __lock_acquire+0x20b/0x7e0 [ 13.565278][ C1] ? __lock_acquire+0x44d/0x7e0 [ 13.565283][ C1] lock_acquire.part.0+0xb6/0x240 [ 13.565286][ C1] ? simple_pin_fs+0x24/0x150 [ 13.565289][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.565294][ C1] ? lock_acquire+0x10c/0x170 [ 13.565297][ C1] ? simple_pin_fs+0x24/0x150 [ 13.565300][ C1] _raw_spin_lock+0x33/0x40 [ 13.565304][ C1] ? simple_pin_fs+0x24/0x150 [ 13.565306][ C1] simple_pin_fs+0x24/0x150 [ 13.565309][ C1] debugfs_remove+0x35/0x70 [ 13.565313][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 13.565318][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.565320][ C1] ? __sk_destruct+0x383/0x780 [ 13.565326][ C1] ? rcu_do_batch+0x34c/0xf20 [ 13.565329][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.565331][ C1] ? irq_exit_rcu+0xe/0x30 [ 13.565335][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.565339][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.565343][ C1] ? pv_native_safe_halt+0xf/0x20 [ 13.565346][ C1] ? default_idle+0x9/0x10 [ 13.565349][ C1] ? default_idle_call+0x6d/0xb0 [ 13.565351][ C1] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.565355][ C1] ? do_idle+0xf6/0x160 [ 13.565358][ C1] ? cpu_startup_entry+0x54/0x60 [ 13.565360][ C1] ? start_secondary+0x213/0x2a0 [ 13.565364][ C1] ? common_startup_64+0x13e/0x148 [ 13.565371][ C1] __put_net+0x19/0x60 [ 13.565375][ C1] __sk_destruct+0x58a/0x780 [ 13.565379][ C1] ? rcu_do_batch+0x34a/0xf20 [ 13.565381][ C1] rcu_do_batch+0x34c/0xf20 [ 13.565386][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.565390][ C1] ? __lock_release+0x5d/0x170 [ 13.565393][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.565396][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.565401][ C1] rcu_core+0x2bb/0x500 [ 13.565405][ C1] handle_softirqs+0x218/0x620 [ 13.565411][ C1] __irq_exit_rcu+0xfa/0x160 [ 13.565414][ C1] irq_exit_rcu+0xe/0x30 [ 13.565417][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.565421][ C1] [ 13.565422][ C1] [ 13.565423][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.565426][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.565430][ 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 [ 13.565432][ C1] RSP: 0018:ffffc90000137de8 EFLAGS: 00000246 [ 13.565435][ C1] RAX: 000000000005fbbd RBX: 1ffff92000026fc1 RCX: ffffffff86fa35d9 [ 13.565438][ C1] RDX: 0000000000000000 RSI: ffffffff87a9175c RDI: ffffffff87253ca0 [ 13.565439][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c166fa [ 13.565441][ C1] R10: ffff8880360b37d3 R11: ffffffff87c11288 R12: 0000000000000000 [ 13.565443][ C1] R13: ffff888001bf0040 R14: dffffc0000000000 R15: 0000000000000000 [ 13.565446][ C1] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.565451][ C1] default_idle+0x9/0x10 [ 13.565453][ C1] default_idle_call+0x6d/0xb0 [ 13.565456][ C1] cpuidle_idle_call+0x26f/0x3a0 [ 13.565459][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.565463][ C1] ? tsc_verify_tsc_adjust+0x98/0x310 [ 13.565468][ C1] do_idle+0xf6/0x160 [ 13.565472][ C1] cpu_startup_entry+0x54/0x60 [ 13.565475][ C1] start_secondary+0x213/0x2a0 [ 13.565478][ C1] ? __pfx_start_secondary+0x10/0x10 [ 13.565483][ C1] common_startup_64+0x13e/0x148 [ 13.565490][ C1] [ 13.581538][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.581878][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/1 [ 13.582209][ C1] preempt_count: 101, expected: 0 [ 13.582414][ C1] RCU nest depth: 0, expected: 0 [ 13.582602][ C1] INFO: lockdep is turned off. [ 13.582794][ C1] Preemption disabled at: [ 13.582796][ C1] [<0000000000000000>] 0x0 [ 13.583144][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.583149][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.583150][ C1] Call Trace: [ 13.583152][ C1] [ 13.583154][ C1] dump_stack_lvl+0xb0/0xd0 [ 13.583161][ C1] __might_resched+0x360/0x5a0 [ 13.583169][ C1] down_write+0x72/0x210 [ 13.583173][ C1] ? __pfx_down_write+0x10/0x10 [ 13.583175][ C1] ? simple_recursive_removal+0x33/0x610 [ 13.583179][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.583185][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 13.583189][ C1] simple_recursive_removal+0x6a/0x610 [ 13.583192][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 13.583194][ C1] ? __pfx_remove_one+0x10/0x10 [ 13.583199][ C1] debugfs_remove+0x44/0x70 [ 13.583203][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 13.583206][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.583209][ C1] ? __sk_destruct+0x383/0x780 [ 13.583214][ C1] ? rcu_do_batch+0x34c/0xf20 [ 13.583217][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.583220][ C1] ? irq_exit_rcu+0xe/0x30 [ 13.583225][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.583230][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.583233][ C1] ? pv_native_safe_halt+0xf/0x20 [ 13.583237][ C1] ? default_idle+0x9/0x10 [ 13.583239][ C1] ? default_idle_call+0x6d/0xb0 [ 13.583242][ C1] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.583245][ C1] ? do_idle+0xf6/0x160 [ 13.583248][ C1] ? cpu_startup_entry+0x54/0x60 [ 13.583251][ C1] ? start_secondary+0x213/0x2a0 [ 13.583255][ C1] ? common_startup_64+0x13e/0x148 [ 13.583261][ C1] __put_net+0x19/0x60 [ 13.583265][ C1] __sk_destruct+0x58a/0x780 [ 13.583269][ C1] ? rcu_do_batch+0x34a/0xf20 [ 13.583272][ C1] rcu_do_batch+0x34c/0xf20 [ 13.583277][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.583281][ C1] ? __lock_release+0x5d/0x170 [ 13.583285][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.583289][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.583294][ C1] rcu_core+0x2bb/0x500 [ 13.583299][ C1] handle_softirqs+0x218/0x620 [ 13.583304][ C1] __irq_exit_rcu+0xfa/0x160 [ 13.583308][ C1] irq_exit_rcu+0xe/0x30 [ 13.583311][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.583314][ C1] [ 13.583316][ C1] [ 13.583317][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.583320][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.583324][ 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 [ 13.583327][ C1] RSP: 0018:ffffc90000137de8 EFLAGS: 00000246 [ 13.583330][ C1] RAX: 000000000005fbbd RBX: 1ffff92000026fc1 RCX: ffffffff86fa35d9 [ 13.583332][ C1] RDX: 0000000000000000 RSI: ffffffff87a9175c RDI: ffffffff87253ca0 [ 13.583333][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c166fa [ 13.583335][ C1] R10: ffff8880360b37d3 R11: ffffffff87c11288 R12: 0000000000000000 [ 13.583336][ C1] R13: ffff888001bf0040 R14: dffffc0000000000 R15: 0000000000000000 [ 13.583340][ C1] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.583345][ C1] default_idle+0x9/0x10 [ 13.583347][ C1] default_idle_call+0x6d/0xb0 [ 13.583350][ C1] cpuidle_idle_call+0x26f/0x3a0 [ 13.583353][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.583357][ C1] ? tsc_verify_tsc_adjust+0x98/0x310 [ 13.583362][ C1] do_idle+0xf6/0x160 [ 13.583366][ C1] cpu_startup_entry+0x54/0x60 [ 13.583369][ C1] start_secondary+0x213/0x2a0 [ 13.583372][ C1] ? __pfx_start_secondary+0x10/0x10 [ 13.583377][ C1] common_startup_64+0x13e/0x148 [ 13.583384][ C1]