Skip to content

Commit 892a796

Browse files
Avenger-285714chenhuacai
authored andcommitted
LoongArch: Enable UBSAN (Undefined Behavior Sanitizer)
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>
1 parent 08dac3b commit 892a796

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/loongarch/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ config LOONGARCH
3030
select ARCH_HAS_SET_MEMORY
3131
select ARCH_HAS_SET_DIRECT_MAP
3232
select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
33+
select ARCH_HAS_UBSAN
3334
select ARCH_INLINE_READ_LOCK if !PREEMPTION
3435
select ARCH_INLINE_READ_LOCK_BH if !PREEMPTION
3536
select ARCH_INLINE_READ_LOCK_IRQ if !PREEMPTION

0 commit comments

Comments
 (0)