diff options
author | Hassan Naveed <hnaveed@wavecomp.com> | 2018-11-20 01:49:37 +0100 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2018-11-20 21:23:06 +0100 |
commit | 1e35918ad9d1172efdc78e28cf0d2209194f3961 (patch) | |
tree | 0f3ea057f48d563de36a1b1396f87fb180474030 /arch/mips/vdso | |
parent | MIPS: Loongson: Add Loongson-3A R2.1 basic support (diff) | |
download | linux-1e35918ad9d1172efdc78e28cf0d2209194f3961.tar.xz linux-1e35918ad9d1172efdc78e28cf0d2209194f3961.zip |
MIPS: Enable Undefined Behavior Sanitizer UBSAN
Select ARCH_HAS_UBSAN_SANITIZE_ALL in order to allow the user to
enable CONFIG_UBSAN_SANITIZE_ALL and instrument the entire kernel for
ubsan checks.
We exclude the VDSO from this because its build doesn't include the
__ubsan_handle_*() functions that the kernel proper defines in from
lib/ubsan.c, and the VDSO would have no sane way to report errors even
if it had definitions of these functions.
Signed-off-by: Hassan Naveed <hnaveed@wavecomp.com>
Reviewed-by: Paul Burton <paul.burton@mips.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/21179/
Cc: <linux-mips@linux-mips.org>
Diffstat (limited to 'arch/mips/vdso')
-rw-r--r-- | arch/mips/vdso/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/vdso/Makefile b/arch/mips/vdso/Makefile index 58a0315ad743..f6fd340e39c2 100644 --- a/arch/mips/vdso/Makefile +++ b/arch/mips/vdso/Makefile @@ -50,6 +50,7 @@ VDSO_LDFLAGS := \ $(call cc-ldoption, -Wl$(comma)--build-id) GCOV_PROFILE := n +UBSAN_SANITIZE := n # # Shared build commands. |