Re: [PATCH v6 10/10] x86/retpoline: Exclude objtool with retpoline

From: Josh Poimboeuf
Date: Mon Jan 08 2018 - 08:20:19 EST


On Mon, Jan 08, 2018 at 10:34:00AM +0000, Woodhouse, David wrote:
> On Mon, 2018-01-08 at 11:25 +0100, Thomas Gleixner wrote:
> > On Sun, 7 Jan 2018, David Woodhouse wrote:
> >
> > Cc+ Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
> >
> > Sigh....
> >
> > > From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
> > >Â
> > > objtool's assembler nanny currently cannot deal with the code generated
> > > by the retpoline compiler and throws hundreds of warnings, mostly
> > > because it sees calls that don't have a symbolic target.
> > >Â
> > > Exclude all the options that rely on objtool when RETPOLINE is active.
> > >Â
> > > This mainly means that we use the frame pointer unwinder and livepatch
> > > is not supported.
> > >Â
> > > Eventually objtool can be fixed to handle this.
>
> I believe Josh is on vacation and I've asked Amit to take a look at
> this, at least as far as ensuring that it doesn't actually disable
> kpatch.

I'm back now and will start looking at it this week.

For future revisions of the patch set, can you add me to CC? And also
it would be good to add x86@xxxxxxxxxx as I'm sure the other x86
maintainers (mingo and hpa) want to see these patches.

--
Josh