Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Luis Henriques <luis.henriques@canonical.com>
To: Bandan Das <bsd@redhat.com>
Cc: Greg KH <gregkh@linuxfoundation.org>,
	stable@vger.kernel.org, Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: KVM: nSVM: Check for NRIPS support before updating control field
Date: Wed, 1 Jul 2015 10:23:28 +0100	[thread overview]
Message-ID: <20150701092328.GB2029@ares> (raw)
In-Reply-To: <jpgwpym463x.fsf@redhat.com>

On Mon, Jun 29, 2015 at 04:22:42PM -0400, Bandan Das wrote:
> Greg KH <gregkh@linuxfoundation.org> writes:
> 
> > On Mon, Jun 29, 2015 at 03:18:51PM -0400, Bandan Das wrote:
> >> 
> >> Commit f104765b4f81fd74d69e0eb161e89096deade2db upstream.
> >> 
> >> This causes the L1 guest to crash when running a nested guest
> >> with an AMD processor that doesn't support NRIPS.
> >> 
> >> If hardware doesn't support DecodeAssist - a feature that provides
> >> more information about the intercept in the VMCB, KVM decodes the
> >> instruction and then updates the next_rip vmcb control field.
> >> However, NRIP support itself depends on cpuid Fn8000_000A_EDX[NRIPS].
> >> Since skip_emulated_instruction() doesn't verify nrip support
> >> before accepting control.next_rip as valid, avoid writing this
> >> field if support isn't present.
> >> 
> >> Signed-off-by: Bandan Das <bsd@redhat.com>
> >> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> >> ---
> >>  arch/x86/kvm/svm.c | 8 ++++++--
> >>  1 file changed, 6 insertions(+), 2 deletions(-)
> >
> > What stable kernel trees do you want this applied to?
> 
> Sorry, I missed that part. I believe this bug is present
> since commit cfec82cb7d3 which makes it applicable to
> #3.0+
> 

Thanks, queuing it for the 3.16 kernel.

Cheers,
--
Lu�s

> Bandan
> > thanks,
> >
> > greg k-h
> --
> To unsubscribe from this list: send the line "unsubscribe stable" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2015-07-01  9:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-29 19:18 KVM: nSVM: Check for NRIPS support before updating control field Bandan Das
2015-06-29 19:28 ` Greg KH
2015-06-29 20:22   ` Bandan Das
2015-07-01  9:23     ` Luis Henriques [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150701092328.GB2029@ares \
    --to=luis.henriques@canonical.com \
    --cc=bsd@redhat.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=pbonzini@redhat.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox