x86/ibt,crypto: Add ENDBR for the jump-table entries
authorPeter Zijlstra <peterz@infradead.org>
Tue, 8 Mar 2022 15:30:27 +0000 (16:30 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 15 Mar 2022 09:32:36 +0000 (10:32 +0100)
commit214b9a83b617367d53680812ad09687542370b8e
tree013bbe99d30a700497772ccf8a702603d60d324c
parentc3b037917c6a4cbb09ab2d6ccf19f02335ad1847
x86/ibt,crypto: Add ENDBR for the jump-table entries

The code does:

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

resulting in needing to mark the jump-table entries with ENDBR.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20220308154318.110500806@infradead.org
arch/x86/crypto/crc32c-pcl-intel-asm_64.S