summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2026-03-10 16:48:13 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-04-22 13:32:20 +0200
commitc87938fc7d99a06a7e5477c45b4e5a4148f85d66 (patch)
tree19c93b0a54914c6bc1244b2ea3273dfe2dd6be3a /scripts/stackusage
parentfbbd7398a05f2103044af368a5d10319a55bab5f (diff)
downloadkernel-c87938fc7d99a06a7e5477c45b4e5a4148f85d66.tar.gz
KVM: SEV: Lock all vCPUs when synchronzing VMSAs for SNP launch finish
commit cb923ee6a80f4e604e6242a4702b59251e61a380 upstream. Lock all vCPUs when synchronizing and encrypting VMSAs for SNP guests, as allowing userspace to manipulate and/or run a vCPU while its state is being synchronized would at best corrupt vCPU state, and at worst crash the host kernel. Opportunistically assert that vcpu->mutex is held when synchronizing its VMSA (the SEV-ES path already locks vCPUs). Fixes: ad27ce155566 ("KVM: SEV: Add KVM_SEV_SNP_LAUNCH_FINISH command") Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260310234829.2608037-6-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions