From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932172AbcFNW0W (ORCPT ); Tue, 14 Jun 2016 18:26:22 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36200 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750977AbcFNW0U (ORCPT ); Tue, 14 Jun 2016 18:26:20 -0400 Date: Wed, 15 Jun 2016 00:33:06 +0200 From: Emese Revfy To: Laura Abbott Cc: linux-kbuild@vger.kernel.org, pageexec@freemail.hu, spender@grsecurity.net, kernel-hardening@lists.openwall.com, mmarek@suse.com, keescook@chromium.org, linux@rasmusvillemoes.dk, fengguang.wu@intel.com, dvyukov@google.com, linux-kernel@vger.kernel.org, david.brown@linaro.org, yamada.masahiro@socionext.com Subject: Re: [PATCH v9 3/4] Add Cyclomatic complexity GCC plugin Message-Id: <20160615003306.9f92b6244b7c862cca07b5e5@gmail.com> In-Reply-To: <041e2196-2213-725d-64aa-8526b23bc618@redhat.com> References: <20160524000719.b456ed0cd2aafacb4e53f177@gmail.com> <20160524001035.081cbf822a62b274ad945dc1@gmail.com> <041e2196-2213-725d-64aa-8526b23bc618@redhat.com> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Jun 2016 12:29:59 -0700 Laura Abbott wrote: > This has some weird interaction with ftrace. On x86 > > 1) make mrproper > 2) make defconfig > 3) enable GCC_PLUGINS, GCC_PLUGIN_CYC_COMPLEXITY > 4) enable FUNCTION_TRACER (it will select other options as well) > 5) make && make modules > > MODPOST 18 modules > ERROR: "__fentry__" [net/netfilter/xt_nat.ko] undefined! > ERROR: "__fentry__" [net/netfilter/xt_mark.ko] undefined! > ERROR: "__fentry__" [net/netfilter/xt_addrtype.ko] undefined! > ERROR: "__fentry__" [net/netfilter/xt_LOG.ko] undefined! > ERROR: "__fentry__" [net/netfilter/nf_nat_sip.ko] undefined! > ERROR: "__fentry__" [net/netfilter/nf_nat_irc.ko] undefined! > ERROR: "__fentry__" [net/netfilter/nf_nat_ftp.ko] undefined! > ERROR: "__fentry__" [net/netfilter/nf_nat.ko] undefined! > ERROR: "__fentry__" [net/netfilter/nf_log_common.ko] undefined! > ERROR: "__fentry__" [net/ipv6/netfilter/nf_log_ipv6.ko] undefined! > ERROR: "__fentry__" [net/ipv4/netfilter/nf_nat_masquerade_ipv4.ko] undefined! > ERROR: "__fentry__" [net/ipv4/netfilter/nf_nat_ipv4.ko] undefined! > ERROR: "__fentry__" [net/ipv4/netfilter/nf_log_ipv4.ko] undefined! > ERROR: "__fentry__" [net/ipv4/netfilter/nf_log_arp.ko] undefined! > ERROR: "__fentry__" [net/ipv4/netfilter/iptable_nat.ko] undefined! > ERROR: "__fentry__" [net/ipv4/netfilter/ipt_MASQUERADE.ko] undefined! > ERROR: "__fentry__" [fs/efivarfs/efivarfs.ko] undefined! > ERROR: "__fentry__" [drivers/thermal/x86_pkg_temp_thermal.ko] undefined! > scripts/Makefile.modpost:91: recipe for target '__modpost' failed > make[1]: *** [__modpost] Error 1 > > Verified with gcc-5.3.1 and gcc-6.1.1. You need to do a clean build > with 'make mrproper' first to see this. Subsequent builds will > succeed oddly enough. I suspect this Thanks for the report, I'm looking into it. -- Emese