[RHEL7,COMMIT] kexec, kasan: increase KEXEC_AUTO_RESERVED_SIZE under CONFIG_KASAN=y up to 1G

Submitted by Konstantin Khorenko on Nov. 26, 2018, 3:53 p.m.

Details

Message ID 201811261553.wAQFrC6w020854@finist-ce7.sw.ru
State New
Series "kexec, kasan: increase KEXEC_AUTO_RESERVED_SIZE under CONFIG_KASAN=y up to 1G"
Headers show

Commit Message

Konstantin Khorenko Nov. 26, 2018, 3:53 p.m.
The commit is pushed to "branch-rh7-3.10.0-957.vz7.82.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-957.vz7.82.2
------>
commit 68277feb6188029406d5dd84e2393f247de90893
Author: Konstantin Khorenko <khorenko@virtuozzo.com>
Date:   Mon Nov 26 18:49:38 2018 +0300

    kexec, kasan: increase KEXEC_AUTO_RESERVED_SIZE under CONFIG_KASAN=y up to 1G
    
    We again faced a situation when kdump did not dump memory image
    using default settings (320M) on debug kernel, but worked fine with
    "crashkernel=1G" boot param.
    
    Let's increase default crashkernel memory size up to 1G.
    
    Previous increase:
    8cd04a839dbd ("kexec, kasan: increase KEXEC_AUTO_RESERVED_SIZE under CONFIG_KASAN=y")
    
    Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
---
 include/asm-generic/kexec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/include/asm-generic/kexec.h b/include/asm-generic/kexec.h
index a4325eb15fc9..ea828613ce01 100644
--- a/include/asm-generic/kexec.h
+++ b/include/asm-generic/kexec.h
@@ -7,7 +7,7 @@ 
 #ifndef CONFIG_KASAN
 #define KEXEC_AUTO_RESERVED_SIZE ((1ULL<<27) + (1ULL<<25)) /* 160M */
 #else
-#define KEXEC_AUTO_RESERVED_SIZE ((1ULL<<28) + (1ULL<<26)) /* 320M */
+#define KEXEC_AUTO_RESERVED_SIZE (1ULL<<30) /* 1G */
 #endif
 #endif
 #ifndef KEXEC_AUTO_THRESHOLD