Received: by 10.223.176.46 with SMTP id f43csp782913wra; Wed, 24 Jan 2018 05:59:32 -0800 (PST) X-Google-Smtp-Source: AH8x224Vv+UYhvkzHvD/aUCtjw08WJ/V9OOXiUoa1PDiDi7JTLx5wpKPUv5N5lBBSLfY3WLFYf82 X-Received: by 10.98.54.71 with SMTP id d68mr12986148pfa.173.1516802372576; Wed, 24 Jan 2018 05:59:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516802372; cv=none; d=google.com; s=arc-20160816; b=ksa7RiC9r+d4eJoC3hzaaUzIonmOa+pG5TMhrZEmkrrZhA4tA7NxHbvrlZLTL/e/zs f79DgfgQXAF/ZSExGPINpwRgTsEkrSB/ka2baICpJpnEvP5GOau48HTJR/RCAjZUM/7T kRtsu/NIJUCdAJKCpJTqiS90EvWaNV40pB+DPb8cnQFNVgfUE3wS/5x4G2JIrqbQpELw JyC1kyRmLNEV1PzcQ3q83i2Io7qDWwhrFN4CyUiZlpmT1yhBgh3z4QMfWO/b3OMOuaTS x+gbyz0c23yvseLN0HfghDgIfYHZvQhWgLjXzTQhB6uj8fiOgQ/8s9uUftrBuAnEHVad ETzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=oLTmxpaZa9tdQTXfIm7vJut64vzdrwfSsa6Eql8kovk=; b=XVfIAM42caK/XB5aJvmnxWUYnUmnxI8bDU/A4oRQDma+ueTI6DFVRk0wKVVnfB6nJo hl/x1XNAhn8RxvORfCEQTzTa8dnYSeMzkf6kyerpvcRS/bobjF8qOxUBucyGIZT3oMMW MIfAg7+lm0m+GzBccIz8DRA/uItoIasMUcbvPEgZrQm7gv6LGJO1yOdA6Bm/WZr7kmtq jYtBzRfUW5AlOLDIwug7PA9WjQVxRib/rgiRSNS354yoq2zrEGBUZS3CiDLb4qNy6ufr PyUDDUDFowTvNQ0yXxqut5b5uMfsOPEBY5wfJLFC553DVGonvWCu/qRugIzSpY6U7Q7p vvyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=CBJ3Z+cZ; 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 x70si175873pgd.590.2018.01.24.05.59.18; Wed, 24 Jan 2018 05:59:32 -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=@messagingengine.com header.s=fm1 header.b=CBJ3Z+cZ; 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 S933940AbeAXN6x (ORCPT + 99 others); Wed, 24 Jan 2018 08:58:53 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:59753 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933642AbeAXN6w (ORCPT ); Wed, 24 Jan 2018 08:58:52 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 08B0322414; Wed, 24 Jan 2018 08:58:52 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Wed, 24 Jan 2018 08:58:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=oLTmxpaZa9tdQTXfIm7vJut64vzdr wfSsa6Eql8kovk=; b=CBJ3Z+cZ8eTigU8ojwgsA+f0fqaLO/GEvQfQBfJXsrUcV LZkSzZCr+dtb1S5uSM6afZmv5EYh4wvqqxVQd2VvVclR7nOV9KNmhTum46sZ5vgg 6CM+uqrfLNfs69EGtcyFkkC9XTBWPUDSnvVlJpjq57snTW0p0PsOq7km4P6OoGxL D7OYvjtq5nDP3Ma2Tsg9H5f8uTIrFoV+D+yhNu0Bq3N4GrC4ygewNNGMUrdJ0imX hpL34R1cCnvt/YsJMb2WAKh7XlIbNuwu2HPu85DUHHCfm7GTQmpK7JlakVMIJJMU ESL1gZoXhpd6Li2YFKsTJvETUACh5OsjJgJZP+AiQ== X-ME-Sender: Received: from localhost (lfbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.messagingengine.com (Postfix) with ESMTPA id 656897E2E5; Wed, 24 Jan 2018 08:58:51 -0500 (EST) Date: Wed, 24 Jan 2018 14:58:51 +0100 From: Greg Kroah-Hartman To: Jiri Kosina Cc: Andi Kleen , Borislav Petkov , David Woodhouse , Paul Turner , LKML , Linus Torvalds , Tim Chen , Dave Hansen , Thomas Gleixner , Kees Cook , Rik van Riel , Peter Zijlstra , Andy Lutomirski , gnomes@lxorguk.ukuu.org.uk, x86@kernel.org, thomas.lendacky@amd.com, Josh Poimboeuf Subject: Re: [PATCH v8 04/12] x86/spectre: Add boot time option to select Spectre v2 mitigation Message-ID: <20180124135851.GA22180@kroah.com> References: <1515707194-20531-1-git-send-email-dwmw@amazon.co.uk> <1515707194-20531-5-git-send-email-dwmw@amazon.co.uk> <20180123224014.dsbzps4hydt6h7ed@pd.tnic> <20180123232125.GS7844@tassilo.jf.intel.com> <20180123234529.GU7844@tassilo.jf.intel.com> <20180124042631.GA6920@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 24, 2018 at 10:56:49AM +0100, Jiri Kosina wrote: > On Wed, 24 Jan 2018, Greg Kroah-Hartman wrote: > > > But will Andi's patch work well for you? Adding a MODULE_INFO() tag to > > every module? > > Yes, that would work -- all the modules that get built in tree, or out of > tree but with retpolined compiler, would have that marker that could be > optionally checked for by the kernel. And what is the kernel supposed to do with that info? > > I just thought since you were already using modversions in enterprise > > distros already, that adding it there would be the simplest. > > The patch as-is introduces immediate modversion mismatch between > retpolined kernel and non-retpolined module, making each and every one > fail to load. Good, the patch works then, because I thought that not loading non-retpolined modules in a kernel that was built with retpoline was the goal here. If that is not the intended result, then yes, the patch should be reverted and replaced with something that actually does whatever it is that you all want. As it is, I am totally confused as to the requirement here... thanks, greg k-h