mirror of
https://github.com/torvalds/linux.git
synced 2025-12-01 07:26:02 +07:00
ubsan/overflow: Enable ignorelist parsing and add type filter
Limit integer wrap-around mitigation to only the "size_t" type (for now). Notably this covers all special functions/builtins that return "size_t", like sizeof(). This remains an experimental feature and is likely to be replaced with type annotations. Reviewed-by: Justin Stitt <justinstitt@google.com> Link: https://lore.kernel.org/r/20250307041914.937329-3-kees@kernel.org Signed-off-by: Kees Cook <kees@kernel.org>
This commit is contained in:
3
scripts/integer-wrap-ignore.scl
Normal file
3
scripts/integer-wrap-ignore.scl
Normal file
@@ -0,0 +1,3 @@
|
||||
[{unsigned-integer-overflow,signed-integer-overflow,implicit-signed-integer-truncation,implicit-unsigned-integer-truncation}]
|
||||
type:*
|
||||
type:size_t=sanitize
|
||||
Reference in New Issue
Block a user