On August 25, 2025 1:00:22 PM EDT, Miguel Ojeda <[email protected]> wrote: >On Mon, Aug 25, 2025 at 5:35 PM Kees Cook <[email protected]> wrote: >> >> Yeah, that's a good idea. What the right way to do that? >> >> config CFI_CLANG >> bool "Use Clang's Control Flow Integrity (CFI)" >> depends on ARCH_SUPPORTS_CFI >> select CFI >> >> ? > >I don't recall what is the idiomatic solution for renames, but I >remember Linus talking about this topic and about avoiding losing old >values if possible (perhaps getting a new question in `oldconfig` is >OK as long as the `olddefconfig` respects the old value). > >I think your suggestion above will still make it appear twice in >`menuconfig` -- there may be a way to play with visibility to make it >better. > >A simple possibility I can think of (assuming it works) is having the >CFI symbol for the time being introduced just as a `def_bool >CFI_CLANG` for a few releases so that people get the new one in their >configs. Ah, I think this works: config CFI_CLANG bool config CFI bool "...." default CFI_CLANG I will add that for v2. -Kees -- Kees Cook
- Re: [PATCH 1/5] compiler_types.h: Move __nocfi out ... Nathan Chancellor
- [PATCH 3/5] x86/cfi: Add option for cfi=debug bootparam Kees Cook
- Re: [PATCH 3/5] x86/cfi: Add option for cfi=debug b... Kees Cook
- Re: [PATCH 3/5] x86/cfi: Add option for cfi=debug b... Peter Zijlstra
- Re: [PATCH 3/5] x86/cfi: Add option for cfi=debug b... Nathan Chancellor
- [PATCH 5/5] kcfi: Rename CONFIG_CFI_CLANG to CONFIG_CFI Kees Cook
- Re: [PATCH 5/5] kcfi: Rename CONFIG_CFI_CLANG to CO... Miguel Ojeda
- Re: [PATCH 5/5] kcfi: Rename CONFIG_CFI_CLANG t... Kees Cook
- Re: [PATCH 5/5] kcfi: Rename CONFIG_CFI_CLA... Miguel Ojeda
- Re: [PATCH 5/5] kcfi: Rename CONFIG_CFI... Kees Cook
- Re: [PATCH 5/5] kcfi: Rename CONFI... Nathan Chancellor
- Re: [PATCH 5/5] kcfi: Rename C... Randy Dunlap
- Re: [PATCH 5/5] kcfi: Rename C... Nathan Chancellor
- Re: [PATCH 5/5] kcfi: Rename C... Randy Dunlap
- Re: [PATCH 5/5] kcfi: Rename C... Miguel Ojeda
- Re: [PATCH 5/5] kcfi: Rename C... Nathan Chancellor
- Re: [PATCH 5/5] kcfi: Rename C... Kees Cook
- Re: [PATCH 5/5] kcfi: Rename C... Nathan Chancellor
- Re: [PATCH 5/5] kcfi: Rename C... Miguel Ojeda
- Re: [PATCH 5/5] kcfi: Rename C... Miguel Ojeda
