Return-Path: Received: from mga02.intel.com ([134.134.136.20]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fQbrQ-00037j-F7 for speck@linutronix.de; Wed, 06 Jun 2018 19:04:37 +0200 Subject: [MODERATED] Re: ARCH_CAPABILITIES note References: <0eca849b-fd6b-e42f-6c83-3c930d644bba@redhat.com> <3b6d8d03-945e-4efc-7baa-a7ecedfd2366@linux.intel.com> <51a5e275-67c2-5638-21e9-a3992ba1de0b@redhat.com> <5f898d80-b66a-7933-d348-c733a2b888e8@linux.intel.com> From: Dave Hansen Message-ID: <22947e73-2119-4bc1-63c0-32991f6b3871@linux.intel.com> Date: Wed, 6 Jun 2018 10:04:33 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="vdK1aW8mvmYdeFM7odpWxfvY9OA6uDQPt"; protected-headers="v1" To: speck@linutronix.de List-ID: This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) --vdK1aW8mvmYdeFM7odpWxfvY9OA6uDQPt Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 06/06/2018 09:04 AM, speck for Linus Torvalds wrote: > But your worry is what if the lfence was in the next cacheline, and was= n't=20 > even fetched or didn't get far enough in the pipeline to wait for anyth= ing=20 > before the mis-predict was noticed and the "ret" continues at the targe= t? Yeah, either it does not enter the pipeline, or the processor has thrown it away before it has had a chance to do enough mitigation (for things other than Spectre v2). > At that point, I don't think it's obvious that we couldn't have other=20 > speculation still outstanding. >=20 > So I agree that it's a worry. We can only ask Intel architects. Yep, we'll do that. For folks on this list: if you believe you are gleaning any mitigation value from the retpoline LFENCE (or PAUSE for that matter) for issues other than Spectre v2, please let Intel folks know (you can start with those of us on this list). We'll try to pin down what guarantees it can actually provide. --vdK1aW8mvmYdeFM7odpWxfvY9OA6uDQPt--