Commit d4be85d0 authored by Kees Cook's avatar Kees Cook

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: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://lore.kernel.org/all/20240224073617.GA2959352@ravnborg.orgSigned-off-by: default avatarKees Cook <keescook@chromium.org>
parent 57914905
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# #
# Building vDSO images for sparc. # Building vDSO images for sparc.
# #
UBSAN_SANITIZE := n
# files to link into the vdso # files to link into the vdso
vobjs-y := vdso-note.o vclock_gettime.o vobjs-y := vdso-note.o vclock_gettime.o
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment