mirror of
https://github.com/torvalds/linux.git
synced 2026-01-24 23:16:46 +00:00
kcfi: Rename CONFIG_CFI_CLANG to CONFIG_CFI
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@linaro.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Link: https://lore.kernel.org/r/20250923213422.1105654-3-kees@kernel.org Signed-off-by: Kees Cook <kees@kernel.org>
This commit is contained in:
@@ -460,6 +460,6 @@ config UNUSED_KSYMS_WHITELIST
|
||||
|
||||
config MODULES_TREE_LOOKUP
|
||||
def_bool y
|
||||
depends on PERF_EVENTS || TRACING || CFI_CLANG
|
||||
depends on PERF_EVENTS || TRACING || CFI
|
||||
|
||||
endif # MODULES
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* Use a latched RB-tree for __module_address(); this allows us to use
|
||||
* RCU lookups of the address from any context.
|
||||
*
|
||||
* This is conditional on PERF_EVENTS || TRACING || CFI_CLANG because those can
|
||||
* This is conditional on PERF_EVENTS || TRACING || CFI because those can
|
||||
* really hit __module_address() hard by doing a lot of stack unwinding;
|
||||
* potentially from NMI context.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user