Received: by 10.223.185.116 with SMTP id b49csp3768764wrg; Tue, 13 Feb 2018 07:29:34 -0800 (PST) X-Google-Smtp-Source: AH8x224vvhiutVe92Wfa+x47QYMGi0UAtzQDVQ+/XXErBhJiEP2Sen9K2W2WAZkMQwXfF6/SZNzz X-Received: by 2002:a17:902:a617:: with SMTP id u23-v6mr1463706plq.201.1518535774662; Tue, 13 Feb 2018 07:29:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518535774; cv=none; d=google.com; s=arc-20160816; b=FeOUFB6ujaJU4qwCCEhSizWbsnog8veB/6e5rc+toIBGpuBfH8bLDilfi7eQEZjRr7 UsGWyiTMcLYUaI5qc0d/hv5zva5BhNVU6dkvwkgoFHVNHMM8kcjrQlOWtnF6y5LIs8xn PNxn4Ccmc36TUfb3GH02wFwgClwIbXLUVKa+lOXoF1D07LS3Q0vgaKOWlm+ip65SYM37 lW5zmklzlM62xlVHKDyY2QlSulYyWG0gKXKo4bGKvXtYRG3tYqqwDcENGZByB5KNqFzt HTFS+GBcPhM9RJWqvTBSBbYlZBqqJmLh7c+fNfYUEB3i6rAKc/6Y+f3QB52Kg3HYhUJI vL7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=SqP3mpuiLMyNNiHN/VtHbmnGfX4V2a5EhDYr/zSJyRw=; b=u0AEMosazDUGvAribjqtaiL55eAFRKbvLoSJsz/Yufwjd/beu4Nl04Me1O99xALc2Z X4ybC9x9dlQYL7n5YID+LfvfzoQ00GuyCXQ3Hd9CODjZXdoy5BjE61oN19vWJitrs0wz otN/VwFDYpis1LC6/DqkCzpcQ1mA2Sn/KZK1V11lviFNUy1pbnoMD2uhXGX2+h+/rN4Q 6WN665HFnkVR3Yff/2SLZoBcgUP/3/B+aroqn6yZPJNrypXGbVotRyqxECq05TDXav8+ 6gIvdVh1sUPshBqeS1Vrb0WVTv3ggd85Ai3cZggDUZhSZq5BbaFXkDpdsDDJiZIqnbIl /AMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L0w4+RCn; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si6699549pgp.433.2018.02.13.07.29.19; Tue, 13 Feb 2018 07:29:34 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L0w4+RCn; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965051AbeBMP1v (ORCPT + 99 others); Tue, 13 Feb 2018 10:27:51 -0500 Received: from mail-lf0-f54.google.com ([209.85.215.54]:42732 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752177AbeBMP1t (ORCPT ); Tue, 13 Feb 2018 10:27:49 -0500 Received: by mail-lf0-f54.google.com with SMTP id w10so12783482lfc.9; Tue, 13 Feb 2018 07:27:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SqP3mpuiLMyNNiHN/VtHbmnGfX4V2a5EhDYr/zSJyRw=; b=L0w4+RCnQ74IaPXfCuYZ3pPQKzbO5CbFTxoBbyGKGO8BbdsutxYZHsjEjzCsP3dYqk 4R7bWVbK91JFKRfLADlYb9+0kFQU79n1QnZL/qcuyJv4ne9s8d41TXDjxJ+3FDf/Wcz+ mxdZz2HUBAkwam+64pnpaGWZxjG1GTYVfa0s7t/LEcxXM/LcTEPD3v/NyQzqYpAfGnRY uETAS83mHcQXE+a/VHadaYxsQGVzm3efnS/ozvOOe5RYKpVKiZmTqHY576xjkxvSG8HM GHnUETeuEfJSPCt7gQEKDTlsNx0um1O45FSSTxhOH3qD6xpYv1gO0XqW+EK6pBiSBl+h KVig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SqP3mpuiLMyNNiHN/VtHbmnGfX4V2a5EhDYr/zSJyRw=; b=eKMQKf4LX5/AwVxs+JuKhkrtgu2cwy5uR5+dib5Y7DtWe2CZWB/s0dWSTtQqxxOSRu 8P6gnqvrYuILNloDNVc798XXxEkjWRF0aTpu3wr/C16gTJs8fpGfVbB7XIO5CqhhFEAF DR8hbmcW+xO4VMKdKJ/qE/4y/de7f6K28S7YDrCg9TDyZZA36y9MTvJ9wqcjoJe1gVtz STXEsL+eP2/7Ptb4OzhW02/cJMIeuGPyBXa6dd4ix2jhZWEWoOELi5TtLYciGMKgm55i SPOykclD7+eijPdH+mtGCr9vl4UE4iWYYcmIj86GktfCpntHZmy+wWpGNNd2GM5DTpoT 44VQ== X-Gm-Message-State: APf1xPDAOuFkQL6AdwoZfetyEdFyiWj6nm+aZRNGRsQkckOQMOhjrKMX 0ObAyyf1qUYWXKHjuPhTGsjeaR1UEO0lgBcSilY= X-Received: by 10.25.168.141 with SMTP id r135mr1304854lfe.80.1518535667981; Tue, 13 Feb 2018 07:27:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.23.22 with HTTP; Tue, 13 Feb 2018 07:27:47 -0800 (PST) In-Reply-To: References: <20180209133931.211869118@linuxfoundation.org> <20180209133934.259299920@linuxfoundation.org> <20180213150007.GJ26982@kroah.com> From: Nick Lowe Date: Tue, 13 Feb 2018 15:27:47 +0000 Message-ID: Subject: Re: [PATCH 4.9 43/92] x86/pti: Do not enable PTI on CPUs which are not vulnerable to Meltdown To: Arjan van de Ven Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, David Woodhouse , Thomas Gleixner , Borislav Petkov , Dave Hansen , gnomes@lxorguk.ukuu.org.uk, ak@linux.intel.com, ashok.raj@intel.com, karahmed@amazon.de, torvalds@linux-foundation.org, peterz@infradead.org, Borislav Petkov , pbonzini@redhat.com, tim.c.chen@linux.intel.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arjan and Greg, Sorry if I am not being clear enough. My point is that there is a check for X86_VENDOR_AMD now in two places. It is still hardcoded for the auto boot option which I think should not be there. The patch on that basis looked incomplete to me. Put another way, there is no effect to the auto option where the contents of cpu_no_meltdown[] are changed and cpu_vulnerable_to_meltdown returns differently. The auto option does not make use of a determination of the X86_BUG_CPU_MELTDOWN state. This seems wrong to me. It does not seem correct to me for the auto option to have this duplication with a check for just X86_VENDOR_AMD. Regards, Nick