Return-Path: Received: from mga07.intel.com ([134.134.136.100]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fQGfy-0000p5-GU for speck@linutronix.de; Tue, 05 Jun 2018 20:27:23 +0200 Subject: [MODERATED] Re: ARCH_CAPABILITIES note References: <0eca849b-fd6b-e42f-6c83-3c930d644bba@redhat.com> From: Dave Hansen Message-ID: <3b6d8d03-945e-4efc-7baa-a7ecedfd2366@linux.intel.com> Date: Tue, 5 Jun 2018 11:27:15 -0700 MIME-Version: 1.0 In-Reply-To: <0eca849b-fd6b-e42f-6c83-3c930d644bba@redhat.com> Content-Type: multipart/mixed; boundary="fgjoEJW8wsruSV7vxY4KNzezeU1iNYg1l"; protected-headers="v1" To: speck@linutronix.de List-ID: This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) --fgjoEJW8wsruSV7vxY4KNzezeU1iNYg1l Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 06/05/2018 09:41 AM, speck for Jon Masters wrote: > One topic I can't touch on here, but another is the SSBD. So for v4, > we're currently (probably) safe (enough?) against kernel stack exploit > by virtue of the serializing lfence in the retpoline entry code. BUT if= > future silicon says "hey, I'm fine" and we disable the retpoline > mitigation, we'll /still/ need to do the lfence on kernel entry. Totally agree that we need to be really careful about mitigations that interact between the variants. But, I have a bunch of questions. Just to be clear: you are talking about the *syscall* entry path, and the retpoline on the indirect call to the syscall table entry, right? Is there a reason you are not concerned about the interrupt entry paths for SSB? Wouldn't this be an issue already on distros (not mainline) that disable retpoline and use IBRS? The retpoline LFENCE is only speculative and not ever retired, so I'd first ask: Is a *speculative*, non-retired LFENCE a sufficient SSB mitigation today, and will it remain that way? Agreed? Who inside Intel were you asking, btw? --fgjoEJW8wsruSV7vxY4KNzezeU1iNYg1l--