* [PATCH] KVM: SEV: fix double locking due to incorrect backport
@ 2021-02-18 18:40 Paolo Bonzini
2021-02-18 22:17 ` Sasha Levin
0 siblings, 1 reply; 2+ messages in thread
From: Paolo Bonzini @ 2021-02-18 18:40 UTC (permalink / raw)
To: stable; +Cc: Dov Murik
Fix an incorrect line in the 5.4.y and 4.19.y backports of commit
19a23da53932bc ("Fix unsynchronized access to sev members through
svm_register_enc_region"), first applied to 5.4.98 and 4.19.176.
Fixes: 1e80fdc09d12 ("KVM: SVM: Pin guest memory when SEV is active")
Reported-by: Dov Murik <dovmurik@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org # 5.4.x
Cc: stable@vger.kernel.org # 4.19.x
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
arch/x86/kvm/svm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 296b0d7570d0..1da558f28aa5 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -7104,7 +7104,6 @@ static int svm_register_enc_region(struct kvm *kvm,
region->uaddr = range->addr;
region->size = range->size;
- mutex_lock(&kvm->lock);
list_add_tail(®ion->list, &sev->regions_list);
mutex_unlock(&kvm->lock);
--
2.26.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: SEV: fix double locking due to incorrect backport
2021-02-18 18:40 [PATCH] KVM: SEV: fix double locking due to incorrect backport Paolo Bonzini
@ 2021-02-18 22:17 ` Sasha Levin
0 siblings, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2021-02-18 22:17 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: stable, Dov Murik
On Thu, Feb 18, 2021 at 01:40:58PM -0500, Paolo Bonzini wrote:
>Fix an incorrect line in the 5.4.y and 4.19.y backports of commit
>19a23da53932bc ("Fix unsynchronized access to sev members through
>svm_register_enc_region"), first applied to 5.4.98 and 4.19.176.
>
>Fixes: 1e80fdc09d12 ("KVM: SVM: Pin guest memory when SEV is active")
>Reported-by: Dov Murik <dovmurik@linux.vnet.ibm.com>
>Cc: stable@vger.kernel.org # 5.4.x
>Cc: stable@vger.kernel.org # 4.19.x
>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Queued up, thanks!
--
Thanks,
Sasha
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-18 22:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18 18:40 [PATCH] KVM: SEV: fix double locking due to incorrect backport Paolo Bonzini
2021-02-18 22:17 ` Sasha Levin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.