Return-path: Received: from mx3-rdu2.redhat.com ([66.187.233.73] helo=mx1.redhat.com) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fAGj1-0000lH-9E for speck@linutronix.de; Sun, 22 Apr 2018 17:16:24 +0200 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9D4514077EEE for ; Sun, 22 Apr 2018 15:16:15 +0000 (UTC) Received: from washington.bos.jonmasters.org (ovpn-121-39.rdu2.redhat.com [10.10.121.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7515B10F1C1B for ; Sun, 22 Apr 2018 15:16:15 +0000 (UTC) Subject: [MODERATED] Re: [patch 07/11] [PATCH v2 07/10] Linux Patch #7 References: <20180421192509.GD18575@pd.tnic> <20180421220903.GE18575@pd.tnic> <20180421223538.GF18575@pd.tnic> <45c96d89-f75b-9770-6032-ca87115a0e0a@redhat.com> <0de04dd1-0f35-dc0e-d27a-dec03ed0f138@redhat.com> <20180422093545.GA32218@pd.tnic> <2c7fa188-cd84-1a10-56cb-358d3f859559@redhat.com> <20180422103456.GC32218@pd.tnic> From: Jon Masters Message-ID: <5e5ed07c-64d2-73e1-d34a-a7a90a702bb0@redhat.com> Date: Sun, 22 Apr 2018 11:16:15 -0400 MIME-Version: 1.0 In-Reply-To: <20180422103456.GC32218@pd.tnic> Content-Type: multipart/mixed; boundary="vHbcDcT7s7ZXkR4kYRlYvxjJb3eaX9dVM"; protected-headers="v1" To: speck@linutronix.de List-ID: This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) --vHbcDcT7s7ZXkR4kYRlYvxjJb3eaX9dVM Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 04/22/2018 06:34 AM, speck for Borislav Petkov wrote: > On Sun, Apr 22, 2018 at 05:53:50AM -0400, speck for Jon Masters wrote: >> I'd prefer that too. But we had this conversation with Thomas already >> and he wanted a "disable" option. It was fairly clearly spelled out th= at >> it was to be "mdd" or "ssbd" and therefore "spec_store_bypass_disable"= =2E >=20 > No, he wants "on,off,auto" so that we're in-line with PTI's and > spectre_v2's options. So let's do: I don't think so :) spectre_v2 is about *disabling* speculation in order to prevent use of branch predictor poison (or, on other arches, disabling the indirect predictor at least across privilege levels), and performing barriers on context switch. When you set spectre_v2=3Don or spectre_v2=3Dauto you are= *disabling* indirect predictor functionality, and when you set spectre_v2=3Doff you're *enabling* (leaving on) indirect predictor functionality. It's inverted logic from what you might expect if you were thinking about it from the PoV of the indirect predictor. Similarly, with spec_store_bypass_disable, you are *disabling* speculative store bypassing. When you set spec_store_bypass_disable=3Don you are *disabling* bypassing of store, and when you set spec_store_bypass_disable=3Doff, you are *enabling* (leaving on) speculative store bypassing. It's inverted logic again. > spec_store_bypass=3D[on|off|auto] So I'm happy to change it yet again, but let's only do so if we all get why the above was done, and if Thomas and Linus agree. There was a specific reason we made it follow the SPECTRE_V2 inverted logic. > and be done with the bikeshedding. The weather's too nice outside. Hah. It's nice outside here in MA too, and I want to run, but I know the day is going to be spent mostly on various emergency patches ;) Jon. --=20 Computer Architect | Sent from my Fedora powered laptop --vHbcDcT7s7ZXkR4kYRlYvxjJb3eaX9dVM--