]> Gentwo Git Trees - linux/.git/commit
KVM: SVM: Unregister KVM's GALog notifier on kvm-amd.ko exit
authorSean Christopherson <seanjc@google.com>
Thu, 16 Oct 2025 19:06:42 +0000 (12:06 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 4 Nov 2025 17:14:27 +0000 (09:14 -0800)
commitadc6ae9729719be5e74219aaafb95e60a9e9950e
tree3b319f363009f10759baa0a2270a8bc058dac8b2
parent59a217ced3e7af849cc84fce36d8bfe225976e27
KVM: SVM: Unregister KVM's GALog notifier on kvm-amd.ko exit

Unregister the GALog notifier (used to get notified of wake events for
blocking vCPUs) on kvm-amd.ko exit so that a KVM or IOMMU driver bug that
results in a spurious GALog event "only" results in a spurious IRQ, and
doesn't trigger a use-after-free due to executing unloaded module code.

Fixes: 5881f73757cc ("svm: Introduce AMD IOMMU avic_ga_log_notifier")
Reported-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
Closes: https://lore.kernel.org/all/20250918130320.GA119526@k08j02272.eu95sqa
Link: https://patch.msgid.link/20251016190643.80529-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/avic.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h