[RHEL8,COMMIT] kexec/kasan: Increase automatic memory reservation for KASAN-enabled kernels

Submitted by Konstantin Khorenko on March 5, 2021, 3:46 p.m.

Details

Message ID 202103051546.125FkDnt613679@finist-co8.sw.ru
State New
Headers show

Patch hide | download patch | download mbox

diff --git a/kernel/crash_core.c b/kernel/crash_core.c
index 26131019b179..0ea2e4463e0d 100644
--- a/kernel/crash_core.c
+++ b/kernel/crash_core.c
@@ -263,7 +263,11 @@  static int __init __parse_crashkernel(char *cmdline,
 
 	if (strncmp(ck_cmdline, "auto", 4) == 0) {
 #if defined(CONFIG_X86_64) || defined(CONFIG_S390)
+#ifndef CONFIG_KASAN
 		ck_cmdline = "1G-4G:160M,4G-64G:192M,64G-1T:256M,1T-:512M";
+#else
+		ck_cmdline = "1G-1T:320M,1T-:512M";
+#endif
 #elif defined(CONFIG_ARM64)
 		ck_cmdline = "2G-:448M";
 #elif defined(CONFIG_PPC64)