]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Bug the VM on an out-of-bounds data read
authorSean Christopherson <seanjc@google.com>
Thu, 26 May 2022 21:08:17 +0000 (21:08 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jun 2022 14:01:34 +0000 (10:01 -0400)
commit53f6d6b3ebbd0693731ddf5f56a46ae1398ffb3a
treeadf02d4c1f75d24c446d3b2981ef7cab8306517f
parent84d9da510b4cb48f31e01f08fba7a76bd26e9443
KVM: x86: Bug the VM on an out-of-bounds data read

Bug the VM and terminate emulation if an out-of-bounds read into the
emulator's data cache occurs.  Knowingly contuining on all but guarantees
that KVM will overwrite random kernel data, which is far, far worse than
killing the VM.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20220526210817.3428868-9-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c