From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:44786 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965194AbeBMQgE (ORCPT ); Tue, 13 Feb 2018 11:36:04 -0500 Date: Tue, 13 Feb 2018 17:32:39 +0100 From: Greg Kroah-Hartman To: Nick Lowe Cc: Arjan van de Ven , 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 Subject: Re: [PATCH 4.9 43/92] x86/pti: Do not enable PTI on CPUs which are not vulnerable to Meltdown Message-ID: <20180213163239.GA17101@kroah.com> References: <20180209133931.211869118@linuxfoundation.org> <20180209133934.259299920@linuxfoundation.org> <20180213150007.GJ26982@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: stable-owner@vger.kernel.org List-ID: On Tue, Feb 13, 2018 at 03:27:47PM +0000, Nick Lowe wrote: > 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. Do you have a patch that reflects what you want to see changed here? And can you test it? :) I don't have any AMD hardware, sorry. thanks, greg k-h