]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:09 +0000 (09:48 +0100)
commite5a52bc548c8d14c32b6bf4bf9f40c5211124157
treecf7b2f4191217052a3dc6889c72ead52f1ca6ed4
parent3d83dd2a6e010fe505bde8857ed56d721e13d681
KVM: VMX: Unregister posted interrupt wakeup handler on hardware unsetup

BugLink: https://bugs.launchpad.net/bugs/1951822
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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
arch/x86/kvm/vmx/vmx.c