Re: [PATCH v5] x86/traps: Enable UBSAN traps on x86

2024-08-06 Thread Peter Zijlstra
On Wed, Jul 24, 2024 at 12:01:55AM +, Gatlin Newhouse wrote: > Currently ARM architectures extract which specific sanitizer > has caused a trap via encoded data in the trap instruction.[1] > Clang on x86 currently encodes the same data in ud1 instructions > but the x86 handle_bug() and is_valid

Re: [PATCH v5] x86/traps: Enable UBSAN traps on x86

2024-08-05 Thread Kees Cook
On Wed, Jul 24, 2024 at 12:01:55AM +, Gatlin Newhouse wrote: > Currently ARM architectures extract which specific sanitizer > has caused a trap via encoded data in the trap instruction.[1] > Clang on x86 currently encodes the same data in ud1 instructions > but the x86 handle_bug() and is_valid

[PATCH v5] x86/traps: Enable UBSAN traps on x86

2024-07-23 Thread Gatlin Newhouse
Currently ARM architectures extract which specific sanitizer has caused a trap via encoded data in the trap instruction.[1] Clang on x86 currently encodes the same data in ud1 instructions but the x86 handle_bug() and is_valid_bugaddr() functions currently only look at ud2s. Bring x86 to parity wi