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 1fFxXQ-0005Ur-D1 for speck@linutronix.de; Tue, 08 May 2018 09:59:57 +0200 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 8821BACD3 for ; Tue, 8 May 2018 07:59:49 +0000 (UTC) Date: Tue, 8 May 2018 09:59:42 +0200 From: Borislav Petkov Subject: [MODERATED] Re: [PATCH v13 1/2] [PATCH v13 1/2] Patch #1 against SSB v12 Message-ID: <20180508075942.GA11857@pd.tnic> References: <20180508031015.118610138@localhost.localdomain> MIME-Version: 1.0 In-Reply-To: <20180508031015.118610138@localhost.localdomain> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable To: speck@linutronix.de List-ID: On Wed, Dec 31, 1969 at 07:00:01PM -0500, speck for konrad.wilk_at_oracle.com= wrote: > x86/bugs: Rename _RDS to _SSBD >=20 > Intel collateral will reference the SSB mitigation bit in > IA32_SPEC_CTL[2] as SSBD (Speculative Store Bypass Disable). ... > diff --git a/arch/x86/include/asm/spec-ctrl.h b/arch/x86/include/asm/spec-c= trl.h > index 45ef00ad5105..37e45ea0659b 100644 > --- a/arch/x86/include/asm/spec-ctrl.h > +++ b/arch/x86/include/asm/spec-ctrl.h > @@ -24,13 +24,13 @@ extern u64 x86_spec_ctrl_base; > =20 > static inline u64 rds_tif_to_spec_ctrl(u64 tifn) There's still "rds" remnants like in this function's name. You wanna do them too, I'd guess. > { > - BUILD_BUG_ON(TIF_RDS < SPEC_CTRL_RDS_SHIFT); > - return (tifn & _TIF_RDS) >> (TIF_RDS - SPEC_CTRL_RDS_SHIFT); > + BUILD_BUG_ON(TIF_SSBD < SPEC_CTRL_SSBD_SHIFT); > + return (tifn & _TIF_SSBD) >> (TIF_SSBD - SPEC_CTRL_SSBD_SHIFT); > } > =20 > static inline u64 rds_tif_to_amd_ls_cfg(u64 tifn) Ditto. ... and so on. Something like this: $ git grep -iE "[_ ]rds[_ ]" arch/x86/ seems to catch most of them. --=20 Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imend=C3=B6rffer, Jane Smithard, Graham Norton, HR= B 21284 (AG N=C3=BCrnberg) --=20