Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp761853imd; Thu, 1 Nov 2018 05:19:09 -0700 (PDT) X-Google-Smtp-Source: AJdET5ccyqkg1Q7b88tJINhj+n2YVP7Fv+AX9a3jdsGvDczk2NNZs0UjetyuQVxXCDmf4E4PIvTQ X-Received: by 2002:aa7:83c2:: with SMTP id j2-v6mr7516806pfn.91.1541074749269; Thu, 01 Nov 2018 05:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541074749; cv=none; d=google.com; s=arc-20160816; b=rj1QongsxxsBhf1cew1lrWRN/c/ex4RNYJCJ2SSD5ggKgJnTKOGc/A7JJLStsJMJGl mvlz7bFLXqwxLAcdabMfd1wjruk6ScoiSBPyyd4hraOzBwY1I7UZ70OXUsy85XIYFdHc 2XLvYsATS8yzCdXebeS4TdDaZ+CduEFlloFGak+maDIxKTa73c+zgWYn4xLSbQZ15EEK tniYjWMjCdPHOolZZhZQa2pnzsJ2Eujgs2WOppG8stK1GLgU/cAIkeVQTLQJY4sEr2Oa zECW3Cn3rey+mKkQcv7t99Lef/ATv/EUQbvA3lggt5Epo2ibjYKgxkp5QsDtrOfe86Oj 5Ueg== 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; bh=yZ9CUdaIQIG9rKrEU5kJ8fpL7f1d9rZD0YgZch2gBPU=; b=UMO38/2d9yMWMX59DsW6ICIH3H0nwzgF7klqzyqFquRCXh4stU7UaFinQ4ONEDH65F MmYrbnYvxAsmuGJbl/0oQ/LX1/fRMr1pRPO8/MdKTKWWWPiMt9M6ZOH2EVW7U9YxNNyo RS2+9dqlagF+cSn72WtLfbKUchQMQiOZi6JExooTOWwfTxY8tbScpO7JXEyplwpiXQ/y N61G+i4L+g6NT0IMVL+MvuSLtAYvo6TjoMSxz5Blh8dJMu3HGRNDpuQ3KRb7OyXXDYYm 76lS17nK4MPB6zZwIui4Nj5xX/QcbnpJO050eabon/tFycE7cV95j8VEDMOWq8WwWogM 9rGQ== 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 e1-v6si8560020ple.148.2018.11.01.05.18.50; Thu, 01 Nov 2018 05:19:09 -0700 (PDT) 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 S1728532AbeKAVUq (ORCPT + 99 others); Thu, 1 Nov 2018 17:20:46 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:57361 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728085AbeKAVUq (ORCPT ); Thu, 1 Nov 2018 17:20:46 -0400 Received: from p5492fe24.dip0.t-ipconnect.de ([84.146.254.36] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gIBvC-0003h3-Oq; Thu, 01 Nov 2018 13:17:58 +0100 Date: Thu, 1 Nov 2018 13:17:58 +0100 (CET) From: Thomas Gleixner To: "Woodhouse, David" cc: "mingo@kernel.org" , "zhenzhong.duan@oracle.com" , "linux-kernel@vger.kernel.org" , "daniel@iogearbox.net" , "peterz@infradead.org" , "bp@suse.de" , "srinivas.eeda@oracle.com" , "konrad.wilk@oracle.com" , "michal.lkml@markovi.net" , "hpa@zytor.com" , "mingo@redhat.com" , "yamada.masahiro@socionext.com" , "luto@kernel.org" Subject: Re: [PATCH v2 1/2] retpolines: Only enable retpoline support when compiler support it In-Reply-To: <90a9eed724b28d5af57a71694a95b4cd92728ccc.camel@amazon.co.uk> Message-ID: References: <991cbe9b-1e31-4b12-b572-91fde5c79699@default> <20181101095002.GA118944@gmail.com> <90a9eed724b28d5af57a71694a95b4cd92728ccc.camel@amazon.co.uk> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) 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, 1 Nov 2018, Woodhouse, David wrote: > On Thu, 2018-11-01 at 10:50 +0100, Ingo Molnar wrote: > > * Zhenzhong Duan wrote: > > > > > Since retpoline capable compilers are widely available, make > > > CONFIG_RETPOLINE hard depend on it. > > > > > > The check of RETPOLINE is changed to CONFIG_RETPOLINE. > > > > > > This change is based on suggestion in https://lkml.org/lkml/2018/9/18/1016 > > > > > > Signed-off-by: Zhenzhong Duan > > > Cc: Thomas Gleixner > > > Cc: Peter Zijlstra > > > > Please turn such 'based on suggestions' into proper tags as well, i.e. > > something like: > > > > Suggested-by: David Woodhouse > > I think the suggestion came from PeterZ; I just acked it. > > Although on furthe reflection, I think I'd prefer a build break if > retpoline is enabled in the kernel config and the compiler doesn't > support it. This patch would make it silently fail to be secure. Agreed. Thanks, tglx