mm/kasan: support Disable Kasan read Panic

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai
2024-05-14 15:58:32 +08:00
committed by Xiang Xiao
parent d365be9f2f
commit be86b03794
2 changed files with 34 additions and 8 deletions
+12 -3
View File
@@ -320,14 +320,23 @@ config MM_KASAN_GLOBAL
KEEP ( *(. data. rel. local.. LASAN0))
}", used to extract data generated by the compiler
config MM_KASAN_DISABLE_PANIC
bool "Disable panic on kasan error"
config MM_KASAN_DISABLE_READ_PANIC
bool "Disable panic on kasan read error"
default n
---help---
This option disable panic on kasan read error. It will print error info
and continue to run.
config MM_KASAN_DISABLE_WRITE_PANIC
bool "Disable panic on kasan write error"
depends on MM_KASAN
default n
---help---
This option disable panic on kasan error. It will print error info
This option disable panic on kasan write error. It will print error info
and continue to run.
endif # MM_KASAN
config MM_UBSAN
bool "Undefined Behavior Sanitizer"
default n