Jim Mattson
238b045a01
KVM: x86: Fix off-by-one error in kvm_vcpu_ioctl_x86_setup_mce
...
commit c4e0e4ab4cf3ec2b3f0b628ead108d677644ebd9 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:15:43 +02:00
..
alpha
alpha: Fix Eiger NR_IRQS to 128
2019-02-20 10:18:32 +01:00
arc
ARC: define __ALIGN_STR and __ALIGN symbols for ARC
2020-03-20 09:07:44 +01:00
arm
ARM: dts: r8a7740: Add missing extal2 to CPG node
2020-05-20 08:15:43 +02:00
arm64
arm64: cpu_errata: include required headers
2020-04-24 07:59:10 +02:00
avr32
blackfin
pinctrl: adi2: Fix Kconfig build problem
2017-12-20 10:07:32 +01:00
c6x
c6x/ptrace: Remove useless PTRACE_SETREGSET implementation
2017-03-31 10:31:46 +02:00
cris
cris: Only build flash rescue image if CONFIG_ETRAX_AXISFLASHMAP is selected
2017-01-12 11:39:24 +01:00
frv
futex: Remove duplicated code and fix undefined behaviour
2018-05-19 10:27:00 +02:00
h8300
h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux-
2019-04-05 22:29:05 +02:00
hexagon
hexagon: work around compiler crash
2020-01-23 08:19:38 +01:00
ia64
ia64:unwind: fix double free for mod->arch.init_unw_table
2019-10-05 12:30:20 +02:00
m32r
m68k
m68k: Call timer_interrupt() with interrupts disabled
2020-01-29 10:24:36 +01:00
metag
metag/uaccess: Check access_ok in strncpy_from_user
2017-05-25 15:44:46 +02:00
microblaze
microblaze: Prevent the overflow of the start
2020-02-28 15:42:42 +01:00
mips
MIPS: perf: Remove incorrect odd/even counter handling for I6400
2020-05-10 10:28:03 +02:00
mn10300
mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy
2018-02-17 13:21:20 +01:00
nios2
nios2: ksyms: Add missing symbol exports
2020-01-29 10:24:18 +01:00
openrisc
openrisc: Fix broken paths to arch/or32
2019-12-05 15:34:41 +01:00
parisc
parisc: Fix compiler warnings in debug_core.c
2020-01-12 11:24:25 +01:00
powerpc
powerpc/pci/of: Parse unassigned resources
2020-05-10 10:28:00 +02:00
s390
KVM: s390: vsie: Fix possible race when shadowing region 3 tables
2020-04-24 07:59:13 +02:00
score
sh
pinctrl: sh-pfc: sh7269: Fix CAN function GPIOs
2020-02-28 15:42:28 +01:00
sparc
sparc: Add .exit.data section.
2020-02-28 15:42:20 +01:00
tile
locking/x86: Remove the unused atomic_inc_short() methd
2020-01-12 11:24:19 +01:00
um
um: Make GCOV depend on !KCOV
2019-12-05 15:34:56 +01:00
unicore32
x86
KVM: x86: Fix off-by-one error in kvm_vcpu_ioctl_x86_setup_mce
2020-05-20 08:15:43 +02:00
xtensa
xtensa: fix TLB sanity checker
2019-12-21 10:42:30 +01:00
.gitignore
Kconfig
cpu/hotplug: Provide knobs to control SMT
2018-08-15 18:14:46 +02:00