diff options
author | Peter Zijlstra <peterz@infradead.org> | 2025-02-24 13:37:04 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-02-26 12:10:48 +0100 |
commit | 9a54fb31343362f93680543e37afc14484c185d9 (patch) | |
tree | 1e09214d6ffd363e8a70c11847c95d940cc7e831 /include/linux/cfi.h | |
parent | fe37c699ae3eed6e02ee55fbf5cb9ceb7fcfd76c (diff) |
x86/cfi: Add 'cfi=warn' boot option
Rebuilding with CONFIG_CFI_PERMISSIVE=y enabled is such a pain, esp. since
clang is so slow.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Kees Cook <kees@kernel.org>
Link: https://lore.kernel.org/r/20250224124159.924496481@infradead.org
Diffstat (limited to 'include/linux/cfi.h')
-rw-r--r-- | include/linux/cfi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/cfi.h b/include/linux/cfi.h index f0df518e11dd..1db17ecbb86c 100644 --- a/include/linux/cfi.h +++ b/include/linux/cfi.h @@ -11,6 +11,8 @@ #include <linux/module.h> #include <asm/cfi.h> +extern bool cfi_warn; + #ifndef cfi_get_offset static inline int cfi_get_offset(void) { |