]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/nolibc: enable UBSAN if available
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 19 Apr 2025 10:46:24 +0000 (12:46 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Sat, 19 Apr 2025 12:18:16 +0000 (14:18 +0200)
commit8509b5c9fa981f7e17874605af86d26159310d3c
tree7b0852afc79f32b355e440cca130e5de6098e685
parent6478251f95121ae4b66e987c98482e0d0b149e5d
selftests/nolibc: enable UBSAN if available

UBSAN detects undefined behaviour at runtime.
To avoid introduction of new UB, enable UBSAN for nolibc-test.

By signalling detected errors through traps no runtime dependency
is necessary.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250419-nolibc-ubsan-v2-7-060b8a016917@weissschuh.net
tools/testing/selftests/nolibc/Makefile