All of lore.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL 0/1] KVM: s390: Fix for 4.8 (via kvm/master)
@ 2016-09-05 12:07 Cornelia Huck
  2016-09-05 12:07 ` [GIT PULL 1/1] KVM: s390: vsie: fix riccbd Cornelia Huck
  2016-09-05 14:17 ` [GIT PULL 0/1] KVM: s390: Fix for 4.8 (via kvm/master) Paolo Bonzini
  0 siblings, 2 replies; 3+ messages in thread
From: Cornelia Huck @ 2016-09-05 12:07 UTC (permalink / raw)
  To: Paolo Bonzini, Radim Krčmář
  Cc: Christian Borntraeger, KVM, linux-s390, David Hildenbrand, Cornelia Huck

Paolo, Radim,

The following changes since commit 20b8f9e2dde171c69da4a79c34fccdc2a8492797:

  Merge tag 'kvm-s390-master-4.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into kvm-master (2016-08-30 14:11:33 +0200)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git tags/kvm-s390-master-4.8-3

for you to fetch changes up to 4d21cef3ea00ba3ac508eb61fb8db70e3e31df67:

  KVM: s390: vsie: fix riccbd (2016-09-05 13:48:50 +0200)

----------------------------------------------------------------
A bugfix for the vsie code (setting the wrong field).

----------------------------------------------------------------

David Hildenbrand (1):
  KVM: s390: vsie: fix riccbd

 arch/s390/kvm/vsie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [GIT PULL 1/1] KVM: s390: vsie: fix riccbd
  2016-09-05 12:07 [GIT PULL 0/1] KVM: s390: Fix for 4.8 (via kvm/master) Cornelia Huck
@ 2016-09-05 12:07 ` Cornelia Huck
  2016-09-05 14:17 ` [GIT PULL 0/1] KVM: s390: Fix for 4.8 (via kvm/master) Paolo Bonzini
  1 sibling, 0 replies; 3+ messages in thread
From: Cornelia Huck @ 2016-09-05 12:07 UTC (permalink / raw)
  To: Paolo Bonzini, Radim Krčmář
  Cc: Christian Borntraeger, KVM, linux-s390, David Hildenbrand, Cornelia Huck

From: David Hildenbrand <dahi@linux.vnet.ibm.com>

We store the address of riccbd at the wrong location, overwriting
gvrd. This means that our nested guest will not be able to use runtime
instrumentation. Also, a memory leak, if our KVM guest actually sets gvrd.

Not noticed until now, as KVM guests never make use of gvrd and runtime
instrumentation wasn't completely tested yet.

Reported-by: Fan Zhang <zhangfan@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
---
 arch/s390/kvm/vsie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/s390/kvm/vsie.c b/arch/s390/kvm/vsie.c
index c106488..d8673e2 100644
--- a/arch/s390/kvm/vsie.c
+++ b/arch/s390/kvm/vsie.c
@@ -584,7 +584,7 @@ static int pin_blocks(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page)
 		/* Validity 0x0044 will be checked by SIE */
 		if (rc)
 			goto unpin;
-		scb_s->gvrd = hpa;
+		scb_s->riccbd = hpa;
 	}
 	return 0;
 unpin:
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [GIT PULL 0/1] KVM: s390: Fix for 4.8 (via kvm/master)
  2016-09-05 12:07 [GIT PULL 0/1] KVM: s390: Fix for 4.8 (via kvm/master) Cornelia Huck
  2016-09-05 12:07 ` [GIT PULL 1/1] KVM: s390: vsie: fix riccbd Cornelia Huck
@ 2016-09-05 14:17 ` Paolo Bonzini
  1 sibling, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2016-09-05 14:17 UTC (permalink / raw)
  To: Cornelia Huck, Radim Krčmář
  Cc: Christian Borntraeger, KVM, linux-s390, David Hildenbrand



On 05/09/2016 14:07, Cornelia Huck wrote:
> Paolo, Radim,
> 
> The following changes since commit 20b8f9e2dde171c69da4a79c34fccdc2a8492797:
> 
>   Merge tag 'kvm-s390-master-4.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into kvm-master (2016-08-30 14:11:33 +0200)
> 
> are available in the git repository at:
> 
>   git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git tags/kvm-s390-master-4.8-3
> 
> for you to fetch changes up to 4d21cef3ea00ba3ac508eb61fb8db70e3e31df67:
> 
>   KVM: s390: vsie: fix riccbd (2016-09-05 13:48:50 +0200)
> 
> ----------------------------------------------------------------
> A bugfix for the vsie code (setting the wrong field).
> 
> ----------------------------------------------------------------
> 
> David Hildenbrand (1):
>   KVM: s390: vsie: fix riccbd
> 
>  arch/s390/kvm/vsie.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Pulled, thanks.

Paolo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-05 14:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-05 12:07 [GIT PULL 0/1] KVM: s390: Fix for 4.8 (via kvm/master) Cornelia Huck
2016-09-05 12:07 ` [GIT PULL 1/1] KVM: s390: vsie: fix riccbd Cornelia Huck
2016-09-05 14:17 ` [GIT PULL 0/1] KVM: s390: Fix for 4.8 (via kvm/master) Paolo Bonzini

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.