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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:15:57 +0000 (19:15 +0100)
commitdf4d4868d164d8a14c34ee7624beb6365e459c1a
treed34a74715525621e2ebb27d2cc3d32eeb4849267
parent7a8f76177494c3cca1bb151bdfa61cd8b70e6e65
KVM: VMX: Unregister posted interrupt wakeup handler on hardware unsetup

commit ec5a4919fa7b7d8c7a2af1c7e799b1fe4be84343 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx/vmx.c