Return-path: Received: from mx2.suse.de ([195.135.220.15]) by Galois.linutronix.de with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1fHzJq-0007w7-Jn for speck@linutronix.de; Mon, 14 May 2018 00:18:19 +0200 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 26081AD44 for ; Sun, 13 May 2018 22:18:13 +0000 (UTC) Date: Mon, 14 May 2018 00:17:59 +0200 From: Borislav Petkov Subject: [MODERATED] Re: [patch 01/15] Hidden 1 Message-ID: <20180513221759.GB7185@pd.tnic> References: <20180513140048.543641807@linutronix.de> <20180513140538.305725936@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20180513140538.305725936@linutronix.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable To: speck@linutronix.de List-ID: On Sun, May 13, 2018 at 04:00:49PM +0200, speck for Thomas Gleixner wrote: > Subject: [patch 01/15] KVM: SVM: Move spec control call after restore of GS Make the subject prefix "kvm/svm: ... " > From: Thomas Gleixner >=20 > svm_vcpu_run() invokes x86_spec_ctrl_restore_host() after VMEXIT, but > before the host GS is restored. x86_spec_ctrl_restore_host() uses 'current' > to determine the host SSBD state of the thread. 'current' is GS based, but > host GS is not yet restored and the access causes a triple fault. >=20 > Move the call after the host GS restore. >=20 > Fixes: 5cf687548705 ("x86/bugs, KVM: Support the combination of guest and h= ost IBRS") > Signed-off-by: Thomas Gleixner > --- > arch/x86/kvm/svm.c | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) Reviewed-by: Borislav Petkov --=20 Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imend=C3=B6rffer, Jane Smithard, Graham Norton, HR= B 21284 (AG N=C3=BCrnberg) --=20