[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240513122754.1282833-1-roberto.sassu@huaweicloud.com>
Date: Mon, 13 May 2024 14:27:54 +0200
From: Roberto Sassu <roberto.sassu@...weicloud.com>
To: richard@....at,
anton.ivanov@...bridgegreys.com,
johannes@...solutions.net,
tglx@...utronix.de,
mingo@...hat.com,
bp@...en8.de,
dave.hansen@...ux.intel.com,
hpa@...or.com
Cc: x86@...nel.org,
linux-um@...ts.infradead.org,
linux-kernel@...r.kernel.org,
zohar@...ux.ibm.com,
linux-integrity@...r.kernel.org,
Roberto Sassu <roberto.sassu@...wei.com>
Subject: [PATCH] arch/x86/um: Disable UBSAN sanitization
From: Roberto Sassu <roberto.sassu@...wei.com>
Disable UBSAN sanitization on UML, since UML does not support it.
This fixes the error message when building the kernel:
CALL scripts/checksyscalls.sh
VDSO arch/x86/um/vdso/vdso.so.dbg
arch/x86/um/vdso/vdso.so.dbg: undefined symbols found
Signed-off-by: Roberto Sassu <roberto.sassu@...wei.com>
---
arch/x86/um/vdso/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/x86/um/vdso/Makefile b/arch/x86/um/vdso/Makefile
index b86d634730b2..ca79c0de582e 100644
--- a/arch/x86/um/vdso/Makefile
+++ b/arch/x86/um/vdso/Makefile
@@ -3,8 +3,10 @@
# Building vDSO images for x86.
#
-# do not instrument on vdso because KASAN is not compatible with user mode
+# do not instrument on vdso because KASAN/UBSAN are not compatible with user
+# mode
KASAN_SANITIZE := n
+UBSAN_SANITIZE := n
# Prevents link failures: __sanitizer_cov_trace_pc() is not linked in.
KCOV_INSTRUMENT := n
--
2.34.1
Powered by blists - more mailing lists