Re: [PATCH v2 16/39] x86/bpf: Add ENDBR instructions to prologue and trampoline

From: Kees Cook
Date: Thu Feb 24 2022 - 19:59:37 EST


On Thu, Feb 24, 2022 at 03:37:31PM -0800, Josh Poimboeuf wrote:
> All the "4*HAS_KERNEL_IBT" everywhere is cute, but you might as well
> just have IBT_ENDBR_SIZE (here and in other patches).

Oops, I should have read ahead. Yeah, I like folding the multiplication
into the macro...

--
Kees Cook