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

2021-02-10 Thread Peter Zijlstra
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 gia

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

2021-02-10 Thread Josh Poimboeuf
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 th

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

2021-02-10 Thread Peter Zijlstra
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. --- diff --git a/tools/objtool/arch/x86/decode.c b/tools/objtool/arch/x86/decode.c index 931cef78b857..e70873