From 55c9697efe356b270f18bf80bb392a846d7642f0 Mon Sep 17 00:00:00 2001 From: wangmingrong1 Date: Tue, 24 Sep 2024 17:16:57 +0800 Subject: [PATCH] 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 --- mm/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index d89c6acf230..764be1b08e1 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