This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 55c9697efe mm/kconfig: The default alignment of global variable
out-of-bounds detection is 1
55c9697efe is described below
commit 55c9697efe356b270f18bf80bb392a846d7642f0
Author: wangmingrong1 <[email protected]>
AuthorDate: Tue Sep 24 17:16:57 2024 +0800
mm/kconfig: The default alignment of global variable out-of-bounds
detection is 1
It is recommended to use 1 on qemu and 16 or even 32 on the device.
Signed-off-by: wangmingrong1 <[email protected]>
---
mm/Kconfig | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/mm/Kconfig b/mm/Kconfig
index d89c6acf23..764be1b08e 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -345,7 +345,10 @@ if MM_KASAN_GLOBAL
config MM_KASAN_GLOBAL_ALIGN
int "KASan global alignment"
- default 32
+ default 1
+ ---help---
+ It is recommended to use 1, 2, 4, 8, 16, 32.
+ The maximum value is 32.
endif # MM_KASAN_GLOBAL