Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp975080ybi; Wed, 17 Jul 2019 07:45:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzChlYhuWsX+wDV03i9bEncVDWxO5AHNTepK98obX0L+nt+ael3ii+oP0lQUoZiZw/53RaQ X-Received: by 2002:a65:44cc:: with SMTP id g12mr29490566pgs.409.1563374717769; Wed, 17 Jul 2019 07:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563374717; cv=none; d=google.com; s=arc-20160816; b=WQ4mhgs52vzy7ARmB+It0RzugUcsjclm/1xcKzZqlzTyA4cd2DY3noWhgaMIvXZN88 eB3F3/yohoaFK18JD+mcnH3TiQKP6NEAtbA3rm6ynt8x9WKqDolhw1tGEQWc7tJa0cg4 M/6GA3pVXwgMZHW5ae4tXfCjQJSlXrQdJy8p7Uy+za9U/6k6XDgjJ42WK8hHoTLAokB4 XfBF9lirGPgJGLqtoE0lVXK6JK2pY6uR3AkiGWwkTvM69UzEnMGM/VgiMpwQni1egTaR vl99q7fTn44bzCh+nkoMqVYDFB6iX3bTZSPhpiX6CvNWn7sbbUzhTwe9LH2y1J/bVQg9 9K2g== 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; bh=2386PExRpbgkN+Uat/urOUj93u5UGvh9BJdUwckpNOU=; b=nNUi6iXg8QdxUHsHo37TUMSzi0ROSpXALAP2f7EExPOAZgM/KTKCC7CFrhufqRHBAe xlMd02dOt69aER/PqANvyFhBzWKzVpVq/YIsw/vboWRect4m1SeRKlfyCZgAtDntLH7D Oa+L0/O5x0p36x7rnCNWtW8sNzD5b/tshVgj2Qu14L1d5l+zhgmGbjgZnMjR14BdCd5L xWRcFX6CuQOf5+IogodVW4J7lj8IOPM0rB+Ny/zRrLscmyUigE+lG+1bPYt8bSRO0EJn S6tjQ1EcGi4G6UYgbmd+hIzIxouzg3bF2hymp8ujSGAzbdZzXfs2HspFW0fJArzKtSc7 XwMA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si22493844plb.337.2019.07.17.07.45.01; Wed, 17 Jul 2019 07:45:17 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727256AbfGQOoN (ORCPT + 99 others); Wed, 17 Jul 2019 10:44:13 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:59429 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbfGQOoN (ORCPT ); Wed, 17 Jul 2019 10:44:13 -0400 Received: from mail-io1-f71.google.com ([209.85.166.71]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1hnlAB-0003E4-Mw for linux-kernel@vger.kernel.org; Wed, 17 Jul 2019 14:44:11 +0000 Received: by mail-io1-f71.google.com with SMTP id v3so27365551ios.4 for ; Wed, 17 Jul 2019 07:44:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2386PExRpbgkN+Uat/urOUj93u5UGvh9BJdUwckpNOU=; b=cQOWXXZetmbQhMYdG6cOLCpmXKAFfTHWO5TRBGRgpBkTeOYKQ1y5iECvXkLpxrw90S HfmWfgqPQ/rksoLFVZi7OwnW0FhiYyWGxjXOq6ogUQHQgIm3tQPgpBNU0fM7EVhS/LSK JpV6xwPkxZ/nhkYO6EJZkD2YlJgSkrrPHCGLMF/l++lk9xEK14Y4ztkGDp+Wsg8KJLTy /K7V4LdeHB3j0OYzoGbzGIc9+opglz20cbF5mzVFMDNGu5iJ2SYUE7RYRceGXrk8NAXu FtMw9gIzpv8v9Cq+ZqGhZ+x3Ppzy3G+zVf7cP0zZF9HfTQSaJDv2HZoaxBGk6SYRE9Vz uhkw== X-Gm-Message-State: APjAAAVx6UpI+MEGWjQldJUcILYujWWoRQviu5FDrDOQBbCDHWgRwtCi EoWb9xFfEMc4BDHVyT9NYcfVhvOGyomkkF03uRamOxjT8CtkuMLwvhOvcrAc4OMfMmJy2pLIChN yczBsPxWECN09kFt2wBqavYJpEBDca2HT+shOMGxdyg== X-Received: by 2002:a5e:8a46:: with SMTP id o6mr6672199iom.36.1563374650645; Wed, 17 Jul 2019 07:44:10 -0700 (PDT) X-Received: by 2002:a5e:8a46:: with SMTP id o6mr6672164iom.36.1563374650305; Wed, 17 Jul 2019 07:44:10 -0700 (PDT) Received: from localhost ([2605:a601:ac2:fb20:31dd:dc66:96d:f1eb]) by smtp.gmail.com with ESMTPSA id l11sm18574102ioj.32.2019.07.17.07.44.08 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 17 Jul 2019 07:44:08 -0700 (PDT) Date: Wed, 17 Jul 2019 09:44:07 -0500 From: Seth Forshee To: Masahiro Yamada Cc: Josh Poimboeuf , kbuild-all@01.org, Linux Kbuild mailing list , Linux Kernel Mailing List , kbuild test robot Subject: Re: [kbuild:kbuild 5/19] drivers/atm/eni.o: warning: objtool: eni_init_one()+0xe42: indirect call found in RETPOLINE build Message-ID: <20190717144407.GU5418@ubuntu-xps13> References: <201907160706.9xUSQ36X%lkp@intel.com> <20190716124249.GP5418@ubuntu-xps13> <20190716162014.iu47g6o7ralxhcf5@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 17, 2019 at 11:52:07AM +0900, Masahiro Yamada wrote: > On Wed, Jul 17, 2019 at 1:20 AM Josh Poimboeuf wrote: > > > > On Tue, Jul 16, 2019 at 07:42:49AM -0500, Seth Forshee wrote: > > > On Tue, Jul 16, 2019 at 03:57:24PM +0900, Masahiro Yamada wrote: > > > > (+ Josh Poimboeuf) > > > > > > > > On Tue, Jul 16, 2019 at 8:44 AM kbuild test robot wrote: > > > > > > > > > > tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git kbuild > > > > > head: 0ff0c3753e06c0420c80dac1b0187a442b372acb > > > > > commit: 2eaf4e87ba258cc3f27e486cdf32d5ba76303c6f [5/19] kbuild: add -fcf-protection=none to retpoline flags > > > > > config: x86_64-randconfig-s2-07160214 (attached as .config) > > > > > compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 > > > > > reproduce: > > > > > git checkout 2eaf4e87ba258cc3f27e486cdf32d5ba76303c6f > > > > > # save the attached .config to linux build tree > > > > > make ARCH=x86_64 > > > > > > > > 0-day bot reports objtool warnings with the following applied: > > > > https://patchwork.kernel.org/patch/11037379/ > > > > > > > > I have no idea about objtool. > > > > > > > > Is it better to drop this patch for now? > > > > > > I'm surprised that the change would have any impact on a build with > > > gcc-4.9, since -fcf-protection seems to have been introduced in gcc-8. I > > > guess there's no full build log that would let us see the actual flags > > > passed to the compiler. > > > > > > I'll try to reproduce this result. If you think the patch should be > > > dropped in the meantime, that's fine. > > > > The problem with this patch is that it's breaking the following check in > > arch/x86/Makefile. GCC 4.9 doesn't support retpolines, so it's supposed > > to fail with the below error. > > > > ifdef CONFIG_RETPOLINE > > ifeq ($(RETPOLINE_CFLAGS),) > > @echo "You are building kernel with non-retpoline compiler." >&2 > > @echo "Please update your compiler." >&2 > > @false > > endif > > endif > > > > Maybe the flags should be placed in another variable other than > > RETPOLINE_CFLAGS. > > > > Josh, > Thanks. You are right. > > > Seth, > I think you can add the flag to KBUILD_CFLAGS. > > If you want to make sure this does not affect non-retpoline > build, you can surround the code with ifdef. > > ifdef CONFIG_RETPOLINE > KBUILD_CFLAGS += $(call cc-option,-fcf-protection=none) > endif Thanks, I'll send an updated patch shortly. Seth