Re: [PATCH] ubsan: Add awareness of signed integer overflow traps

2024-04-15 Thread Kees Cook
On Mon, Apr 15, 2024 at 11:34:54AM -0700, Nathan Chancellor wrote: > On Mon, Apr 15, 2024 at 11:28:35AM -0700, Kees Cook wrote: > > 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 un

Re: [PATCH] ubsan: Add awareness of signed integer overflow traps

2024-04-15 Thread Nathan Chancellor
On Mon, Apr 15, 2024 at 11:28:35AM -0700, Kees Cook wrote: > 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:

[PATCH] ubsan: Add awareness of signed integer overflow traps

2024-04-15 Thread Kees Cook
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: f2005515 [#1] PREEMPT SMP Reported-by: Nathan Chancellor Close