Re: [PATCH] x86/boot/compressed: Disable jump tables for clang

From: Ingo Molnar

Date: Wed Jun 24 2026 - 05:55:27 EST



* Ingo Molnar <mingo@xxxxxxxxxx> wrote:


> > I'm sitting on a patch to unconditionally disable jump-tables for
> > x86_64:
> >
> > https://web.git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/log/?h=x86/syscall
>
> In particular:
>
> https://web.git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?h=x86/syscall&id=76612388fe7aa41a8eb88f890d451bc17255eda0

Side note: since arch/x86/boot/compressed/Makefile constructs
its own KBUILD_CFLAGS, so a change to that Makefile will still
be required to universally apply -fno-jump-tables and work
around this Clang optimization in the decompression code.

Thanks,

Ingo