KVM: nVMX: Set cached_vmcs12 and cached_shadow_vmcs12 NULL after free
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 21 Jul 2019 14:01:36 +0000 (16:01 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 22 Jul 2019 11:55:49 +0000 (13:55 +0200)
commitc6bf2ae931adbd3e10967e12142856439a211813
treedccbce7d93a788e7b2090dc02fca4f7bd620acc5
parentd9a710e5fc4941944d565b013414e9fdc66242b5
KVM: nVMX: Set cached_vmcs12 and cached_shadow_vmcs12 NULL after free

Shall help finding use-after-free bugs earlier.

Suggested-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c