deepin-kernel/arch
Manuel Andreas 5c49e19b43 KVM: x86/xen: Fix cleanup logic in emulation of Xen schedop poll hypercalls
commit 5a53249d149f48b558368c5338b9921b76a12f8c 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>
(cherry picked from commit 3ee59c38ae7369ad1f7b846e05633ccf0d159fab)
2025-07-28 15:19:09 +08:00
..
alpha deepin: OWNERS: Update OWNERS 2025-05-29 18:26:52 +08:00
arc ARC: build: Try to guess GCC variant of cross compiler 2025-01-13 11:06:44 +08:00
arm ARM: crypto: use CC_FLAGS_FPU for NEON CFLAGS 2025-07-24 23:36:39 +08:00
arm64 arm64: Filter out SME hwcaps when FEAT_SME isn't implemented 2025-07-28 15:19:08 +08:00
csky of/fdt: add dt_phys arg to early_init_dt_scan and early_init_dt_verify 2024-12-10 20:44:32 +08:00
hexagon hexagon: Fix unbalanced spinlock in die() 2025-02-10 01:59:56 +08:00
ia64 vgacon: rework screen_info #ifdef checks 2024-12-10 20:29:04 +08:00
loongarch LoongArch: implement ARCH_HAS_KERNEL_FPU_SUPPORT 2025-07-24 23:36:39 +08:00
m68k m68k: mac: Fix macintosh_config for Mac II 2025-06-20 14:38:53 +08:00
microblaze of/fdt: add dt_phys arg to early_init_dt_scan and early_init_dt_verify 2024-12-10 20:44:32 +08:00
mips mips: Add -std= flag specified in KBUILD_CFLAGS to vdso CFLAGS 2025-07-03 11:31:57 +08:00
nios2 of/fdt: add dt_phys arg to early_init_dt_scan and early_init_dt_verify 2024-12-10 20:44:32 +08:00
openrisc openrisc: place exception table at the head of vmlinux 2025-05-29 20:38:29 +08:00
parisc parisc: fix building with gcc-15 2025-07-03 11:31:56 +08:00
powerpc powerpc: implement ARCH_HAS_KERNEL_FPU_SUPPORT 2025-07-24 23:36:39 +08:00
riscv pci: Update the number of outbound and inbound 2025-07-28 09:43:37 +08:00
s390 s390/bpf: Fix bpf_arch_text_poke() with new_addr == NULL again 2025-07-28 15:19:03 +08:00
sh sh: Do not use hyphen in exported variable names 2024-12-27 15:03:58 +08:00
sparc vmlinux.lds.h: Adjust symbol ordering in text output section 2025-05-29 20:38:29 +08:00
sw_64 sw64: delete useless I/O access in VM and emulator 2025-07-08 15:28:32 +08:00
um um: vector: Reduce stack usage in vector_eth_configure() 2025-07-22 16:16:46 +08:00
x86 KVM: x86/xen: Fix cleanup logic in emulation of Xen schedop poll hypercalls 2025-07-28 15:19:09 +08:00
xtensa of/fdt: add dt_phys arg to early_init_dt_scan and early_init_dt_verify 2024-12-10 20:44:32 +08:00
.gitignore
Kconfig arch: add ARCH_HAS_KERNEL_FPU_SUPPORT 2025-07-24 23:36:39 +08:00