From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF7E7C76192 for ; Wed, 17 Jul 2019 17:23:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 895B621743 for ; Wed, 17 Jul 2019 17:23:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nifty.com header.i=@nifty.com header.b="n0O2kljS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388126AbfGQRXG (ORCPT ); Wed, 17 Jul 2019 13:23:06 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:53606 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727260AbfGQRXG (ORCPT ); Wed, 17 Jul 2019 13:23:06 -0400 Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com [209.85.217.44]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x6HHMcFN026464; Thu, 18 Jul 2019 02:22:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x6HHMcFN026464 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1563384159; bh=IvZ7SC20dxc7X+546O7iFUVvinUcZEEQvyGPucg162c=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=n0O2kljSpN7bM4J5jb8zs4bblEKtEnYD34Gp/o9ZrEMhEn+MKk8R0uoXaTI7/NB1E gx5ISUq9jBxzokoLXkBf73il0+32ldOzlyT631daenzjotVIQ0NC3Tm3uELTpmkYVN 8dFVfASt4Xp+Jym9uksnoVfhyOAjTD40M6VSz2yDdGsBwVuahnmCd+56ejybyVK0gU 4juLOd0XljlHOv9+JRXoScYjON+ar5v67ql/nfTS2nOmNwRhkDpyzRNA9UMaWq1Za/ vpcezvPmThp5vTYmzFOyXgusvtMd0XEtyMZEXcwEaBFC73fVqYpjPIXO9RzGzruoRR dcywYNazrfCOw== X-Nifty-SrcIP: [209.85.217.44] Received: by mail-vs1-f44.google.com with SMTP id v6so17057989vsq.4; Wed, 17 Jul 2019 10:22:39 -0700 (PDT) X-Gm-Message-State: APjAAAWQfVpkL0kLwiAHRjsqlQ6MCCv1L9Ds7NKes6F73tiWpbJeVPsP 86qRpRQewLCEL9BexKv1GGuRwN58Z2dFSSQWYiI= X-Google-Smtp-Source: APXvYqw9jEx7hbtW9LzvI1Jj9HtHNLv1zygWCUdwJHeZD6RgBkfmF4ytMTb7w/QiSf5lovPyIfYE1Q4SMaHviUe6NR4= X-Received: by 2002:a67:8e0a:: with SMTP id q10mr2283107vsd.215.1563384157905; Wed, 17 Jul 2019 10:22:37 -0700 (PDT) MIME-Version: 1.0 References: <20190717160626.26293-1-seth.forshee@canonical.com> In-Reply-To: <20190717160626.26293-1-seth.forshee@canonical.com> From: Masahiro Yamada Date: Thu, 18 Jul 2019 02:22:02 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] kbuild: add -fcf-protection=none when using retpoline flags To: Seth Forshee Cc: Michal Marek , Josh Poimboeuf , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 18, 2019 at 1:07 AM Seth Forshee wrote: > > The gcc -fcf-protection=branch option is not compatible with > -mindirect-branch=thunk-extern. The latter is used when > CONFIG_RETPOLINE is selected, and this will fail to build with > a gcc which has -fcf-protection=branch enabled by default. Adding > -fcf-protection=none when building with retpoline enabled > prevents such build failures. > > Signed-off-by: Seth Forshee Applied to linux-kbuild. Thanks. -- Best Regards Masahiro Yamada