diff options
author | Andy Honig <ahonig@google.com> | 2013-11-20 10:23:22 -0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-12-12 22:39:46 +0100 |
commit | fda4e2e85589191b123d31cdc21fd33ee70f50fd (patch) | |
tree | 68cfbeb6ea9d06ffd164bcc8b692993a90367333 /mm/quicklist.c | |
parent | b963a22e6d1a266a67e9eecc88134713fd54775c (diff) |
KVM: x86: Convert vapic synchronization to _cached functions (CVE-2013-6368)
In kvm_lapic_sync_from_vapic and kvm_lapic_sync_to_vapic there is the
potential to corrupt kernel memory if userspace provides an address that
is at the end of a page. This patches concerts those functions to use
kvm_write_guest_cached and kvm_read_guest_cached. It also checks the
vapic_address specified by userspace during ioctl processing and returns
an error to userspace if the address is not a valid GPA.
This is generally not guest triggerable, because the required write is
done by firmware that runs before the guest. Also, it only affects AMD
processors and oldish Intel that do not have the FlexPriority feature
(unless you disable FlexPriority, of course; then newer processors are
also affected).
Fixes: b93463aa59d6 ('KVM: Accelerated apic support')
Reported-by: Andrew Honig <ahonig@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Andrew Honig <ahonig@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mm/quicklist.c')
0 files changed, 0 insertions, 0 deletions