[GIT PULL] KVM: non-x86 changes for 6.8

From: Sean Christopherson
Date: Thu Jan 04 2024 - 14:33:31 EST


Please pull a few minor changes that aren't (just) x86. The
vmemdup_array_user() patches were sent as a series, and the s390 folks were
quick on the draw with acks, so it was easiest for all involved to just grab
everything in one shot.

The following changes since commit e9e60c82fe391d04db55a91c733df4a017c28b2f:

selftests/kvm: fix compilation on non-x86_64 platforms (2023-11-21 11:58:25 -0500)

are available in the Git repository at:

https://github.com/kvm-x86/linux.git tags/kvm-x86-generic-6.8

for you to fetch changes up to 1f829359c8c37f77a340575957686ca8c4bca317:

KVM: Harden copying of userspace-array against overflow (2023-12-01 08:00:53 -0800)

----------------------------------------------------------------
Common KVM changes for 6.8:

- Use memdup_array_user() to harden against overflow.

- Unconditionally advertise KVM_CAP_DEVICE_CTRL for all architectures.

----------------------------------------------------------------
Philipp Stanner (3):
KVM: x86: Harden copying of userspace-array against overflow
KVM: s390: Harden copying of userspace-array against overflow
KVM: Harden copying of userspace-array against overflow

Wei Wang (1):
KVM: move KVM_CAP_DEVICE_CTRL to the generic check

arch/arm64/kvm/arm.c | 1 -
arch/powerpc/kvm/powerpc.c | 1 -
arch/riscv/kvm/vm.c | 1 -
arch/s390/kvm/guestdbg.c | 4 ++--
arch/s390/kvm/kvm-s390.c | 1 -
arch/x86/kvm/cpuid.c | 4 ++--
virt/kvm/kvm_main.c | 6 +++---
7 files changed, 7 insertions(+), 11 deletions(-)