diff options
author | 2024-04-15 11:28:35 -0700 | |
---|---|---|
committer | 2024-04-15 17:42:43 -0700 | |
commit | f4626c12e4b538f757a73d08f4d86d564175b4f7 (patch) | |
tree | e5c0d2ce5e701a2002f40e7cad95d53711d3cf4b /scripts/gdb/linux/utils.py | |
parent | configs/hardening: Disable CONFIG_UBSAN_SIGNED_WRAP (diff) | |
download | linux-rng-f4626c12e4b538f757a73d08f4d86d564175b4f7.tar.xz linux-rng-f4626c12e4b538f757a73d08f4d86d564175b4f7.zip |
ubsan: Add awareness of signed integer overflow traps
On arm64, UBSAN traps can be decoded from the trap instruction. Add the
add, sub, and mul overflow trap codes now that CONFIG_UBSAN_SIGNED_WRAP
exists. Seen under clang 19:
Internal error: UBSAN: unrecognized failure code: 00000000f2005515 [#1] PREEMPT SMP
Reported-by: Nathan Chancellor <nathan@kernel.org>
Closes: https://lore.kernel.org/lkml/20240411-fix-ubsan-in-hardening-config-v1-0-e0177c80ffaa@kernel.org
Fixes: 557f8c582a9b ("ubsan: Reintroduce signed overflow sanitizer")
Tested-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20240415182832.work.932-kees@kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions