Re: [PATCH 0/2] configs/hardening: Some fixes for UBSAN

2024-04-22 Thread Justin Stitt
On Mon, Apr 15, 2024 at 11:15:05AM -0700, Kees Cook wrote: > On Thu, Apr 11, 2024 at 11:11:05AM -0700, Nathan Chancellor wrote: > > [0.189542] Internal error: UBSAN: unrecognized failure code: > > f2005515 [#1] PREEMPT SMP > > Oops! Yes, I didn't update the (arm64) trap handler to n

Re: [PATCH 0/2] configs/hardening: Some fixes for UBSAN

2024-04-15 Thread Nathan Chancellor
On Mon, Apr 15, 2024 at 11:15:05AM -0700, Kees Cook wrote: > On Thu, Apr 11, 2024 at 11:11:05AM -0700, Nathan Chancellor wrote: > > [0.189542] Internal error: UBSAN: unrecognized failure code: > > f2005515 [#1] PREEMPT SMP > > Oops! Yes, I didn't update the (arm64) trap handler to n

Re: [PATCH 0/2] configs/hardening: Some fixes for UBSAN

2024-04-15 Thread Kees Cook
On Thu, Apr 11, 2024 at 11:11:05AM -0700, Nathan Chancellor wrote: > [0.189542] Internal error: UBSAN: unrecognized failure code: > f2005515 [#1] PREEMPT SMP Oops! Yes, I didn't update the (arm64) trap handler to notice integer overflows. I think I need something like: diff --git a

Re: [PATCH 0/2] configs/hardening: Some fixes for UBSAN

2024-04-15 Thread Kees Cook
On Thu, 11 Apr 2024 11:11:05 -0700, Nathan Chancellor wrote: > This series was spurred by a couple of recent UBSAN reports in our > continuous integration that appear to be related to > CONFIG_UBSAN_SIGNED_WRAP (which gets enabled with hardening.config due > to 'default UBSAN'), as they only appear

[PATCH 0/2] configs/hardening: Some fixes for UBSAN

2024-04-11 Thread Nathan Chancellor
Hi all, This series was spurred by a couple of recent UBSAN reports in our continuous integration that appear to be related to CONFIG_UBSAN_SIGNED_WRAP (which gets enabled with hardening.config due to 'default UBSAN'), as they only appear with clang-19 and newer: https://github.com/ClangBuiltL