sparc: vdso: Disable UBSAN instrumentation
authorKees Cook <keescook@chromium.org>
Fri, 23 Feb 2024 16:57:45 +0000 (08:57 -0800)
committerKees Cook <keescook@chromium.org>
Thu, 29 Feb 2024 21:38:03 +0000 (13:38 -0800)
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 <sam@ravnborg.org>
Link: https://lore.kernel.org/all/20240224073617.GA2959352@ravnborg.org
Signed-off-by: Kees Cook <keescook@chromium.org>
arch/sparc/vdso/Makefile

index 7f5eedf1f5e0ad3ff23fcdbcf882ece7eced120c..e8aef2c8ae99b4ed7045de43dd8b9f9748a29d53 100644 (file)
@@ -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