KVM: x86: Add memory barrier on vmcs field lookup
authorAndrew Honig <ahonig@google.com>
Wed, 10 Jan 2018 18:12:03 +0000 (10:12 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jan 2018 08:45:24 +0000 (09:45 +0100)
commit679090724f774c9865b10ebc2a4b6945ebf3cb1d
tree106b90202fe65c490210d38c101152c3d7e9e1b8
parentd98309da07fdce96f13534494f4c8210325f48fd
KVM: x86: Add memory barrier on vmcs field lookup

commit 75f139aaf896d6fdeec2e468ddfa4b2fe469bf40 upstream.

This adds a memory barrier when performing a lookup into
the vmcs_field_to_offset_table.  This is related to
CVE-2017-5753.

Signed-off-by: Andrew Honig <ahonig@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx.c