kernel_optimize_test/arch
Juergen Gross 7d67d4ab28 x86/kvm: fix vcpu-id indexed array sizes
commit 76b4f357d0e7d8f6f0013c733e6cba1773c266d3 upstream.

KVM_MAX_VCPU_ID is the maximum vcpu-id of a guest, and not the number
of vcpu-ids. Fix array indexed by vcpu-id to have KVM_MAX_VCPU_ID+1
elements.

Note that this is currently no real problem, as KVM_MAX_VCPU_ID is
an odd number, resulting in always enough padding being available at
the end of those arrays.

Nevertheless this should be fixed in order to avoid rare problems in
case someone is using an even number for KVM_MAX_VCPU_ID.

Signed-off-by: Juergen Gross <jgross@suse.com>
Message-Id: <20210701154105.23215-2-jgross@suse.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-08-04 12:46:39 +02:00
..
alpha
arc
arm ARM: dts: versatile: Fix up interrupt controller node names 2021-07-31 08:16:13 +02:00
arm64 arm64: dts: marvell: armada-37xx: move firmware node to generic dtsi file 2021-07-25 14:36:17 +02:00
c6x
csky
h8300
hexagon
ia64 mm/page_alloc: fix memory map initialization for descending nodes 2021-07-25 14:36:18 +02:00
m68k
microblaze
mips
nds32 nds32: fix up stack guard gap 2021-07-28 14:35:46 +02:00
nios2
openrisc
parisc
powerpc KVM: PPC: Book3S HV Nested: Sanitise H_ENTER_NESTED TM state 2021-07-28 14:35:43 +02:00
riscv
s390 s390/boot: fix use of expolines in the DMA code 2021-07-28 14:35:42 +02:00
sh
sparc
um
x86 x86/kvm: fix vcpu-id indexed array sizes 2021-08-04 12:46:39 +02:00
xtensa
.gitignore
Kconfig