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

From: Sean Christopherson
Date: Thu May 06 2021 - 13:58:35 EST


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(-)

--
2.31.1.607.g51e8a6a459-goog