[openwrt/openwrt] kernel: enable KASAN option for more architectures

LEDE Commits lede-commits at lists.infradead.org
Fri Mar 8 00:08:12 PST 2024


981213 pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/a646e4f697ca53f9892c98caa49c68d3f1b3a7cf

commit a646e4f697ca53f9892c98caa49c68d3f1b3a7cf
Author: Qingfang Deng <dqfext at gmail.com>
AuthorDate: Fri Mar 8 11:07:49 2024 +0800

    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 <dqfext at gmail.com>
---
 config/Config-kernel.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index 78155eb592..2e59bc9551 100644
--- a/config/Config-kernel.in
+++ b/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.




More information about the lede-commits mailing list