This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 9f68a4c4abe9ef62957be780dfc45a0ca2bd40d7 Author: guanyi3 <[email protected]> AuthorDate: Fri Jul 24 10:08:14 2026 +0800 mm/kasan: default enable DISABLE_READS_CHECK Change CONFIG_MM_KASAN_DISABLE_READS_CHECK default from n to y. This disables read-side instrumentation (--param asan-instrument-reads=0) by default, significantly reducing KASAN CPU overhead on hot paths like UART serial I/O. Write-side checks remain active to catch use-after-free and buffer overflows on write. Most memory corruption bugs (UAF, heap overflow, stack overflow) are caught by write-side checks. Read-side checks add substantial overhead with relatively lower detection value in embedded RTOS environments. Signed-off-by: guanyi3 <[email protected]> --- mm/kasan/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/kasan/Kconfig b/mm/kasan/Kconfig index cdf9d86d54c..04160df970f 100644 --- a/mm/kasan/Kconfig +++ b/mm/kasan/Kconfig @@ -111,7 +111,7 @@ config MM_KASAN_DISABLE_NULL_POINTER_CHECK config MM_KASAN_DISABLE_READS_CHECK bool "Disable reads check" - default n + default y ---help--- This option disables kasan reads check. It speeds up performance compared with default read/write check. Only disable it when you are
