linux-stable/arch/loongarch/vdso
Kees Cook d382f733c8 LoongArch: vDSO: Disable UBSAN instrumentation
[ Upstream commit cca5efe77a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:34:55 +01:00
..
.gitignore
Makefile LoongArch: vDSO: Disable UBSAN instrumentation 2024-03-01 13:34:55 +01:00
elf.S
gen_vdso_offsets.sh
sigreturn.S
vdso.S
vdso.lds.S LoongArch: Add vDSO syscall __vdso_getcpu() 2022-08-12 13:10:11 +08:00
vgetcpu.c LoongArch: Add support to clone a time namespace 2023-06-29 20:58:43 +08:00
vgettimeofday.c LoongArch: Fix build warnings in VDSO 2022-08-25 19:34:59 +08:00