Re: [PATCH v2 00/39] x86: Kernel IBT

From: Steven Rostedt
Date: Fri Feb 25 2022 - 12:32:46 EST


On Fri, 25 Feb 2022 09:26:44 -0800
Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:

> > Damn, I just realized this makes KERNEL_IBT hard depend on KALLSYMS :-(
>
> Why should the jump label patching code even care whether there's an
> ENDBR at the jump target? It should never jump to the beginning of a
> function anyway, right? And objtool presumably doesn't patch out ENDBRs
> in the middle of a function.

Perhaps Peter confused jump labels with static calls?

-- Steve