]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
LoongArch: vDSO: Disable UBSAN instrumentation
authorKees Cook <keescook@chromium.org>
Tue, 6 Feb 2024 04:32:05 +0000 (12:32 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Tue, 6 Feb 2024 04:32:05 +0000 (12:32 +0800)
commitcca5efe77a6a2d02b3da4960f799fa233e460ab1
treed6f173ce95333db653247b62830b80114b7b619a
parent639420e9f6cd9ca074732b17ac450d2518d5937f
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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202401310530.lZHCj1Zl-lkp@intel.com/
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: WANG Xuerui <kernel@xen0n.name>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Fangrui Song <maskray@google.com>
Cc: loongarch@lists.linux.dev
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/vdso/Makefile