summaryrefslogtreecommitdiff
path: root/kernel/configs
diff options
context:
space:
mode:
authorKees Cook <kees@kernel.org>2025-03-06 20:19:09 -0800
committerKees Cook <kees@kernel.org>2025-03-07 19:58:05 -0800
commited2b548f1017586c44f50654ef9febb42d491f31 (patch)
treed17aa3f3c788656de2f25f9ea31c8a30758fe9e9 /kernel/configs
parentd2cf8ccf5a1871058a083c00efe37d7eb91bf6bd (diff)
ubsan/overflow: Rework integer overflow sanitizer option to turn on everything
Since we're going to approach integer overflow mitigation a type at a time, we need to enable all of the associated sanitizers, and then opt into types one at a time. Rename the existing "signed wrap" sanitizer to just the entire topic area: "integer wrap". Enable the implicit integer truncation sanitizers, with required callbacks and tests. Notably, this requires features (currently) only available in Clang, so we can depend on the cc-option tests to determine availability instead of doing version tests. Link: https://lore.kernel.org/r/20250307041914.937329-1-kees@kernel.org Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'kernel/configs')
-rw-r--r--kernel/configs/hardening.config2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/configs/hardening.config b/kernel/configs/hardening.config
index 3fabb8f55ef6..dd7c32fb5ac1 100644
--- a/kernel/configs/hardening.config
+++ b/kernel/configs/hardening.config
@@ -46,7 +46,7 @@ CONFIG_UBSAN_BOUNDS=y
# CONFIG_UBSAN_SHIFT is not set
# CONFIG_UBSAN_DIV_ZERO is not set
# CONFIG_UBSAN_UNREACHABLE is not set
-# CONFIG_UBSAN_SIGNED_WRAP is not set
+# CONFIG_UBSAN_INTEGER_WRAP is not set
# CONFIG_UBSAN_BOOL is not set
# CONFIG_UBSAN_ENUM is not set
# CONFIG_UBSAN_ALIGNMENT is not set