Re: [PATCH 2/6] tools/nolibc: disable function sanitizer for _start_c()

2025-04-19 Thread Willy Tarreau
On Sat, Apr 19, 2025 at 12:10:24PM +0200, Thomas Weißschuh wrote: > On 2025-04-19 11:06:31+0200, Willy Tarreau wrote: > > On Wed, Apr 16, 2025 at 08:40:17PM +0200, Thomas Weißschuh wrote: > > > Both constructors and main() may be executed with different function > > > signatures than they are actua

Re: [PATCH 2/6] tools/nolibc: disable function sanitizer for _start_c()

2025-04-19 Thread Thomas Weißschuh
On 2025-04-19 11:06:31+0200, Willy Tarreau wrote: > On Wed, Apr 16, 2025 at 08:40:17PM +0200, Thomas Weißschuh wrote: > > Both constructors and main() may be executed with different function > > signatures than they are actually using. > > This is intentional but trips up UBSAN. > > > > Disable th

Re: [PATCH 2/6] tools/nolibc: disable function sanitizer for _start_c()

2025-04-19 Thread Willy Tarreau
On Wed, Apr 16, 2025 at 08:40:17PM +0200, Thomas Weißschuh wrote: > Both constructors and main() may be executed with different function > signatures than they are actually using. > This is intentional but trips up UBSAN. > > Disable the function sanitizer of UBSAN in _start_c(). > > Signed-off-b

[PATCH 2/6] tools/nolibc: disable function sanitizer for _start_c()

2025-04-16 Thread Thomas Weißschuh
Both constructors and main() may be executed with different function signatures than they are actually using. This is intentional but trips up UBSAN. Disable the function sanitizer of UBSAN in _start_c(). Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/crt.h | 5 + 1 file changed,