[<prev] [next>] [day] [month] [year] [list]
Message-ID: <10CEA19AD9D3FA2A+20250206063820.30558-1-wangyuli@uniontech.com>
Date: Thu, 6 Feb 2025 14:38:20 +0800
From: WangYuli <wangyuli@...ontech.com>
To: chenhuacai@...nel.org,
kernel@...0n.name
Cc: loongarch@...ts.linux.dev,
linux-kernel@...r.kernel.org,
zhanjun@...ontech.com,
guanwentao@...ontech.com,
chenlinxuan@...ontech.com,
WangYuli <wangyuli@...ontech.com>
Subject: [PATCH] LoongArch: 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.
Co-developed-by: Wentao Guan <guanwentao@...ontech.com>
Signed-off-by: Wentao Guan <guanwentao@...ontech.com>
Tested-by: Yuli Wang <wangyuli@...ontech.com>
Signed-off-by: Yuli Wang <wangyuli@...ontech.com>
---
arch/loongarch/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
index 2b8bd27a852f..9d20aac7bc14 100644
--- a/arch/loongarch/Kconfig
+++ b/arch/loongarch/Kconfig
@@ -30,6 +30,7 @@ config LOONGARCH
select ARCH_HAS_SET_MEMORY
select ARCH_HAS_SET_DIRECT_MAP
select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
+ select ARCH_HAS_UBSAN
select ARCH_INLINE_READ_LOCK if !PREEMPTION
select ARCH_INLINE_READ_LOCK_BH if !PREEMPTION
select ARCH_INLINE_READ_LOCK_IRQ if !PREEMPTION
--
2.47.2
Powered by blists - more mailing lists