Skip to content

Commit 33d3eaf

Browse files
author
Yuli Wang
committed
LoongArch: Enable UBSAN (Undefined Behavior Sanitizer)
[ Upstream commit 892a796 ] 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> [ Backport from v6.15 ] Signed-off-by: WangYuli <wangyuli@uniontech.com>
1 parent 8fc457c commit 33d3eaf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/loongarch/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ config LOONGARCH
2121
select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
2222
select ARCH_HAS_PTE_SPECIAL
2323
select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
24+
select ARCH_HAS_UBSAN
2425
select ARCH_INLINE_READ_LOCK if !PREEMPTION
2526
select ARCH_INLINE_READ_LOCK_BH if !PREEMPTION
2627
select ARCH_INLINE_READ_LOCK_IRQ if !PREEMPTION

0 commit comments

Comments
 (0)