[PATCH 5/5] kcfi: Rename CONFIG_CFI_CLANG to CONFIG_CFI

Linus Walleij linus.walleij at linaro.org
Thu Aug 28 05:08:42 PDT 2025


On Mon, Aug 25, 2025 at 4:26 PM Kees Cook <kees at kernel.org> wrote:

> From: Kees Cook <kees at outflux.net>
>
> The kernel's CFI implementation uses the KCFI ABI specifically, and is
> not strictly tied to a particular compiler. In preparation for GCC
> supporting KCFI[1], rename CONFIG_CFI_CLANG to CONFIG_CFI (along with
> associated options).
>
> Link: https://lore.kernel.org/linux-hardening/20250821064202.work.893-kees@kernel.org [1]
> Signed-off-by: Kees Cook <kees at outflux.net>
> ---
> Cc: Sami Tolvanen <samitolvanen at google.com>
> Cc: Linus Walleij <linus.walleij at linaro.org>
> Cc: Mark Rutland <mark.rutland at arm.com>
> Cc: Peter Zijlstra <peterz at infradead.org>
> Cc: Puranjay Mohan <puranjay at kernel.org>

Yeah that was not a good neutral name to begin with.
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

I don't know about all that fuzz with providing the old symbol.
Seems complex. Folks anyway have to go over their config
symbols with every new kernel. But if people insist. I'm fine
either way.

Yours,
Linus Walleij



More information about the linux-riscv mailing list