linux-yocto/arch/x86/kvm
Manuel Andreas 3ee59c38ae KVM: x86/xen: Fix cleanup logic in emulation of Xen schedop poll hypercalls
commit 5a53249d14 upstream.

kvm_xen_schedop_poll does a kmalloc_array() when a VM polls the host
for more than one event channel potr (nr_ports > 1).

After the kmalloc_array(), the error paths need to go through the
"out" label, but the call to kvm_read_guest_virt() does not.

Fixes: 92c58965e9 ("KVM: x86/xen: Use kvm_read_guest_virt() instead of open-coding it badly")
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Manuel Andreas <manuel.andreas@tum.de>
[Adjusted commit message. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-24 08:53:22 +02:00
..
mmu KVM: nSVM: Enter guest mode before initializing nested NPT MMU 2025-02-21 13:57:13 +01:00
svm KVM: SVM: Reject SEV{-ES} intra host migration if vCPU creation is in-flight 2025-07-17 18:35:12 +02:00
vmx x86/bugs: Rename MDS machinery to something more generic 2025-07-10 16:03:21 +02:00
.gitignore
cpuid.c KVM: SVM: Advertise TSA CPUID bits to guests 2025-07-10 16:03:21 +02:00
cpuid.h KVM: x86: Cache CPUID.0xD XSTATE offsets+sizes during module init 2024-12-27 13:58:50 +01:00
debugfs.c
emulate.c
fpu.h
governed_features.h
hyperv.c KVM: x86: Reject Hyper-V's SEND_IPI hypercalls if local APIC isn't in-kernel 2025-02-21 13:57:13 +01:00
hyperv.h
i8254.c
i8254.h
i8259.c
ioapic.c
ioapic.h
irq_comm.c
irq.c
irq.h
Kconfig
kvm_cache_regs.h
kvm_emulate.h
kvm_onhyperv.c
kvm_onhyperv.h
kvm-asm-offsets.c
lapic.c KVM: x86: Re-split x2APIC ICR into ICR+ICR2 for AMD (x2AVIC) 2025-02-17 09:40:43 +01:00
lapic.h
Makefile KVM: VMX: Split off vmx_onhyperv.{ch} from hyperv.{ch} 2024-08-11 12:47:14 +02:00
mmu.h
mtrr.c
pmu.c KVM: x86/pmu: Set enable bits for GP counters in PERF_GLOBAL_CTRL at "RESET" 2024-05-02 16:32:40 +02:00
pmu.h
reverse_cpuid.h KVM: SVM: Advertise TSA CPUID bits to guests 2025-07-10 16:03:21 +02:00
smm.c KVM: SVM: Forcibly leave SMM mode on SHUTDOWN interception 2025-05-22 14:12:13 +02:00
smm.h
trace.h KVM: SVM: Use unsigned integers when dealing with ASIDs 2024-04-10 16:35:57 +02:00
tss.h
x86.c x86/its: Enumerate Indirect Target Selection (ITS) bug 2025-05-18 08:24:11 +02:00
x86.h
xen.c KVM: x86/xen: Fix cleanup logic in emulation of Xen schedop poll hypercalls 2025-07-24 08:53:22 +02:00
xen.h KVM: x86/xen: inject vCPU upcall vector when local APIC is enabled 2024-04-03 15:28:24 +02:00