]> www.infradead.org Git - users/dwmw2/linux.git/commit
ubsan/overflow: Enable ignorelist parsing and add type filter
authorKees Cook <kees@kernel.org>
Fri, 7 Mar 2025 04:19:11 +0000 (20:19 -0800)
committerKees Cook <kees@kernel.org>
Sat, 8 Mar 2025 03:58:05 +0000 (19:58 -0800)
commit47f4af43e7c0cf702d6a6321542f0c0d9c4216e3
tree0ef05c6036089b68f36954529f676ddbc09192e0
parent272a767063a6856cd1e18bb951d2be4f047b9858
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>
lib/Kconfig.ubsan
scripts/Makefile.ubsan
scripts/integer-wrap-ignore.scl [new file with mode: 0644]