]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: fix vmentry failure code when L2 state would require emulation
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Mar 2018 13:20:18 +0000 (14:20 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Mar 2018 13:20:33 +0000 (14:20 +0100)
commit73041ad0533f01bae95a070f876d300e51e29b51
tree7a7bd1a3e1b06033a736a21e75e6d3160813bd56
parent4cf4df7ab4d12dc5d0230c7549f290331eeed1c8
KVM: nVMX: fix vmentry failure code when L2 state would require emulation

Commit 7324c15db720 ("KVM: vVMX: signal failure for nested VMEntry if
emulation_required", 2018-03-12) introduces a new error path which does
not set *entry_failure_code.  Fix that to avoid a leak of L0 stack to L1.

Reported-by: Radim Krčmář <rkrcmar@redhat.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c