[ 13.982913][ C0] [ 13.983096][ C0] ================================ [ 13.983317][ C0] WARNING: inconsistent lock state [ 13.983593][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 13.983810][ C0] -------------------------------- [ 13.984023][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.984289][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.984573][ C0] ffffffffbd1bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.984957][ C0] {SOFTIRQ-ON-W} state was registered at: [ 13.985228][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.985495][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.985770][ C0] _raw_spin_lock+0x33/0x40 [ 13.985982][ C0] simple_pin_fs+0x24/0x150 [ 13.986195][ C0] start_creating.part.0+0x3f/0x2f0 [ 13.986420][ C0] debugfs_create_dir+0x6a/0x540 [ 13.986716][ C0] component_debug_init+0x17/0x30 [ 13.986937][ C0] do_one_initcall+0x8f/0x1e0 [ 13.987186][ C0] do_initcalls+0x176/0x280 [ 13.987461][ C0] kernel_init_freeable+0x22d/0x300 [ 13.987683][ C0] kernel_init+0x20/0x200 [ 13.987937][ C0] ret_from_fork+0x31/0x70 [ 13.988155][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.988410][ C0] irq event stamp: 400580 [ 13.988625][ C0] hardirqs last enabled at (400580): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.989046][ C0] hardirqs last disabled at (400579): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.989554][ C0] softirqs last enabled at (399962): [] handle_softirqs+0x358/0x620 [ 13.989927][ C0] softirqs last disabled at (399995): [] __irq_exit_rcu+0xfa/0x160 [ 13.990295][ C0] [ 13.990295][ C0] other info that might help us debug this: [ 13.990617][ C0] Possible unsafe locking scenario: [ 13.990617][ C0] [ 13.990926][ C0] CPU0 [ 13.991082][ C0] ---- [ 13.991242][ C0] lock(pin_fs_lock); [ 13.991481][ C0] [ 13.991658][ C0] lock(pin_fs_lock); [ 13.991868][ C0] [ 13.991868][ C0] *** DEADLOCK *** [ 13.991868][ C0] [ 13.992184][ C0] 1 lock held by swapper/0/0: [ 13.992486][ C0] #0: ffffffffbcf749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.992877][ C0] [ 13.992877][ C0] stack backtrace: [ 13.993238][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.993244][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.993246][ C0] Call Trace: [ 13.993248][ C0] [ 13.993250][ C0] dump_stack_lvl+0x82/0xd0 [ 13.993258][ C0] print_usage_bug.part.0+0x25f/0x360 [ 13.993263][ C0] mark_lock_irq+0x343/0x400 [ 13.993266][ C0] ? is_bpf_text_address+0x67/0x120 [ 13.993270][ C0] ? __lock_release+0x5d/0x170 [ 13.993274][ C0] ? save_trace+0x52/0x170 [ 13.993280][ C0] mark_lock+0x174/0x2f0 [ 13.993283][ C0] mark_usage+0x46/0x150 [ 13.993286][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.993291][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.993293][ C0] ? simple_pin_fs+0x24/0x150 [ 13.993299][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.993302][ C0] ? lock_acquire+0x10c/0x170 [ 13.993305][ C0] ? simple_pin_fs+0x24/0x150 [ 13.993308][ C0] _raw_spin_lock+0x33/0x40 [ 13.993313][ C0] ? simple_pin_fs+0x24/0x150 [ 13.993317][ C0] simple_pin_fs+0x24/0x150 [ 13.993322][ C0] debugfs_remove+0x35/0x70 [ 13.993329][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.993337][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.993342][ C0] ? __sk_destruct+0x383/0x780 [ 13.993349][ C0] ? rcu_do_batch+0x34f/0xf20 [ 13.993356][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.993360][ C0] ? irq_exit_rcu+0xe/0x30 [ 13.993364][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.993368][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.993372][ C0] ? pv_native_safe_halt+0xf/0x20 [ 13.993375][ C0] ? default_idle+0x9/0x10 [ 13.993377][ C0] ? default_idle_call+0x6d/0xb0 [ 13.993380][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.993383][ C0] ? do_idle+0xf6/0x160 [ 13.993385][ C0] ? cpu_startup_entry+0x54/0x60 [ 13.993387][ C0] ? rest_init+0x14b/0x260 [ 13.993389][ C0] ? start_kernel+0x350/0x410 [ 13.993397][ C0] __put_net+0x19/0x60 [ 13.993401][ C0] __sk_destruct+0x58a/0x780 [ 13.993405][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.993408][ C0] rcu_do_batch+0x34f/0xf20 [ 13.993412][ C0] ? find_held_lock+0x2b/0x80 [ 13.993417][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.993421][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.993425][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.993428][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.993433][ C0] rcu_core+0x2bb/0x500 [ 13.993436][ C0] handle_softirqs+0x218/0x620 [ 13.993441][ C0] __irq_exit_rcu+0xfa/0x160 [ 13.993444][ C0] irq_exit_rcu+0xe/0x30 [ 13.993447][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.993450][ C0] [ 13.993451][ C0] [ 13.993453][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.993456][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.993460][ C0] 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 [ 13.993463][ C0] RSP: 0018:ffffffffbcc07df8 EFLAGS: 00000242 [ 13.993466][ C0] RAX: 0000000000061a79 RBX: 1ffffffff7980fc3 RCX: ffffffffbbf6ea19 [ 13.993469][ C0] RDX: 0000000000000000 RSI: ffffffffbca89a45 RDI: ffffffffbc2513a0 [ 13.993470][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 13.993472][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.993474][ C0] R13: ffffffffbcc1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 13.993478][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.993486][ C0] default_idle+0x9/0x10 [ 13.993490][ C0] default_idle_call+0x6d/0xb0 [ 13.993493][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 13.993498][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.993503][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.993511][ C0] do_idle+0xf6/0x160 [ 13.993518][ C0] cpu_startup_entry+0x54/0x60 [ 13.993523][ C0] rest_init+0x14b/0x260 [ 13.993528][ C0] start_kernel+0x350/0x410 [ 13.993535][ C0] x86_64_start_reservations+0x18/0x30 [ 13.993541][ C0] x86_64_start_kernel+0xba/0x110 [ 13.993547][ C0] common_startup_64+0x13e/0x148 [ 13.993562][ C0] [ 14.013745][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.014141][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 14.014643][ C0] preempt_count: 101, expected: 0 [ 14.015038][ C0] RCU nest depth: 0, expected: 0 [ 14.015347][ C0] INFO: lockdep is turned off. [ 14.015565][ C0] Preemption disabled at: [ 14.015567][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 14.016288][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 14.016294][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.016296][ C0] Call Trace: [ 14.016298][ C0] [ 14.016300][ C0] dump_stack_lvl+0xb0/0xd0 [ 14.016307][ C0] __might_resched+0x360/0x5a0 [ 14.016316][ C0] down_write+0x72/0x210 [ 14.016322][ C0] ? __pfx_down_write+0x10/0x10 [ 14.016325][ C0] ? simple_recursive_removal+0x3a/0x860 [ 14.016332][ C0] ? rcu_is_watching+0x12/0xc0 [ 14.016338][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 14.016347][ C0] simple_recursive_removal+0x166/0x860 [ 14.016352][ C0] ? __pfx_remove_one+0x10/0x10 [ 14.016358][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 14.016365][ C0] debugfs_remove+0x44/0x70 [ 14.016370][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 14.016379][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.016385][ C0] ? __sk_destruct+0x383/0x780 [ 14.016391][ C0] ? rcu_do_batch+0x34f/0xf20 [ 14.016398][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.016403][ C0] ? irq_exit_rcu+0xe/0x30 [ 14.016409][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.016414][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.016421][ C0] ? pv_native_safe_halt+0xf/0x20 [ 14.016426][ C0] ? default_idle+0x9/0x10 [ 14.016430][ C0] ? default_idle_call+0x6d/0xb0 [ 14.016435][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.016439][ C0] ? do_idle+0xf6/0x160 [ 14.016443][ C0] ? cpu_startup_entry+0x54/0x60 [ 14.016448][ C0] ? rest_init+0x14b/0x260 [ 14.016452][ C0] ? start_kernel+0x350/0x410 [ 14.016464][ C0] __put_net+0x19/0x60 [ 14.016470][ C0] __sk_destruct+0x58a/0x780 [ 14.016477][ C0] ? rcu_do_batch+0x34a/0xf20 [ 14.016483][ C0] rcu_do_batch+0x34f/0xf20 [ 14.016491][ C0] ? find_held_lock+0x2b/0x80 [ 14.016499][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.016507][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.016514][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.016520][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.016528][ C0] rcu_core+0x2bb/0x500 [ 14.016534][ C0] handle_softirqs+0x218/0x620 [ 14.016542][ C0] __irq_exit_rcu+0xfa/0x160 [ 14.016546][ C0] irq_exit_rcu+0xe/0x30 [ 14.016551][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.016557][ C0] [ 14.016559][ C0] [ 14.016562][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.016567][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.016573][ C0] 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 [ 14.016578][ C0] RSP: 0018:ffffffffbcc07df8 EFLAGS: 00000242 [ 14.016584][ C0] RAX: 0000000000061a79 RBX: 1ffffffff7980fc3 RCX: ffffffffbbf6ea19 [ 14.016588][ C0] RDX: 0000000000000000 RSI: ffffffffbca89a45 RDI: ffffffffbc2513a0 [ 14.016591][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 14.016593][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.016596][ C0] R13: ffffffffbcc1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 14.016603][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.016612][ C0] default_idle+0x9/0x10 [ 14.016616][ C0] default_idle_call+0x6d/0xb0 [ 14.016619][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 14.016624][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.016630][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.016637][ C0] do_idle+0xf6/0x160 [ 14.016643][ C0] cpu_startup_entry+0x54/0x60 [ 14.016647][ C0] rest_init+0x14b/0x260 [ 14.016652][ C0] start_kernel+0x350/0x410 [ 14.016658][ C0] x86_64_start_reservations+0x18/0x30 [ 14.016665][ C0] x86_64_start_kernel+0xba/0x110 [ 14.016670][ C0] common_startup_64+0x13e/0x148 [ 14.016683][ C0]