Re: [PATCH v3 3/3] kcfi: Rename CONFIG_CFI_CLANG to CONFIG_CFI

From: Nathan Chancellor
Date: Wed Sep 24 2025 - 12:46:09 EST


On Tue, Sep 23, 2025 at 02:34:19PM -0700, Kees Cook wrote:
> 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, rename CONFIG_CFI_CLANG to CONFIG_CFI (along with
> associated options).
>
> Use new "transitional" Kconfig option for old CONFIG_CFI_CLANG that will
> enable CONFIG_CFI during olddefconfig.
>
> Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
> Signed-off-by: Kees Cook <kees@xxxxxxxxxx>

Reviewed-by: Nathan Chancellor <nathan@xxxxxxxxxx>

FWIW, another instance of CONFIG_CFI_CLANG has snuck into -next via
commit aa34642f6fc3 ("tools headers: Sync linux/cfi_types.h with the
kernel source").