Skip to content

Commit cca5efe

Browse files
keeschenhuacai
authored andcommitted
LoongArch: vDSO: Disable UBSAN instrumentation
The vDSO executes in userspace, so the kernel's UBSAN should not instrument it. Solves these kind of build errors: loongarch64-linux-ld: arch/loongarch/vdso/vgettimeofday.o: in function `vdso_shift_ns': lib/vdso/gettimeofday.c:23:(.text+0x3f8): undefined reference to `__ubsan_handle_shift_out_of_bounds' Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Cc: Huacai Chen <[email protected]> Cc: WANG Xuerui <[email protected]> Cc: Vincenzo Frascino <[email protected]> Cc: Nathan Chancellor <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Fangrui Song <[email protected]> Cc: [email protected] Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent 639420e commit cca5efe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/loongarch/vdso/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Objects to go into the VDSO.
33

44
KASAN_SANITIZE := n
5+
UBSAN_SANITIZE := n
56
KCOV_INSTRUMENT := n
67

78
# Include the generic Makefile to check the built vdso.

0 commit comments

Comments
 (0)