From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752110AbbHMLWZ (ORCPT ); Thu, 13 Aug 2015 07:22:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37209 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751452AbbHMLWY (ORCPT ); Thu, 13 Aug 2015 07:22:24 -0400 Date: Thu, 13 Aug 2015 06:22:20 -0500 From: Josh Poimboeuf To: Chris J Arges Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Michal Marek , Peter Zijlstra , Andy Lutomirski , Borislav Petkov , Linus Torvalds , Andi Kleen , Pedro Alves , Namhyung Kim , Bernd Petrovitsch , x86@kernel.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 00/21] Compile-time stack validation Message-ID: <20150813112220.GA30251@treble.redhat.com> References: <55CA699B.4070809@canonical.com> <20150812044317.GB25439@treble.redhat.com> <55CBB9A1.7000800@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <55CBB9A1.7000800@canonical.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 12, 2015 at 04:24:49PM -0500, Chris J Arges wrote: > I still get build failures and I've pared it down to x86_64 defconfig plus: > CONFIG_MODVERSIONS=y > CONFIG_STACK_VALIDATION=y > > And it seems like some modules may get the .tmp_foo.o treatment while > others end up foo.o so something like the following will not work: > > cmd_stackvalidate = $(if $(patsubst n%,, \ > $(STACKVALIDATE_$(basetarget).o)$(STACKVALIDATE)y), \ > $(__stackvalidate) $(nofp) "$(@D)/.tmp_$(@F)";) Does this fix it? diff --git a/scripts/Makefile.build b/scripts/Makefile.build index ec96c51..0181915 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -263,8 +263,8 @@ endif # CONFIG_STACK_VALIDATION define rule_cc_o_c $(call echo-cmd,checksrc) $(cmd_checksrc) \ $(call echo-cmd,cc_o_c) $(cmd_cc_o_c); \ - $(cmd_stackvalidate) \ $(cmd_modversions) \ + $(cmd_stackvalidate) \ $(call echo-cmd,record_mcount) \ $(cmd_record_mcount) \ scripts/basic/fixdep $(depfile) $@ '$(call make-cmd,cc_o_c)' > \