[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150813145013.GF30251@treble.redhat.com>
Date: Thu, 13 Aug 2015 09:50:13 -0500
From: Josh Poimboeuf <jpoimboe@...hat.com>
To: Chris J Arges <chris.j.arges@...onical.com>
Cc: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>, Michal Marek <mmarek@...e.cz>,
Peter Zijlstra <peterz@...radead.org>,
Andy Lutomirski <luto@...nel.org>,
Borislav Petkov <bp@...en8.de>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Andi Kleen <andi@...stfloor.org>,
Pedro Alves <palves@...hat.com>,
Namhyung Kim <namhyung@...il.com>,
Bernd Petrovitsch <bernd@...rovitsch.priv.at>, x86@...nel.org,
live-patching@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v8 00/21] Compile-time stack validation
On Thu, Aug 13, 2015 at 09:42:25AM -0500, Chris J Arges wrote:
> On Thu, Aug 13, 2015 at 06:22:20AM -0500, Josh Poimboeuf wrote:
> > 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)' > \
> >
>
> Josh,
>
> Yes, this fixes my build. For completeness this is my current diff:
Great! I'll roll both patches into v10.
--
Josh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists