Re: [RFC][PATCH] objtool: WARN about ENDBR instructions

From: Peter Zijlstra
Date: Wed Feb 10 2021 - 12:02:48 EST


On Wed, Feb 10, 2021 at 10:09:45AM -0600, Josh Poimboeuf wrote:
> On Wed, Feb 10, 2021 at 09:39:53AM +0100, Peter Zijlstra wrote:
> >
> >
> > Given all the ENDBR fun we recently had, do we want the below? Until
> > someone comes and fixes up kprobes/ftrace/livepatch etc.. having them is
> > a giant pain and we'd better warn about it.
>
> Meh...
>
> Is there a point in doing this, now that we killed it with
> -fcf-protection=none?
>
> That said, the patch is nicely small and localized.

Yeah, paranoia, just making absolutely sure it doesn't sneak back in
unexpected.