summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorJim Mattson <jmattson@google.com>2020-05-12 00:56:16 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-05-15 19:48:56 +0200
commitc4e0e4ab4cf3ec2b3f0b628ead108d677644ebd9 (patch)
tree01d05bcdd585fd47de9fe8b29e8e8d8d1276c9fd /mm/slub.c
parentMerge branch 'kvm-amd-fixes' into HEAD (diff)
downloadlinux-c4e0e4ab4cf3ec2b3f0b628ead108d677644ebd9.tar.xz
linux-c4e0e4ab4cf3ec2b3f0b628ead108d677644ebd9.zip
KVM: x86: Fix off-by-one error in kvm_vcpu_ioctl_x86_setup_mce
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: a9e38c3e01ad ("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>
Diffstat (limited to 'mm/slub.c')
0 files changed, 0 insertions, 0 deletions