]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
LoongArch: Enable UBSAN (Undefined Behavior Sanitizer)
authorYuli Wang <wangyuli@uniontech.com>
Sun, 30 Mar 2025 08:31:08 +0000 (16:31 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Sun, 30 Mar 2025 08:31:08 +0000 (16:31 +0800)
Select ARCH_HAS_UBSAN in order to allow the user to enable CONFIG_UBSAN
and instrument the entire kernel for ubsan checks.

Co-developed-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: Yuli Wang <wangyuli@uniontech.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/Kconfig

index c6d8a30a12158e795cba59f16af9ab0a56e8c9ea..5e009126eaa18bd43e6ccfba374d5fbca2335cc0 100644 (file)
@@ -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