Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp619301imd; Thu, 1 Nov 2018 02:52:15 -0700 (PDT) X-Google-Smtp-Source: AJdET5d69CIcs8TseKeJsh6eBuTFMqbHwuU/9DB9Zfq9JDcoAYGCfVeqOT4m+e6ixM0lbFgfKryA X-Received: by 2002:a65:520a:: with SMTP id o10mr6781913pgp.276.1541065935681; Thu, 01 Nov 2018 02:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541065935; cv=none; d=google.com; s=arc-20160816; b=qAWi7y1WJ/mdFd+T1+OIk8YGYBPB2RIYTpP1vXpEwL1L1zzXJcoNRA8My+cuq0v5HH 0VFMRbn6sus9AJDYGIWlAwV/sQEGozfMGdjID/M84qOFVTURaMm3j1o2er/M7t8XhABW FZT0KxhUVUSn03w65ydGvwKLt0H+41WSO4gvcMw6k9/r+qb1vyTjSyK72cpSVNimdwLf bEPbiMuln837/HJ8s300f8mdnR8A82k+Aw31WsgU6/TvdfhVaE4xu58mRCOZ4TRKfV1u lKSbR4bm4sYntWZzm3BktWZrODB2InpSGXFrBT9yRPUnamdeihiFLmkvFWft9tHbN98o fPHA== 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; bh=nBqxeoCyj0BGEXfgiUXau9w/F3jAnIhzFpUb3272UX8=; b=qh3PNkjAcScrdwZuWNApKoDFG7xNdldik9RbtCa03ynUoOWA0nk8xEnH0QCCQmCNAD YfLEOwwsA/i0toxQAfmnwBhPePr0NaaMAAzun7ELi76ThRVhujCB3c7ROd22dpXD/fjW zAbu9Rm6MT6hZ7GVkqs4BIhxt7Ga8iETUQ9ycAQoI3kPN0cmfFJE+EaYkq3/57qFlnAO BpHR7LfaH012OnAG3sDfJA0POrMl2LS5XDxyj4++WaoExIAI0E7pv0jHSrMeDVI+Grkl wMJ1+oDbYpgmIULVdYEN0ahnaHquJWjtPYqKaQ4+lx0RUCc73wxuShCvP3BEzU6VZejt ZjbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MhnkmQQY; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v38-v6si29927075pgl.539.2018.11.01.02.52.00; Thu, 01 Nov 2018 02:52:15 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MhnkmQQY; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727996AbeKASwX (ORCPT + 99 others); Thu, 1 Nov 2018 14:52:23 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:34281 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725800AbeKASwW (ORCPT ); Thu, 1 Nov 2018 14:52:22 -0400 Received: by mail-wm1-f66.google.com with SMTP id f1-v6so1418590wmg.1 for ; Thu, 01 Nov 2018 02:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nBqxeoCyj0BGEXfgiUXau9w/F3jAnIhzFpUb3272UX8=; b=MhnkmQQYyZKToMdSwCJ+xxb4hhILdPkncn7Er6NcppKDPRvUEHScJFFY7PRa3RaZ4v 78Wttp2hRAYZCa+LSb0I8mnNHGCq3zeMgvOQwQB5498bltBDIlZQDw9cfHf1yLmzJIF8 ZU2TeX0ePFdIZtnnE23fnLZUfT1WRS7QqfWxmmuuG84rvTJIbbJ2bfcTfNLSASWGk5Y5 oKLIp1oxKXloUgNH7AP4qk2SN2ZIu8FyguSonknMc5aGpab7mPQ//fg71Z4JL8BOaq/k wRiqW+s3DCdQedUh8Ta/PDAYxyNlqUnQ5ImzSeFGaPgONG8Xy2DV4U58JwKLEBnshVID w2ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=nBqxeoCyj0BGEXfgiUXau9w/F3jAnIhzFpUb3272UX8=; b=D8zYvTbd1iLInPL4OwU2vofwR9v+CHh2jSrg4SEfBvfqtF9hifXuuN/W2PS4dnyQm+ 7Oiqy9sEHM3XoWbEi9wmGQPErwSWH+8sqYeYDolIq0ibURQs3nS7ufqRWfrdAH2nUusc YokTcnCxKkiZDClxvIkXhS5hDkkv1oOco3hxHhZlDLXZgUkpXX5LKnDwuslX5QZqy/Dq X7Ym4YLXUww017JnUNEb9l8LfWKkwYWFZnFnBWMqUhmHvQIEWA7k1aq3gv0cDRahy126 CzTolEYvZPn38BH3EzoreMUcfa/tCAvHS/k45xm2aQWQYGmWdvK29yGXyCppzfq/0/Bk nd7g== X-Gm-Message-State: AGRZ1gL0Gm2YZhrR295PqkXguBTofXqPk1z8cS+d+JlyWt/LRFGsZjT0 AHe2wzgW7uhmYbsSizpSeik= X-Received: by 2002:a1c:5801:: with SMTP id m1-v6mr4955269wmb.118.1541065805366; Thu, 01 Nov 2018 02:50:05 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id 68-v6sm14027502wmg.26.2018.11.01.02.50.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Nov 2018 02:50:04 -0700 (PDT) Date: Thu, 1 Nov 2018 10:50:02 +0100 From: Ingo Molnar To: Zhenzhong Duan Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, konrad.wilk@oracle.com, luto@kernel.org, tglx@linutronix.de, dwmw@amazon.co.uk, bp@suse.de, srinivas.eeda@oracle.com, daniel@iogearbox.net, yamada.masahiro@socionext.com, michal.lkml@markovi.net, peterz@infradead.org, hpa@zytor.com Subject: Re: [PATCH v2 1/2] retpolines: Only enable retpoline support when compiler support it Message-ID: <20181101095002.GA118944@gmail.com> References: <991cbe9b-1e31-4b12-b572-91fde5c79699@default> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <991cbe9b-1e31-4b12-b572-91fde5c79699@default> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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 > config RETPOLINE > bool "Avoid speculative indirect branches in kernel" > + depends on $(cc-option,-mindirect-branch=thunk-extern -mindirect-branch-register) || \ > + $(cc-option,-mretpoline-external-thunk) At least a comment should be added that this is the retpoline feature check for GCC and Clang. Also, whitespace damage plus the two options should align vertically. Thanks, Ingo