[ 14.238186][ C0] [ 14.238356][ C0] ================================ [ 14.238587][ C0] WARNING: inconsistent lock state [ 14.238817][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 14.239049][ C0] -------------------------------- [ 14.239276][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.239563][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.239848][ C0] ffffffff8b7bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.240261][ C0] {SOFTIRQ-ON-W} state was registered at: [ 14.240497][ C0] __lock_acquire+0x3eb/0x9d0 [ 14.240740][ C0] lock_acquire.part.0+0xb6/0x240 [ 14.240971][ C0] _raw_spin_lock+0x33/0x40 [ 14.241202][ C0] simple_pin_fs+0x24/0x150 [ 14.241430][ C0] start_creating.part.0+0x3f/0x2f0 [ 14.241662][ C0] debugfs_create_dir+0x6a/0x540 [ 14.241889][ C0] component_debug_init+0x17/0x30 [ 14.242122][ C0] do_one_initcall+0x8f/0x1e0 [ 14.242353][ C0] do_initcalls+0x176/0x280 [ 14.242581][ C0] kernel_init_freeable+0x22d/0x300 [ 14.242807][ C0] kernel_init+0x20/0x200 [ 14.243032][ C0] ret_from_fork+0x31/0x70 [ 14.243259][ C0] ret_from_fork_asm+0x1a/0x30 [ 14.243492][ C0] irq event stamp: 400702 [ 14.243664][ C0] hardirqs last enabled at (400702): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.244119][ C0] hardirqs last disabled at (400701): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.244579][ C0] softirqs last enabled at (399878): [] handle_softirqs+0x358/0x620 [ 14.244981][ C0] softirqs last disabled at (399885): [] __irq_exit_rcu+0xfa/0x160 [ 14.245379][ C0] [ 14.245379][ C0] other info that might help us debug this: [ 14.245713][ C0] Possible unsafe locking scenario: [ 14.245713][ C0] [ 14.246047][ C0] CPU0 [ 14.246218][ C0] ---- [ 14.246388][ C0] lock(pin_fs_lock); [ 14.246566][ C0] [ 14.246737][ C0] lock(pin_fs_lock); [ 14.246908][ C0] [ 14.246908][ C0] *** DEADLOCK *** [ 14.246908][ C0] [ 14.247246][ C0] 1 lock held by swapper/0/0: [ 14.247473][ C0] #0: ffffffff8b5749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.247884][ C0] [ 14.247884][ C0] stack backtrace: [ 14.248167][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 14.248172][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.248174][ C0] Call Trace: [ 14.248176][ C0] [ 14.248178][ C0] dump_stack_lvl+0x82/0xd0 [ 14.248186][ C0] print_usage_bug.part.0+0x25f/0x360 [ 14.248190][ C0] mark_lock_irq+0x343/0x400 [ 14.248194][ C0] ? is_bpf_text_address+0x67/0x120 [ 14.248199][ C0] ? __lock_release+0x5d/0x170 [ 14.248202][ C0] ? save_trace+0x52/0x170 [ 14.248209][ C0] mark_lock+0x174/0x2f0 [ 14.248213][ C0] mark_usage+0x46/0x150 [ 14.248216][ C0] __lock_acquire+0x3eb/0x9d0 [ 14.248220][ C0] lock_acquire.part.0+0xb6/0x240 [ 14.248223][ C0] ? simple_pin_fs+0x24/0x150 [ 14.248226][ C0] ? rcu_is_watching+0x12/0xc0 [ 14.248230][ C0] ? lock_acquire+0x10c/0x170 [ 14.248232][ C0] ? simple_pin_fs+0x24/0x150 [ 14.248236][ C0] _raw_spin_lock+0x33/0x40 [ 14.248239][ C0] ? simple_pin_fs+0x24/0x150 [ 14.248241][ C0] simple_pin_fs+0x24/0x150 [ 14.248245][ C0] debugfs_remove+0x35/0x70 [ 14.248248][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 14.248255][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.248259][ C0] ? __sk_destruct+0x383/0x780 [ 14.248265][ C0] ? rcu_do_batch+0x34f/0xf20 [ 14.248269][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.248272][ C0] ? irq_exit_rcu+0xe/0x30 [ 14.248275][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.248280][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.248283][ C0] ? pv_native_safe_halt+0xf/0x20 [ 14.248287][ C0] ? default_idle+0x9/0x10 [ 14.248289][ C0] ? default_idle_call+0x6d/0xb0 [ 14.248292][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.248296][ C0] ? do_idle+0xf6/0x160 [ 14.248298][ C0] ? cpu_startup_entry+0x54/0x60 [ 14.248300][ C0] ? rest_init+0x14b/0x260 [ 14.248303][ C0] ? start_kernel+0x350/0x410 [ 14.248310][ C0] __put_net+0x19/0x60 [ 14.248314][ C0] __sk_destruct+0x58a/0x780 [ 14.248318][ C0] ? rcu_do_batch+0x34a/0xf20 [ 14.248322][ C0] rcu_do_batch+0x34f/0xf20 [ 14.248326][ C0] ? find_held_lock+0x2b/0x80 [ 14.248331][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.248335][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.248338][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.248342][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.248346][ C0] rcu_core+0x2bb/0x500 [ 14.248350][ C0] handle_softirqs+0x218/0x620 [ 14.248355][ C0] __irq_exit_rcu+0xfa/0x160 [ 14.248358][ C0] irq_exit_rcu+0xe/0x30 [ 14.248361][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.248364][ C0] [ 14.248365][ C0] [ 14.248367][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.248370][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.248374][ 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.248378][ C0] RSP: 0018:ffffffff8b207df8 EFLAGS: 00000242 [ 14.248381][ C0] RAX: 0000000000061a0b RBX: 1ffffffff1640fc3 RCX: ffffffff8a56ea19 [ 14.248383][ C0] RDX: 0000000000000000 RSI: ffffffff8b089a45 RDI: ffffffff8a8513a0 [ 14.248385][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 14.248387][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.248389][ C0] R13: ffffffff8b21f240 R14: dffffc0000000000 R15: 0000000000014770 [ 14.248393][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.248399][ C0] default_idle+0x9/0x10 [ 14.248401][ C0] default_idle_call+0x6d/0xb0 [ 14.248403][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 14.248406][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.248410][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.248416][ C0] do_idle+0xf6/0x160 [ 14.248419][ C0] cpu_startup_entry+0x54/0x60 [ 14.248422][ C0] rest_init+0x14b/0x260 [ 14.248425][ C0] start_kernel+0x350/0x410 [ 14.248429][ C0] x86_64_start_reservations+0x18/0x30 [ 14.248434][ C0] x86_64_start_kernel+0xba/0x110 [ 14.248438][ C0] common_startup_64+0x13e/0x148 [ 14.248447][ C0] [ 14.268297][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.268672][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 14.269300][ C0] preempt_count: 101, expected: 0 [ 14.269504][ C0] RCU nest depth: 0, expected: 0 [ 14.269835][ C0] INFO: lockdep is turned off. [ 14.270060][ C0] Preemption disabled at: [ 14.270062][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 14.270702][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 14.270708][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.270710][ C0] Call Trace: [ 14.270712][ C0] [ 14.270713][ C0] dump_stack_lvl+0xb0/0xd0 [ 14.270721][ C0] __might_resched+0x360/0x5a0 [ 14.270730][ C0] down_write+0x72/0x210 [ 14.270733][ C0] ? __pfx_down_write+0x10/0x10 [ 14.270736][ C0] ? simple_recursive_removal+0x3a/0x860 [ 14.270742][ C0] ? rcu_is_watching+0x12/0xc0 [ 14.270747][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 14.270753][ C0] simple_recursive_removal+0x166/0x860 [ 14.270757][ C0] ? __pfx_remove_one+0x10/0x10 [ 14.270762][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 14.270767][ C0] debugfs_remove+0x44/0x70 [ 14.270771][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 14.270778][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.270781][ C0] ? __sk_destruct+0x383/0x780 [ 14.270787][ C0] ? rcu_do_batch+0x34f/0xf20 [ 14.270792][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.270795][ C0] ? irq_exit_rcu+0xe/0x30 [ 14.270801][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.270806][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.270810][ C0] ? pv_native_safe_halt+0xf/0x20 [ 14.270813][ C0] ? default_idle+0x9/0x10 [ 14.270816][ C0] ? default_idle_call+0x6d/0xb0 [ 14.270818][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.270822][ C0] ? do_idle+0xf6/0x160 [ 14.270824][ C0] ? cpu_startup_entry+0x54/0x60 [ 14.270827][ C0] ? rest_init+0x14b/0x260 [ 14.270829][ C0] ? start_kernel+0x350/0x410 [ 14.270838][ C0] __put_net+0x19/0x60 [ 14.270842][ C0] __sk_destruct+0x58a/0x780 [ 14.270846][ C0] ? rcu_do_batch+0x34a/0xf20 [ 14.270850][ C0] rcu_do_batch+0x34f/0xf20 [ 14.270854][ C0] ? find_held_lock+0x2b/0x80 [ 14.270860][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.270864][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.270870][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.270873][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.270879][ C0] rcu_core+0x2bb/0x500 [ 14.270885][ C0] handle_softirqs+0x218/0x620 [ 14.270894][ C0] __irq_exit_rcu+0xfa/0x160 [ 14.270899][ C0] irq_exit_rcu+0xe/0x30 [ 14.270903][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.270908][ C0] [ 14.270909][ C0] [ 14.270911][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.270913][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.270918][ 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.270921][ C0] RSP: 0018:ffffffff8b207df8 EFLAGS: 00000242 [ 14.270925][ C0] RAX: 0000000000061a0b RBX: 1ffffffff1640fc3 RCX: ffffffff8a56ea19 [ 14.270927][ C0] RDX: 0000000000000000 RSI: ffffffff8b089a45 RDI: ffffffff8a8513a0 [ 14.270929][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 14.270931][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.270933][ C0] R13: ffffffff8b21f240 R14: dffffc0000000000 R15: 0000000000014770 [ 14.270937][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.270943][ C0] default_idle+0x9/0x10 [ 14.270945][ C0] default_idle_call+0x6d/0xb0 [ 14.270947][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 14.270950][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.270954][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.270959][ C0] do_idle+0xf6/0x160 [ 14.270963][ C0] cpu_startup_entry+0x54/0x60 [ 14.270965][ C0] rest_init+0x14b/0x260 [ 14.270968][ C0] start_kernel+0x350/0x410 [ 14.270973][ C0] x86_64_start_reservations+0x18/0x30 [ 14.270978][ C0] x86_64_start_kernel+0xba/0x110 [ 14.270981][ C0] common_startup_64+0x13e/0x148 [ 14.270990][ C0]