From: Kees Cook Date: Fri, 23 Feb 2024 16:57:45 +0000 (-0800) Subject: sparc: vdso: Disable UBSAN instrumentation X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d4be85d068b4418c341f79b654399f7f0891069a;p=linux.git sparc: vdso: Disable UBSAN instrumentation The UBSAN instrumentation cannot work in the vDSO since it is executing in userspace, so disable it in the Makefile. Fixes the build failures such as: arch/sparc/vdso/vclock_gettime.c:217: undefined reference to `__ubsan_handle_shift_out_of_bounds' Acked-by: Sam Ravnborg Link: https://lore.kernel.org/all/20240224073617.GA2959352@ravnborg.org Signed-off-by: Kees Cook --- diff --git a/arch/sparc/vdso/Makefile b/arch/sparc/vdso/Makefile index 7f5eedf1f5e0a..e8aef2c8ae99b 100644 --- a/arch/sparc/vdso/Makefile +++ b/arch/sparc/vdso/Makefile @@ -2,6 +2,7 @@ # # Building vDSO images for sparc. # +UBSAN_SANITIZE := n # files to link into the vdso vobjs-y := vdso-note.o vclock_gettime.o