Re: [PATCH 1/6] x86_64/entry: Unconditionally use -fno-jump-table
From: Breno Leitao
Date: Mon Nov 02 2026 - 10:00:31 EST
On Mon, Nov 02, 2026 at 12:25:50PM +0100, Peter Zijlstra wrote:
> Currently we force -fno-jump-table for RETPOLINE=y || X86_KERNEL_IBT=y, which
> means that it is effectively disabled for most everyone these days.
>
> Simply unconditionally disable jump tables for x86_64 to take away the edge
> case.
>
> Doing so, allows removing the array_index_nospec() barrier in the syscall
> dispatch since it cannot be an array index anymore.
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
Thanks for the patchset.
Tested-by: Breno Leitao <leitao@xxxxxxxxxx>