[Devel] [PATCH] kexec, kasan: increase KEXEC_AUTO_RESERVED_SIZE under CONFIG_KASAN=y
Andrey Ryabinin
aryabinin at odin.com
Mon Sep 7 04:36:56 PDT 2015
CONFIG_KASAN=y significantly increases kernel's memory usage.
160Mb for crash kernel is not enough. Increase it up to
196Mb.
https://jira.sw.ru/browse/PSBM-39339
Signed-off-by: Andrey Ryabinin <aryabinin at odin.com>
---
include/asm-generic/kexec.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/asm-generic/kexec.h b/include/asm-generic/kexec.h
index 76726f0..ab22eaf 100644
--- a/include/asm-generic/kexec.h
+++ b/include/asm-generic/kexec.h
@@ -4,7 +4,11 @@
#ifdef CONFIG_KEXEC_AUTO_RESERVE
#ifndef KEXEC_AUTO_RESERVED_SIZE
+#ifndef CONFIG_KASAN
#define KEXEC_AUTO_RESERVED_SIZE ((1ULL<<27) + (1ULL<<25)) /* 160M */
+#else
+#define KEXEC_AUTO_RESERVED_SIZE ((1ULL<<27) + (1ULL<<26)) /* 196M */
+#endif
#endif
#ifndef KEXEC_AUTO_THRESHOLD
#define KEXEC_AUTO_THRESHOLD (1ULL<<31) /* 2G */
--
2.4.6
More information about the Devel
mailing list