Re: [PATCH v2] ubsan: Avoid i386 UBSAN handler crashes with Clang

2024-04-26 Thread Justin Stitt
Hi, On Wed, Apr 24, 2024 at 03:40:29PM -0700, Kees Cook wrote: > When generating Runtime Calls, Clang doesn't respect the -mregparm=3 > option used on i386. Hopefully this will be fixed correctly in Clang 19: > https://github.com/llvm/llvm-project/pull/89707 > but we need to fix this for earlier C

Re: [PATCH v2] ubsan: Avoid i386 UBSAN handler crashes with Clang

2024-04-26 Thread Nathan Chancellor
On Wed, Apr 24, 2024 at 03:40:29PM -0700, Kees Cook wrote: > When generating Runtime Calls, Clang doesn't respect the -mregparm=3 > option used on i386. Hopefully this will be fixed correctly in Clang 19: > https://github.com/llvm/llvm-project/pull/89707 > but we need to fix this for earlier Clang

[PATCH v2] ubsan: Avoid i386 UBSAN handler crashes with Clang

2024-04-24 Thread Kees Cook
When generating Runtime Calls, Clang doesn't respect the -mregparm=3 option used on i386. Hopefully this will be fixed correctly in Clang 19: https://github.com/llvm/llvm-project/pull/89707 but we need to fix this for earlier Clang versions today. Force the calling convention to use non-register ar