Received: by 10.223.148.5 with SMTP id 5csp7802848wrq; Thu, 18 Jan 2018 09:41:45 -0800 (PST) X-Google-Smtp-Source: ACJfBos1UhdfKQ+2uLy5qt9BGOapC0i6lFYwtowj2Yoja6bUBvl8QC4q39QqQl3opv60zgy4ZRjC X-Received: by 10.98.75.91 with SMTP id y88mr38534521pfa.178.1516297305383; Thu, 18 Jan 2018 09:41:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516297305; cv=none; d=google.com; s=arc-20160816; b=dbIwM6fP4IY6BnXr6boxsxRezUbY6SdtqfdqVbYO97WGM/+KIh+dgd0787OkIu5suf wmfo/dKNkujA1zHHywqmHaqJeevAs883EUECI6XHO+HTyZP3ZTeArSC5pa6NQQDn5UXD t7qhLvHQaM+Me516bipLU6KG3yL3Q4xRLkbrpy9+TcSaZ049BL42ttJ2rj87kQv7wTK4 6lxmcyYoOr9UttfZ5ET2qTAFbXbu7qcbBlnru3ERRgDiPonTDsxpTeJ3uKpH2crGyTxv TlLixh7CKIveuOYaMIiuTbCGdXsCN6clumu4GjQjnw8H2V40rB/am7wYRmpmdx9abgss aHOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=02FaA7SygJr2i2hAHLVbP3jtGB0R7uO0pAqzZx6DpWY=; b=o3C12+dXAcB8/dvJxYejbpM1krJhON9gkctczyGAwNzZc1w8K5mGB/QmSZ0myUdBKK S36j3yYaRDHeU3X4KySxVbLYfyYlnSNzqeSAdOZ4y7zEAfFq+zf5+C39Ge8PdgLur4Cr ebXbDd6t/ECWc/ibCQf1HhIfJ9wI9t12WMDgftozvYeSk8QIvFlzJXav+zMVf5j842mk 9n5wJsNMRw6tPEmvzztkJsmGkdmHVdvyCmjd+BtUtlHzwYWFdQlR36Kco1kR0HVs8DDX L9v57oIZ6OoqMgbf3wpYami1mXbJbpjTDEpAdOaCwHa7VSiSYFj79pKKY7ybY08LTVPL rIPg== 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 i127si6555293pgc.750.2018.01.18.09.41.31; Thu, 18 Jan 2018 09:41:45 -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 S1755572AbeARRkA (ORCPT + 99 others); Thu, 18 Jan 2018 12:40:00 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:49407 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754961AbeARRj6 (ORCPT ); Thu, 18 Jan 2018 12:39:58 -0500 Received: from hsi-kbw-5-158-153-53.hsi19.kabel-badenwuerttemberg.de ([5.158.153.53] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ecE7x-0002W3-JL; Thu, 18 Jan 2018 18:37:25 +0100 Date: Thu, 18 Jan 2018 18:39:50 +0100 (CET) From: Thomas Gleixner To: Josh Poimboeuf cc: tip-bot for Andi Kleen , linux-tip-commits@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, ak@linux.intel.com, dwmw@amazon.co.uk, mingo@kernel.org, hpa@zytor.com Subject: Re: [tip:x86/pti] module: Add retpoline tag to VERMAGIC In-Reply-To: <20180118170255.wgcqrqiflikd3tmz@treble> Message-ID: References: <20180116205228.4890-1-andi@firstfloor.org> <20180118170255.wgcqrqiflikd3tmz@treble> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 Jan 2018, Josh Poimboeuf wrote: > On Wed, Jan 17, 2018 at 02:40:43AM -0800, tip-bot for Andi Kleen wrote: > > Commit-ID: 6cfb521ac0d5b97470883ff9b7facae264b7ab12 > > Gitweb: https://git.kernel.org/tip/6cfb521ac0d5b97470883ff9b7facae264b7ab12 > > Author: Andi Kleen > > AuthorDate: Tue, 16 Jan 2018 12:52:28 -0800 > > Committer: Thomas Gleixner > > CommitDate: Wed, 17 Jan 2018 11:35:14 +0100 > > > > module: Add retpoline tag to VERMAGIC > > > > Add a marker for retpoline to the module VERMAGIC. This catches the case > > when a non RETPOLINE compiled module gets loaded into a retpoline kernel, > > making it insecure. > > > > It doesn't handle the case when retpoline has been runtime disabled. Even > > in this case the match of the retcompile status will be enforced. This > > implies that even with retpoline run time disabled all modules loaded need > > to be recompiled. > > If the user overrides the vermagic and loads the module, shouldn't we > update the spectre_v2 sysfs vulnerability status and print a warning > like in v2? If the user does that then the sysfs output is not our problem anymore, really. Thanks, tglx