Re: [PATCH v2 10/39] x86/ibt,crypto: Add ENDBR for the jump-table entries

From: Peter Zijlstra
Date: Fri Feb 25 2022 - 05:23:16 EST


On Thu, Feb 24, 2022 at 04:50:40PM -0800, Kees Cook wrote:
> On Thu, Feb 24, 2022 at 03:51:48PM +0100, Peter Zijlstra wrote:
> >
> > Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
>
> Can you put some details in the commit log here about why these are
> needed? My eyes can't find the indirect users...

## branch into array
mov jump_table(,%rax,8), %bufp
JMP_NOSPEC bufp

:-)