Skip to content

Commit d4be85d

Browse files
committed
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 <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Kees Cook <[email protected]>
1 parent 5791490 commit d4be85d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/sparc/vdso/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
# Building vDSO images for sparc.
44
#
5+
UBSAN_SANITIZE := n
56

67
# files to link into the vdso
78
vobjs-y := vdso-note.o vclock_gettime.o

0 commit comments

Comments
 (0)