Received: by 10.223.176.46 with SMTP id f43csp4676312wra; Tue, 23 Jan 2018 12:46:39 -0800 (PST) X-Google-Smtp-Source: AH8x227zDH7+fCs/3ydJD4nDTTRlHDKoQClOdRN+8y00dsIrapmEXevhGB34WJw+XaBBT0ya6h1u X-Received: by 10.36.115.196 with SMTP id y187mr5519732itb.134.1516740399068; Tue, 23 Jan 2018 12:46:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516740399; cv=none; d=google.com; s=arc-20160816; b=IOp3l5t26/CwKmps47/B/J3pCtftiIfeWWMv8sOxoiLFs7PvQHm7TFUkyKSh3ttTDp C7iVkUUj89Lxqd/lZShQnRZGzeo1/fD4fzAAVwtGDOUCMq+JCIyt+mJmv8fT3H1APKYf Nryw3cCMhjpDPug1jkxfSaQEgWXkkIl/Sx9ViAWlGHeU02aslGJRhKszZWwzIh5UwFCq rXXqO1KYJsyiCLlMBlhJluzT9BUjTlfJnbm17nIxzk1C+ZFwyme5qn5Tc6l5i0kI5pmu iFSxhui692n+4SIyjUkaHZbrmRs9eLJpDz+XytogImWWY+gk9UsipkEdK45TI6X8QuTT Q/VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=sgEtfilF8WpEwe/Jtidx2sv4ZCsH8l/QM10m8iKaBV0=; b=igF2TqSoHXpuwT3fvcdh+2+lIkF4M8sCtC4JLnD7IRnDSd7d62nfMaBQXMTg50MFq2 4FletLl3nv4n3YxBkYHhqpbF5FfXGr4Tdyi4Uds8vThSQP3+/tsF2f4PCaPGr4L1QxvF ymsBMNKh07aCcxJ6ewlxTy4vG5qPsf6QWHaj1j0dqs5k/t3Bx7EFSj21D5V8Ecd55aWP 9vSDQzD1ua6vUYWke7fmHVC2pvYQhB+R0I/ftirHFx6Sbnx1bLzLUl+m8wmYouoEPuxI 6YMIlbaz5yuQboiu2R3o+EGls19VJ0iZl8enzVmgzxyISEK3FR0iacx96W359NMrBL/n BRoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si9067671itc.152.2018.01.23.12.46.24; Tue, 23 Jan 2018 12:46:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932088AbeAWUqA (ORCPT + 99 others); Tue, 23 Jan 2018 15:46:00 -0500 Received: from www.llwyncelyn.cymru ([82.70.14.225]:58816 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752568AbeAWUp7 (ORCPT ); Tue, 23 Jan 2018 15:45:59 -0500 Received: from alans-desktop (82-70-14-226.dsl.in-addr.zen.co.uk [82.70.14.226]) by fuzix.org (8.15.2/8.15.2) with ESMTP id w0NKjrkB019681; Tue, 23 Jan 2018 20:45:53 GMT Date: Tue, 23 Jan 2018 20:45:52 +0000 From: Alan Cox To: Andrew Cooper Cc: David Woodhouse , Subject: Re: [PATCH v2 5/5] x86/pti: Do not enable PTI on fixed Intel processors Message-ID: <20180123204552.14040f98@alans-desktop> In-Reply-To: References: <1516726375-25168-1-git-send-email-dwmw@amazon.co.uk> <1516726375-25168-6-git-send-email-dwmw@amazon.co.uk> <20180123173312.1d8cf02f@alans-desktop> Organization: Intel Corporation X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > static int in_order_cpu(void) > > { > > /* Processors with CPU id etc */ > > if (x86_match_cpu(cpu_in_order)) > > return 1; > > /* Other rules here */ > > return 0; > > } > > Why does in-order vs out-of-order matter? > > There are leaky SP3 gadgets which satisfy in-order requirements, so long > as the processor is capable of speculating 3 instructions past an > unresolved branch. > > What would (at a guess) save an in-order speculative processor from > being vulnerable is if memory reads are issued and resolve in program > order, but in that case, it is not the in-order property of the > processor which makes it safe. Fair point - I should rename it cpu_speculates(). The atoms in that list don't speculate. Alan [My Cyrix 6x86 had a different kind of meltdown problem....]