Return-path: Received: from mail-pg0-x231.google.com ([2607:f8b0:400e:c05::231]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1fA0G2-0004nz-AA for speck@linutronix.de; Sat, 21 Apr 2018 23:41:22 +0200 Received: by mail-pg0-x231.google.com with SMTP id i6so5726006pgv.3 for ; Sat, 21 Apr 2018 14:41:22 -0700 (PDT) Received: from i7.lan (c-73-11-52-149.hsd1.or.comcast.net. [73.11.52.149]) by smtp.gmail.com with ESMTPSA id z16sm15235910pfn.101.2018.04.21.14.41.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Apr 2018 14:41:14 -0700 (PDT) Sender: Linus Torvalds Date: Sat, 21 Apr 2018 14:41:13 -0700 (PDT) From: Linus Torvalds Subject: [MODERATED] Re: [patch 07/11] [PATCH v2 07/10] Linux Patch #7 In-Reply-To: <20180421192509.GD18575@pd.tnic> Message-ID: References: <20180420022613.270943302@localhost.localdomain> <20180420174242.GO13977@pd.tnic> <20180421032701.GA4490@localhost.localdomain> <20180421090345.GA18575@pd.tnic> <20180421122117.GA5337@localhost.localdomain> <20180421192509.GD18575@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Sat, 21 Apr 2018, speck for Borislav Petkov wrote: > > I prefer X86_FEATURE_MDD and X86_FEATURE_USE_MDD which is > straight-forward and in line with the other mitigations. And we query > the USE_MDD flag only. The MDD one will be for /proc/cpuinfo and USE_MDD > used by the code. At the risk of bike shedding, can we *please* just write out "Store buffer bypass" and "Memory disambiguation" instead of using SBB amd MD? The patches aren't so big, and these names won't be used so much that we can't use longer names. Yes, yes, we use PTI for the page table isolation, but that had a much wider impact. For Spectre v1 we at least use _half_ words like "nospec". Maybe even X86_FEATURE_STBUF_BYPASS? And X86_FEATURE_STBUF_BYPASS_MITIGATE? And the same goes for the kernel command line. Saying "ssb=auto" is not helpful to *anybody*. Nobody is going to get carpal tunnel syndrome from typing that too often. I guarantee it. Linus