linux-yocto/arch/x86
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
..
boot x86/build: Fix broken copy command in genimage.sh when making isoimage 2025-06-04 14:42:05 +02:00
coco x86/tdx: Fix arch_safe_halt() execution for TDX VMs 2025-04-25 10:45:55 +02:00
configs
crypto crypto: x86/aegis128 - access 32-bit arguments as 32-bit 2024-12-09 10:32:43 +01:00
entry x86/bugs: Rename MDS machinery to something more generic 2025-07-10 16:03:21 +02:00
events perf/amd/ibs: Fix ->config to sample period calculation for OP PMU 2025-06-04 14:42:14 +02:00
hyperv x86/hyperv: Fix check of return value from snp_set_vmsa() 2025-04-10 14:37:41 +02:00
ia32
include x86/rdrand: Disable RDSEED on AMD Cyan Skillfish 2025-07-17 18:35:15 +02:00
kernel x86/rdrand: Disable RDSEED on AMD Cyan Skillfish 2025-07-17 18:35:15 +02:00
kvm KVM: x86/xen: Fix cleanup logic in emulation of Xen schedop poll hypercalls 2025-07-24 08:53:22 +02:00
lib x86/its: Add support for ITS-safe return thunk 2025-05-18 08:24:11 +02:00
math-emu
mm x86/mm/init: Handle the special case of device private pages in add_pages(), to not increase max_pfn and trigger dma_addressing_limited() bounce buffers bounce buffers 2025-06-04 14:42:21 +02:00
net x86/its: FineIBT-paranoid vs ITS 2025-05-18 08:24:12 +02:00
pci PCI: Avoid putting some root ports into D3 on TUXEDO Sirius Gen1 2025-02-17 09:40:26 +01:00
platform x86/pvh: Call C code via the kernel virtual mapping 2025-05-02 07:51:02 +02:00
power
purgatory
ras
realmode
tools x86/tools: Drop duplicate unlikely() definition in insn_decoder_test.c 2025-07-06 11:00:16 +02:00
um um: Add cmpxchg8b_emu and checksum functions to asm-prototypes.h 2025-07-06 11:00:07 +02:00
video
virt/vmx/tdx x86/tdx: Pass TDCALL/SEAMCALL input/output registers via a structure 2024-12-09 10:32:19 +01:00
xen x86/xen: fix memblock_reserve() usage on PVH 2025-04-25 10:45:55 +02:00
.gitignore
Kbuild
Kconfig x86/mm: Disable hugetlb page table sharing on 32-bit 2025-07-17 18:35:15 +02:00
Kconfig.assembler
Kconfig.cpu
Kconfig.debug
Makefile x86/boot: Compile boot code with -std=gnu11 too 2025-06-04 14:42:21 +02:00
Makefile_32.cpu
Makefile.postlink
Makefile.um