From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from static-242-42-24-46.ipcom.comunitel.net ([46.24.42.242] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1f8ir0-0006ma-AK for speck@linutronix.de; Wed, 18 Apr 2018 10:54:14 +0200 Date: Wed, 18 Apr 2018 10:54:08 +0200 (CEST) From: Thomas Gleixner Subject: Re: GPZv4 In-Reply-To: <20180418024816.GA6450@localhost.localdomain> Message-ID: References: <20180417193105.GD3890@pd.tnic> <476c3e0b-dde6-6e6b-2054-6e71fa2c396b@redhat.com> <20180417203717.GF3890@pd.tnic> <47b619bf-8d07-c465-9017-583cf5ac80ee@redhat.com> <67ef414c-f57c-0300-973b-f8898ee4d3b1@redhat.com> <20180418024816.GA6450@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: speck@linutronix.de List-ID: On Tue, 17 Apr 2018, speck for Konrad Rzeszutek Wilk wrote: > 2). SBB vs MDD vs SBBD. > > MDD = Memory Disambiguation Disable > SBB = Speculative Store Bypass > SBBD = Speculative Store Bypass Disable > > Thomas likes 'MDD', Jon likes 'SBB', but he is also fine with 'SBBD'. I'm fine with SBBD as well. It's the same semantics as the other knobs as it controls the mitigation. > 3). Semantics of SBBD or MDD boot time knob. I followed the way spectre_v2 did it. > > That is this is knob is to disable something and they are: > 'auto' - follow what the platform recommends. This being linux upstream > discussion means following: > on AMD - enable memory disambiguation. > on Intel - no clue. For testing purposes I've left it > as disable memory disambiguation. > > 'off' - ignore what the vendor/distro recommends. > 'force' - disable it, even if the platform says enable it (like on AMD). 'on' is what spectre_v2 uses. > And then two more to figure out when to apply the security glue: > 'boot' or 'userspace'. > > This ties in to 1) - that is if we are not going to provide a 'userspace' > option then there is no need to even provide the 'boot' option > so then this sub-discussion becomes moot. > > Thomas (and Linus if you are skulking in the background) - you are the > top-dog(s) here, can you give the guidance please so I can redo the > patches on Thursday/Friday? Linus is not yet lurking. He'll be on the list soon and I'll replay the discussion to him so he's on the same page. So can we for now just start with the minimal set of auto, off, on and then hash out the prctl or not question. The big hammer is the most important piece we need to have ready for merging when the embargo is lifted. > P.S. > I know the AMD secret sauce bits and can do the patches for this, but > are other folks authorized for this? Groan. I do not know whether I am or not. This needs to stop. At some point we need to queue and stage the damned patches for both Intel and AMD. So AMD should get their act together and clarify the situation. Borislav can you please reach out to AMD? Thanks, tglx