linux/arch/x86/hyperv
Ethan Tidmore 7e92f716a5 x86/hyperv: Fix error pointer dereference
[ Upstream commit 705d01c8d7 ]

The function idle_thread_get() can return an error pointer and is not
checked for it. Add check for error pointer.

Detected by Smatch:
arch/x86/hyperv/hv_vtl.c:126 hv_vtl_bringup_vcpu() error:
'idle' dereferencing possible ERR_PTR()

Fixes: 2b4b90e053 ("x86/hyperv: Use per cpu initial stack for vtl context")
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-02-26 14:59:44 -08:00
..
hv_apic.c x86/msr: Replace wrmsr(msr, low, 0) with wrmsrq(msr, low) 2025-05-02 10:36:36 +02:00
hv_init.c x86/hyperv: Use direct call to hypercall-page 2025-08-18 14:23:07 +02:00
hv_spinlock.c x86/msr: Add explicit includes of <asm/msr.h> 2025-05-02 10:23:47 +02:00
hv_vtl.c x86/hyperv: Fix error pointer dereference 2026-02-26 14:59:44 -08:00
irqdomain.c x86/hyperv: Switch to msi_create_parent_irq_domain() 2025-09-30 22:50:48 +00:00
ivm.c - Remove a bunch of asm implementing condition flags testing in KVM's 2025-10-11 11:19:16 -07:00
Makefile hyperv: Move arch/x86/hyperv/hv_proc.c to drivers/hv 2025-02-13 23:38:47 +00:00
mmu.c hyperv-next for 6.15 2025-03-25 14:47:04 -07:00
nested.c x86/hyperv: Fix warnings for missing export.h header inclusion 2025-07-09 23:43:53 +00:00