linux-stable/arch
Jim Mattson 53bbffd24f KVM: x86: Fix off-by-one error in kvm_vcpu_ioctl_x86_setup_mce
commit c4e0e4ab4c upstream.

Bank_num is a one-based count of banks, not a zero-based index. It
overflows the allocated space only when strictly greater than
KVM_MAX_MCE_BANKS.

Fixes: a9e38c3e01 ("KVM: x86: Catch potential overrun in MCE setup")
Signed-off-by: Jue Wang <juew@google.com>
Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Peter Shier <pshier@google.com>
Message-Id: <20200511225616.19557-1-jmattson@google.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-20 08:17:19 +02:00
..
alpha
arc ARC: define __ALIGN_STR and __ALIGN symbols for ARC 2020-03-20 10:54:17 +01:00
arm ARM: dts: r8a7740: Add missing extal2 to CPG node 2020-05-20 08:17:19 +02:00
arm64 arm64: dts: rockchip: Rename dwc3 device nodes on rk3399 to make dtc happy 2020-05-20 08:17:18 +02:00
blackfin
c6x
cris
frv
h8300
hexagon hexagon: work around compiler crash 2020-01-17 19:45:55 +01:00
ia64 ia64:unwind: fix double free for mod->arch.init_unw_table 2019-10-05 12:47:48 +02:00
m32r
m68k m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
metag
microblaze microblaze: Prevent the overflow of the start 2020-02-28 16:36:08 +01:00
mips MIPS: OCTEON: irq: Fix potential NULL pointer dereference 2020-04-24 08:00:37 +02:00
mn10300
nios2 nios2: ksyms: Add missing symbol exports 2020-01-27 14:46:24 +01:00
openrisc openrisc: Fix broken paths to arch/or32 2019-12-05 15:37:38 +01:00
parisc parisc: Fix compiler warnings in debug_core.c 2020-01-12 12:12:01 +01:00
powerpc powerpc/pci/of: Parse unassigned resources 2020-05-10 10:28:58 +02:00
s390 s390/ftrace: fix potential crashes when switching tracers 2020-05-10 10:29:01 +02:00
score
sh pinctrl: sh-pfc: sh7269: Fix CAN function GPIOs 2020-02-28 16:36:02 +01:00
sparc sparc: Add .exit.data section. 2020-02-28 16:35:57 +01:00
tile
um um: Make GCOV depend on !KCOV 2019-12-05 15:37:49 +01:00
unicore32
x86 KVM: x86: Fix off-by-one error in kvm_vcpu_ioctl_x86_setup_mce 2020-05-20 08:17:19 +02:00
xtensa xtensa: fix TLB sanity checker 2019-12-21 10:47:43 +01:00
.gitignore
Kconfig