[ 16.237058][ C2] [ 16.237228][ C2] ================================ [ 16.237432][ C2] WARNING: inconsistent lock state [ 16.237638][ C2] 6.15.0-virtme #1 Not tainted [ 16.237843][ C2] -------------------------------- [ 16.238038][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.238297][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.238544][ C2] ffffffffbc1c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.238910][ C2] {SOFTIRQ-ON-W} state was registered at: [ 16.239111][ C2] __lock_acquire+0x20b/0x7e0 [ 16.239331][ C2] lock_acquire.part.0+0xb6/0x240 [ 16.239530][ C2] _raw_spin_lock+0x33/0x40 [ 16.239749][ C2] simple_pin_fs+0x24/0x150 [ 16.239950][ C2] start_creating.part.0+0x52/0x310 [ 16.240154][ C2] debugfs_create_dir+0x6a/0x540 [ 16.240359][ C2] component_debug_init+0x17/0x30 [ 16.240573][ C2] do_one_initcall+0x8f/0x1e0 [ 16.240778][ C2] do_initcalls+0x176/0x280 [ 16.240983][ C2] kernel_init_freeable+0x22d/0x300 [ 16.241185][ C2] kernel_init+0x20/0x200 [ 16.241388][ C2] ret_from_fork+0x240/0x320 [ 16.241599][ C2] ret_from_fork_asm+0x1a/0x30 [ 16.241800][ C2] irq event stamp: 288074 [ 16.241954][ C2] hardirqs last enabled at (288074): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.242356][ C2] hardirqs last disabled at (288073): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.242756][ C2] softirqs last enabled at (286142): [] handle_softirqs+0x358/0x620 [ 16.243114][ C2] softirqs last disabled at (286149): [] __irq_exit_rcu+0xfa/0x160 [ 16.243472][ C2] [ 16.243472][ C2] other info that might help us debug this: [ 16.243770][ C2] Possible unsafe locking scenario: [ 16.243770][ C2] [ 16.244071][ C2] CPU0 [ 16.244224][ C2] ---- [ 16.244378][ C2] lock(pin_fs_lock); [ 16.244533][ C2] [ 16.244686][ C2] lock(pin_fs_lock); [ 16.244842][ C2] [ 16.244842][ C2] *** DEADLOCK *** [ 16.244842][ C2] [ 16.245140][ C2] 1 lock held by swapper/2/0: [ 16.245347][ C2] #0: ffffffffbbf774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.245712][ C2] [ 16.245712][ C2] stack backtrace: [ 16.245964][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.245971][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.245973][ C2] Call Trace: [ 16.245977][ C2] [ 16.245979][ C2] dump_stack_lvl+0x82/0xd0 [ 16.245985][ C2] print_usage_bug.part.0+0x25f/0x360 [ 16.245989][ C2] mark_lock_irq+0x343/0x400 [ 16.245993][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 16.245998][ C2] ? save_trace+0x52/0x170 [ 16.246004][ C2] mark_lock+0x174/0x2f0 [ 16.246008][ C2] mark_usage+0x46/0x150 [ 16.246011][ C2] __lock_acquire+0x20b/0x7e0 [ 16.246014][ C2] ? __lock_acquire+0x44d/0x7e0 [ 16.246018][ C2] lock_acquire.part.0+0xb6/0x240 [ 16.246021][ C2] ? simple_pin_fs+0x24/0x150 [ 16.246026][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.246030][ C2] ? lock_acquire+0x10c/0x170 [ 16.246033][ C2] ? simple_pin_fs+0x24/0x150 [ 16.246037][ C2] _raw_spin_lock+0x33/0x40 [ 16.246041][ C2] ? simple_pin_fs+0x24/0x150 [ 16.246044][ C2] simple_pin_fs+0x24/0x150 [ 16.246048][ C2] debugfs_remove+0x35/0x70 [ 16.246051][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.246060][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.246064][ C2] ? __sk_destruct+0x383/0x780 [ 16.246073][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.246075][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.246079][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.246082][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.246087][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.246091][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.246094][ C2] ? default_idle+0x9/0x10 [ 16.246097][ C2] ? default_idle_call+0x6d/0xb0 [ 16.246099][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.246103][ C2] ? do_idle+0xf6/0x160 [ 16.246105][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.246107][ C2] ? start_secondary+0x213/0x2a0 [ 16.246111][ C2] ? common_startup_64+0x13e/0x148 [ 16.246119][ C2] __put_net+0x19/0x60 [ 16.246123][ C2] __sk_destruct+0x58a/0x780 [ 16.246127][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.246130][ C2] rcu_do_batch+0x34c/0xf20 [ 16.246133][ C2] ? find_held_lock+0x2b/0x80 [ 16.246137][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.246140][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.246144][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.246147][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.246152][ C2] rcu_core+0x2bb/0x500 [ 16.246156][ C2] handle_softirqs+0x218/0x620 [ 16.246162][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.246165][ C2] irq_exit_rcu+0xe/0x30 [ 16.246168][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.246171][ C2] [ 16.246173][ C2] [ 16.246174][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.246177][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.246181][ C2] Code: 92 b5 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 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 16.246184][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 16.246189][ C2] RAX: 0000000000045dc3 RBX: 1ffff92000028fc1 RCX: ffffffffbaf905d9 [ 16.246191][ C2] RDX: 0000000000000000 RSI: ffffffffbba8f4e4 RDI: ffffffffbb253be0 [ 16.246193][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 16.246194][ C2] R10: ffff8880361337d3 R11: ffffffffbbc11288 R12: 0000000000000000 [ 16.246196][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 16.246200][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.246205][ C2] default_idle+0x9/0x10 [ 16.246208][ C2] default_idle_call+0x6d/0xb0 [ 16.246210][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.246213][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.246217][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.246222][ C2] do_idle+0xf6/0x160 [ 16.246225][ C2] cpu_startup_entry+0x54/0x60 [ 16.246228][ C2] start_secondary+0x213/0x2a0 [ 16.246231][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.246236][ C2] common_startup_64+0x13e/0x148 [ 16.246243][ C2] [ 16.263127][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.263612][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 16.263976][ C2] preempt_count: 101, expected: 0 [ 16.264193][ C2] RCU nest depth: 0, expected: 0 [ 16.264424][ C2] INFO: lockdep is turned off. [ 16.264642][ C2] Preemption disabled at: [ 16.264644][ C2] [<0000000000000000>] 0x0 [ 16.265037][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.265041][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.265043][ C2] Call Trace: [ 16.265045][ C2] [ 16.265047][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.265054][ C2] __might_resched+0x360/0x5a0 [ 16.265063][ C2] down_write+0x72/0x210 [ 16.265067][ C2] ? __pfx_down_write+0x10/0x10 [ 16.265070][ C2] ? simple_recursive_removal+0x33/0x610 [ 16.265074][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.265079][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.265085][ C2] simple_recursive_removal+0x6a/0x610 [ 16.265087][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.265091][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.265096][ C2] debugfs_remove+0x44/0x70 [ 16.265099][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.265106][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.265109][ C2] ? __sk_destruct+0x383/0x780 [ 16.265115][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.265118][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.265121][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.265125][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.265130][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.265134][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.265137][ C2] ? default_idle+0x9/0x10 [ 16.265140][ C2] ? default_idle_call+0x6d/0xb0 [ 16.265142][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.265145][ C2] ? do_idle+0xf6/0x160 [ 16.265147][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.265150][ C2] ? start_secondary+0x213/0x2a0 [ 16.265153][ C2] ? common_startup_64+0x13e/0x148 [ 16.265160][ C2] __put_net+0x19/0x60 [ 16.265164][ C2] __sk_destruct+0x58a/0x780 [ 16.265168][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.265171][ C2] rcu_do_batch+0x34c/0xf20 [ 16.265174][ C2] ? find_held_lock+0x2b/0x80 [ 16.265179][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.265183][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.265187][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.265190][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.265195][ C2] rcu_core+0x2bb/0x500 [ 16.265199][ C2] handle_softirqs+0x218/0x620 [ 16.265205][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.265208][ C2] irq_exit_rcu+0xe/0x30 [ 16.265210][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.265214][ C2] [ 16.265215][ C2] [ 16.265216][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.265219][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.265223][ C2] Code: 92 b5 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 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 16.265226][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 16.265228][ C2] RAX: 0000000000045dc3 RBX: 1ffff92000028fc1 RCX: ffffffffbaf905d9 [ 16.265230][ C2] RDX: 0000000000000000 RSI: ffffffffbba8f4e4 RDI: ffffffffbb253be0 [ 16.265232][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 16.265234][ C2] R10: ffff8880361337d3 R11: ffffffffbbc11288 R12: 0000000000000000 [ 16.265235][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 16.265239][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.265244][ C2] default_idle+0x9/0x10 [ 16.265246][ C2] default_idle_call+0x6d/0xb0 [ 16.265249][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.265252][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.265256][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.265260][ C2] do_idle+0xf6/0x160 [ 16.265263][ C2] cpu_startup_entry+0x54/0x60 [ 16.265266][ C2] start_secondary+0x213/0x2a0 [ 16.265269][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.265274][ C2] common_startup_64+0x13e/0x148 [ 16.265281][ C2] [ 18.581542][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.581934][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 18.582237][ C1] preempt_count: 100, expected: 0 [ 18.582426][ C1] RCU nest depth: 0, expected: 0 [ 18.582589][ C1] INFO: lockdep is turned off. [ 18.582756][ C1] Preemption disabled at: [ 18.582758][ C1] [] handle_softirqs+0xe5/0x620 [ 18.583104][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 18.583110][ C1] Tainted: [W]=WARN [ 18.583112][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.583115][ C1] Call Trace: [ 18.583117][ C1] [ 18.583119][ C1] dump_stack_lvl+0xb0/0xd0 [ 18.583129][ C1] __might_resched+0x360/0x5a0 [ 18.583138][ C1] down_write+0x72/0x210 [ 18.583143][ C1] ? __pfx_down_write+0x10/0x10 [ 18.583146][ C1] ? simple_recursive_removal+0x33/0x610 [ 18.583152][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.583158][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 18.583165][ C1] simple_recursive_removal+0x6a/0x610 [ 18.583168][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 18.583171][ C1] ? __pfx_remove_one+0x10/0x10 [ 18.583178][ C1] debugfs_remove+0x44/0x70 [ 18.583181][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 18.583188][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.583192][ C1] ? __sk_destruct+0x383/0x780 [ 18.583200][ C1] ? rcu_do_batch+0x34c/0xf20 [ 18.583204][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.583207][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 18.583212][ C1] ? kthread+0x37e/0x600 [ 18.583216][ C1] ? ret_from_fork+0x240/0x320 [ 18.583222][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 18.583229][ C1] ? migrate_enable+0x1f2/0x270 [ 18.583233][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 18.583237][ C1] ? bpf_sk_storage_free+0x9f/0x1c0 [ 18.583244][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.583249][ C1] __put_net+0x19/0x60 [ 18.583253][ C1] __sk_destruct+0x58a/0x780 [ 18.583257][ C1] ? rcu_do_batch+0x34a/0xf20 [ 18.583260][ C1] rcu_do_batch+0x34c/0xf20 [ 18.583263][ C1] ? __schedule+0x87b/0x1b00 [ 18.583270][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.583274][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.583276][ C1] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 18.583289][ C1] rcu_core+0x2bb/0x500 [ 18.583294][ C1] handle_softirqs+0x218/0x620 [ 18.583298][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 18.583302][ C1] run_ksoftirqd+0x3f/0x70 [ 18.583305][ C1] smpboot_thread_fn+0x30a/0x960 [ 18.583309][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 18.583314][ C1] kthread+0x37e/0x600 [ 18.583316][ C1] ? __pfx_kthread+0x10/0x10 [ 18.583318][ C1] ? ret_from_fork+0x1b/0x320 [ 18.583321][ C1] ? __lock_release+0x5d/0x170 [ 18.583325][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.583328][ C1] ? __pfx_kthread+0x10/0x10 [ 18.583331][ C1] ret_from_fork+0x240/0x320 [ 18.583333][ C1] ? __pfx_kthread+0x10/0x10 [ 18.583336][ C1] ret_from_fork_asm+0x1a/0x30 [ 18.583343][ C1]