diff options
author | Kees Cook <keescook@chromium.org> | 2024-02-23 17:57:45 +0100 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2024-02-29 22:38:03 +0100 |
commit | d4be85d068b4418c341f79b654399f7f0891069a (patch) | |
tree | 0f32077fdccddf8f3c7d21a12a7a1b6b7e8e11b3 /arch/sparc/vdso | |
parent | kernel.h: Move lib/cmdline.c prototypes to string.h (diff) | |
download | linux-d4be85d068b4418c341f79b654399f7f0891069a.tar.xz linux-d4be85d068b4418c341f79b654399f7f0891069a.zip |
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 <sam@ravnborg.org>
Link: https://lore.kernel.org/all/20240224073617.GA2959352@ravnborg.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'arch/sparc/vdso')
-rw-r--r-- | arch/sparc/vdso/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/vdso/Makefile b/arch/sparc/vdso/Makefile index 7f5eedf1f5e0..e8aef2c8ae99 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 |