Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754069AbcJSOLE (ORCPT ); Wed, 19 Oct 2016 10:11:04 -0400 Received: from smtprelay0010.hostedemail.com ([216.40.44.10]:38200 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751427AbcJSOKB (ORCPT ); Wed, 19 Oct 2016 10:10:01 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2553:2559:2562:3138:3139:3140:3141:3142:3167:3353:3622:3865:3866:3867:3868:3871:3872:3873:3874:4250:4321:5007:6119:6261:7875:7903:7974:9040:10004:10400:10848:10967:11026:11232:11473:11658:11914:12043:12295:12296:12438:12555:12679:12696:12737:12740:12760:12986:13069:13161:13229:13311:13357:13439:14096:14097:14181:14659:14721:21080:21325:21451:30029:30054:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:10,LUA_SUMMARY:none X-HE-Tag: list31_6738034a5b858 X-Filterd-Recvd-Size: 2875 Date: Wed, 19 Oct 2016 09:45:07 -0400 From: Steven Rostedt To: Borislav Petkov Cc: Adam Borowski , Markus Trippelsdorf , Al Viro , lkml , npiggin@gmail.com Subject: Re: 784d5699eddc ("x86: move exports to actual definitions") Message-ID: <20161019094507.7c780449@gandalf.local.home> In-Reply-To: <20161019102325.32nfqbess2kbtcrx@pd.tnic> References: <20161018202304.sksoxuoll4uy3uwg@pd.tnic> <20161018202915.GA307@x4> <20161019001004.GA27544@angband.pl> <20161019102325.32nfqbess2kbtcrx@pd.tnic> X-Mailer: Claws Mail 3.13.2 (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 Content-Length: 1778 Lines: 60 On Wed, 19 Oct 2016 12:23:25 +0200 Borislav Petkov wrote: > On Wed, Oct 19, 2016 at 02:10:04AM +0200, Adam Borowski wrote: > > Already being fixed, please take a look at the thread starting at > > 20161016002205.GA9686@vader; for your convenience I've put Nicholas Piggin's > > initial work, my lousy but works-for-me fix for x86, Arnd Bergmann's for arm > > at git@github.com:kilobyte/linux.git branch kbuild-exports. > > Thanks. > > So you have three patches on that branch, I cherry-picked the first > two and it is almost fixed except the __fentry__ thing which is still > missing a CRC, see below. > > Adding Steve to CC too. > > WARNING: "__fentry__" [virt/lib/irqbypass.ko] has no CRC! > WARNING: "__fentry__" [sound/core/snd-hrtimer.ko] has no CRC! > WARNING: "__fentry__" [sound/core/seq/snd-seq.ko] has no CRC! [ snip repeated failures of __fentry__ ] Probably because of this: #ifdef CC_USE_FENTRY # define function_hook __fentry__ #else # define function_hook mcount #endif [..] Then you have this: EXPORT_SYMBOL(function_hook) which most likely exported the name "function_hook" and not "__fentry__". Does this patch fix things for you? If it does, I can make it more generic (moving the MACRO_EXPORT_SYMBOL into the export.h header). And submit that. -- Steve diff --git a/arch/x86/kernel/mcount_64.S b/arch/x86/kernel/mcount_64.S index efe73aacf966..9420cd6c6dba 100644 --- a/arch/x86/kernel/mcount_64.S +++ b/arch/x86/kernel/mcount_64.S @@ -295,7 +295,8 @@ trace: jmp fgraph_trace END(function_hook) #endif /* CONFIG_DYNAMIC_FTRACE */ -EXPORT_SYMBOL(function_hook) +#define MACRO_EXPORT_SYMBOL(x) EXPORT_SYMBOL(x) +MACRO_EXPORT_SYMBOL(function_hook) #endif /* CONFIG_FUNCTION_TRACER */ #ifdef CONFIG_FUNCTION_GRAPH_TRACER