OSDN Git Service

KVM: VMX: Unregister posted interrupt wakeup handler on hardware unsetup
authorSean Christopherson <seanjc@google.com>
Sat, 9 Oct 2021 00:11:05 +0000 (17:11 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Oct 2021 16:46:37 +0000 (12:46 -0400)
commitec5a4919fa7b7d8c7a2af1c7e799b1fe4be84343
tree292ac6f3e68fc071aa13b915bcdc3286a1300ee5
parent6ff53f6a438f72998f56e82e76694a1df9d1ea2c
KVM: VMX: Unregister posted interrupt wakeup handler on hardware unsetup

Unregister KVM's posted interrupt wakeup handler during unsetup so that a
spurious interrupt that arrives after kvm_intel.ko is unloaded doesn't
call into freed memory.

Fixes: bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU is blocked")
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211009001107.3936588-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c