[PATCH 1/5] lib: ubsan: disable sanitization for UBSAN implementation
Sascha Hauer
sha at pengutronix.de
Fri Oct 13 02:17:24 PDT 2023
On Mon, Oct 09, 2023 at 01:52:35PM +0200, Ahmad Fatoum wrote:
> As done in Linux, the implementation of ubsan itself should not be
> instrumented by KASAN and stack protector.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
> lib/Makefile | 2 ++
> 1 file changed, 2 insertions(+)
Applied, thanks
Sascha
>
> diff --git a/lib/Makefile b/lib/Makefile
> index 2b577becc444..791080b2d158 100644
> --- a/lib/Makefile
> +++ b/lib/Makefile
> @@ -89,6 +89,8 @@ obj-$(CONFIG_GENERIC_LIB_MULDI3) += muldi3.o
> pbl-$(CONFIG_GENERIC_LIB_ASHLDI3) += ashldi3.o
>
> UBSAN_SANITIZE_ubsan.o := n
> +KASAN_SANITIZE_ubsan.o := n
> +CFLAGS_ubsan.o := -fno-stack-protector
>
> libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \
> fdt_empty_tree.o
> --
> 2.39.2
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list