Repository navigation
Commit 9f68a4c
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 <guanyi3@xiaomi.com>1 parent edd1269 commit 9f68a4c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
0 commit comments