[ 12.620507][ C0] [ 12.620661][ C0] ================================ [ 12.620889][ C0] WARNING: inconsistent lock state [ 12.621107][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 12.621327][ C0] -------------------------------- [ 12.621551][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.621826][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.622100][ C0] ffffffffb37bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.622489][ C0] {SOFTIRQ-ON-W} state was registered at: [ 12.622709][ C0] __lock_acquire+0x3eb/0x9d0 [ 12.622930][ C0] lock_acquire.part.0+0xb6/0x240 [ 12.623149][ C0] _raw_spin_lock+0x33/0x40 [ 12.623369][ C0] simple_pin_fs+0x24/0x150 [ 12.623585][ C0] start_creating.part.0+0x3f/0x2f0 [ 12.623807][ C0] debugfs_create_dir+0x6a/0x540 [ 12.624028][ C0] component_debug_init+0x17/0x30 [ 12.624250][ C0] do_one_initcall+0x8f/0x1e0 [ 12.624471][ C0] do_initcalls+0x176/0x280 [ 12.624703][ C0] kernel_init_freeable+0x22d/0x300 [ 12.624921][ C0] kernel_init+0x20/0x200 [ 12.625147][ C0] ret_from_fork+0x31/0x70 [ 12.625369][ C0] ret_from_fork_asm+0x1a/0x30 [ 12.625583][ C0] irq event stamp: 421002 [ 12.625751][ C0] hardirqs last enabled at (421002): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.626189][ C0] hardirqs last disabled at (421001): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.626627][ C0] softirqs last enabled at (420922): [] handle_softirqs+0x358/0x620 [ 12.627013][ C0] softirqs last disabled at (420959): [] __irq_exit_rcu+0xfa/0x160 [ 12.627397][ C0] [ 12.627397][ C0] other info that might help us debug this: [ 12.627716][ C0] Possible unsafe locking scenario: [ 12.627716][ C0] [ 12.628038][ C0] CPU0 [ 12.628204][ C0] ---- [ 12.628373][ C0] lock(pin_fs_lock); [ 12.628540][ C0] [ 12.628706][ C0] lock(pin_fs_lock); [ 12.628873][ C0] [ 12.628873][ C0] *** DEADLOCK *** [ 12.628873][ C0] [ 12.629198][ C0] 1 lock held by swapper/0/0: [ 12.629418][ C0] #0: ffffffffb35749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.629818][ C0] [ 12.629818][ C0] stack backtrace: [ 12.630092][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 12.630097][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.630099][ C0] Call Trace: [ 12.630101][ C0] [ 12.630102][ C0] dump_stack_lvl+0x82/0xd0 [ 12.630108][ C0] print_usage_bug.part.0+0x25f/0x360 [ 12.630113][ C0] mark_lock_irq+0x343/0x400 [ 12.630116][ C0] ? is_bpf_text_address+0x67/0x120 [ 12.630121][ C0] ? __lock_release+0x5d/0x170 [ 12.630124][ C0] ? save_trace+0x52/0x170 [ 12.630130][ C0] mark_lock+0x174/0x2f0 [ 12.630134][ C0] mark_usage+0x46/0x150 [ 12.630136][ C0] __lock_acquire+0x3eb/0x9d0 [ 12.630141][ C0] lock_acquire.part.0+0xb6/0x240 [ 12.630144][ C0] ? simple_pin_fs+0x24/0x150 [ 12.630148][ C0] ? rcu_is_watching+0x12/0xc0 [ 12.630151][ C0] ? lock_acquire+0x10c/0x170 [ 12.630153][ C0] ? simple_pin_fs+0x24/0x150 [ 12.630157][ C0] _raw_spin_lock+0x33/0x40 [ 12.630160][ C0] ? simple_pin_fs+0x24/0x150 [ 12.630163][ C0] simple_pin_fs+0x24/0x150 [ 12.630166][ C0] debugfs_remove+0x35/0x70 [ 12.630170][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 12.630175][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.630179][ C0] ? __sk_destruct+0x383/0x780 [ 12.630184][ C0] ? rcu_do_batch+0x34f/0xf20 [ 12.630187][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.630190][ C0] ? irq_exit_rcu+0xe/0x30 [ 12.630193][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.630197][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.630201][ C0] ? pv_native_safe_halt+0xf/0x20 [ 12.630204][ C0] ? default_idle+0x9/0x10 [ 12.630206][ C0] ? default_idle_call+0x6d/0xb0 [ 12.630208][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.630212][ C0] ? do_idle+0xf6/0x160 [ 12.630214][ C0] ? cpu_startup_entry+0x54/0x60 [ 12.630216][ C0] ? rest_init+0x14b/0x260 [ 12.630219][ C0] ? start_kernel+0x350/0x410 [ 12.630225][ C0] __put_net+0x19/0x60 [ 12.630229][ C0] __sk_destruct+0x58a/0x780 [ 12.630233][ C0] ? rcu_do_batch+0x34a/0xf20 [ 12.630236][ C0] rcu_do_batch+0x34f/0xf20 [ 12.630240][ C0] ? find_held_lock+0x2b/0x80 [ 12.630245][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.630249][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.630252][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.630256][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.630260][ C0] rcu_core+0x2bb/0x500 [ 12.630264][ C0] handle_softirqs+0x218/0x620 [ 12.630269][ C0] __irq_exit_rcu+0xfa/0x160 [ 12.630272][ C0] irq_exit_rcu+0xe/0x30 [ 12.630274][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.630278][ C0] [ 12.630279][ C0] [ 12.630280][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.630283][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.630287][ 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 [ 12.630290][ C0] RSP: 0018:ffffffffb3207df8 EFLAGS: 00000242 [ 12.630293][ C0] RAX: 0000000000066c5d RBX: 1ffffffff6640fc3 RCX: ffffffffb256ea19 [ 12.630295][ C0] RDX: 0000000000000000 RSI: ffffffffb3089a45 RDI: ffffffffb28513a0 [ 12.630297][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 12.630298][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 12.630300][ C0] R13: ffffffffb321f240 R14: dffffc0000000000 R15: 0000000000014770 [ 12.630304][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.630310][ C0] default_idle+0x9/0x10 [ 12.630312][ C0] default_idle_call+0x6d/0xb0 [ 12.630314][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 12.630317][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.630321][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 12.630326][ C0] do_idle+0xf6/0x160 [ 12.630329][ C0] cpu_startup_entry+0x54/0x60 [ 12.630332][ C0] rest_init+0x14b/0x260 [ 12.630335][ C0] start_kernel+0x350/0x410 [ 12.630339][ C0] x86_64_start_reservations+0x18/0x30 [ 12.630343][ C0] x86_64_start_kernel+0xba/0x110 [ 12.630347][ C0] common_startup_64+0x13e/0x148 [ 12.630355][ C0] [ 12.648266][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.648638][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 12.648993][ C0] preempt_count: 101, expected: 0 [ 12.649198][ C0] RCU nest depth: 0, expected: 0 [ 12.649403][ C0] INFO: lockdep is turned off. [ 12.649611][ C0] Preemption disabled at: [ 12.649613][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 12.650074][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 12.650079][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.650081][ C0] Call Trace: [ 12.650082][ C0] [ 12.650084][ C0] dump_stack_lvl+0xb0/0xd0 [ 12.650090][ C0] __might_resched+0x360/0x5a0 [ 12.650096][ C0] down_write+0x72/0x210 [ 12.650099][ C0] ? __pfx_down_write+0x10/0x10 [ 12.650102][ C0] ? simple_recursive_removal+0x3a/0x860 [ 12.650106][ C0] ? rcu_is_watching+0x12/0xc0 [ 12.650110][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 12.650115][ C0] simple_recursive_removal+0x166/0x860 [ 12.650119][ C0] ? __pfx_remove_one+0x10/0x10 [ 12.650123][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 12.650128][ C0] debugfs_remove+0x44/0x70 [ 12.650131][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 12.650136][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.650139][ C0] ? __sk_destruct+0x383/0x780 [ 12.650143][ C0] ? rcu_do_batch+0x34f/0xf20 [ 12.650148][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.650151][ C0] ? irq_exit_rcu+0xe/0x30 [ 12.650155][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.650158][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.650162][ C0] ? pv_native_safe_halt+0xf/0x20 [ 12.650165][ C0] ? default_idle+0x9/0x10 [ 12.650167][ C0] ? default_idle_call+0x6d/0xb0 [ 12.650169][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.650172][ C0] ? do_idle+0xf6/0x160 [ 12.650174][ C0] ? cpu_startup_entry+0x54/0x60 [ 12.650176][ C0] ? rest_init+0x14b/0x260 [ 12.650179][ C0] ? start_kernel+0x350/0x410 [ 12.650185][ C0] __put_net+0x19/0x60 [ 12.650189][ C0] __sk_destruct+0x58a/0x780 [ 12.650193][ C0] ? rcu_do_batch+0x34a/0xf20 [ 12.650196][ C0] rcu_do_batch+0x34f/0xf20 [ 12.650200][ C0] ? find_held_lock+0x2b/0x80 [ 12.650204][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.650209][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.650212][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.650216][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 12.650220][ C0] rcu_core+0x2bb/0x500 [ 12.650224][ C0] handle_softirqs+0x218/0x620 [ 12.650229][ C0] __irq_exit_rcu+0xfa/0x160 [ 12.650232][ C0] irq_exit_rcu+0xe/0x30 [ 12.650235][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.650238][ C0] [ 12.650239][ C0] [ 12.650241][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.650243][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.650247][ 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 [ 12.650250][ C0] RSP: 0018:ffffffffb3207df8 EFLAGS: 00000242 [ 12.650253][ C0] RAX: 0000000000066c5d RBX: 1ffffffff6640fc3 RCX: ffffffffb256ea19 [ 12.650255][ C0] RDX: 0000000000000000 RSI: ffffffffb3089a45 RDI: ffffffffb28513a0 [ 12.650257][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 12.650258][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 12.650260][ C0] R13: ffffffffb321f240 R14: dffffc0000000000 R15: 0000000000014770 [ 12.650264][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.650270][ C0] default_idle+0x9/0x10 [ 12.650272][ C0] default_idle_call+0x6d/0xb0 [ 12.650274][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 12.650277][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.650281][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 12.650286][ C0] do_idle+0xf6/0x160 [ 12.650289][ C0] cpu_startup_entry+0x54/0x60 [ 12.650291][ C0] rest_init+0x14b/0x260 [ 12.650294][ C0] start_kernel+0x350/0x410 [ 12.650299][ C0] x86_64_start_reservations+0x18/0x30 [ 12.650303][ C0] x86_64_start_kernel+0xba/0x110 [ 12.650306][ C0] common_startup_64+0x13e/0x148 [ 12.650314][ C0]