瀏覽代碼

kernel: enable KASAN option for more architectures

KASAN has supported more architectures, such as ARM, PPC32 and RISC-V 64.
Enable KASAN option for those architectures.

Signed-off-by: Qingfang Deng <[email protected]>
Qingfang Deng 1 年之前
父節點
當前提交
a646e4f697
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      config/Config-kernel.in

+ 1 - 1
config/Config-kernel.in

@@ -144,7 +144,7 @@ config KERNEL_UBSAN_TRAP
 config KERNEL_KASAN
 	bool "Compile the kernel with KASan: runtime memory debugger"
 	select KERNEL_SLUB_DEBUG
-	depends on (x86_64 || aarch64)
+	depends on (x86_64 || aarch64 || arm || powerpc || riscv64)
 	help
 	  Enables kernel address sanitizer - runtime memory debugger,
 	  designed to find out-of-bounds accesses and use-after-free bugs.