[PATCH 0/4] kvm: sev: Fix issues reported by Sashiko

From: Jörg Rödel

Date: Tue Jun 23 2026 - 05:21:03 EST


From: Joerg Roedel <joerg.roedel@xxxxxxx>

Hi,

On the post of my direct-VMSA patch-set Sashiko reported a few real
pre-existing issues in the SEV-SNP launch_update code. This patch-set
addresses three of them:

* Fix user-triggerable WARN_ON on LAUNCH_UPDATE path.

* Check that CPUID pages are writable before writing error
information to it.

* Fix kunmap_local() order.

Please review.

-Joerg

Joerg Roedel (4):
kvm: sev: Fix user-space triggerable WARN_ON on snp_launch_update path
kvm: sev: Unmap pages in correct order in sev_gmem_post_populate()
KVM: guest_memfd: Add `write` parameter to kvm_gmem_populate()
kvm: sev: Acquire a writeable page reference for CPUID pages

arch/x86/kvm/svm/sev.c | 15 +++++++++++++--
arch/x86/kvm/vmx/tdx.c | 2 +-
include/linux/kvm_host.h | 4 +++-
virt/kvm/guest_memfd.c | 4 ++--
4 files changed, 19 insertions(+), 6 deletions(-)

--
2.53.0