mm/kasan: add null pointer access configuration

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai
2024-08-20 16:03:14 +08:00
committed by Xiang Xiao
parent 38010adc02
commit e154c6d071
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -288,6 +288,12 @@ config MM_KASAN_ALL
to check. Enabling this option will get image size increased
and performance decreased significantly.
config MM_KASAN_DISABLE_NULL_POINTER_CHECK
bool "Disable null pointer access check"
default n
---help---
This option enables KASan check null pointer access.
config MM_KASAN_DISABLE_READS_CHECK
bool "Disable reads check"
depends on MM_KASAN