Skip to content

KVM: SVM: Fix error handling bugs in SEV migration

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Queued now, thanks for the reminder!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: SVM: Return -EFAULT if copy_to_user() for SEV mig packet header failsarch/x86/kvm/svm/sev.c+3 -20 replies
2/2KVM: SVM: Fix sev_pin_memory() error checks in SEV migration utilitiesarch/x86/kvm/svm/sev.c+5 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] KVM: SVM: Fix error handling bugs in SEV migration

Fixes for bugs reported by Dan Carpenter, found by static analysis. All credit goes to Dan, the bug report all but wrote the code for me.

Compile tested only, I don't have a SEV migration sussed out yet.

Sean Christopherson (2):
KVM: SVM: Return -EFAULT if copy_to_user() for SEV mig packet header
fails
KVM: SVM: Fix sev_pin_memory() error checks in SEV migration utilities

 arch/x86/kvm/svm/sev.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
Signature · 1 line
2.31.1.607.g51e8a6a459-goog