[PATCH] x86_64, Fix for kexec not finding kernel text area

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Saw this issue on x86 with kexec not loading the 4.14+ kdump kernel correctly using the old mechanism:
Can't find kernel text map area from kcore
Cannot load /boot/vmlinuz

Traced it and saw that the X86_64_KERNEL_TEXT_SIZE is larger in the kernel than in kexec.
Syncing upstream kernel change to arch/x86/include/asm/page_64_types.h in commit e8581e3 in git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Signed-off-by: Vishnu Rangayyan <vrangayyan@xxxxxxxxx>
---
 kexec/arch/i386/crashdump-x86.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kexec/arch/i386/crashdump-x86.h b/kexec/arch/i386/crashdump-x86.h
index ddee19f..e1e8043 100644
--- a/kexec/arch/i386/crashdump-x86.h
+++ b/kexec/arch/i386/crashdump-x86.h
@@ -18,7 +18,7 @@ int load_crashdump_segments(struct kexec_info *info, char *mod_cmdline,
 #define X86_64_MAXMEM                  0x3fffffffffffUL
 
 /* Kernel text size */
-#define X86_64_KERNEL_TEXT_SIZE  (512UL*1024*1024)
+#define X86_64_KERNEL_TEXT_SIZE  (1024UL*1024*1024)
 
 #define CRASH_MAX_MEMMAP_NR    1024
 #define CRASH_MAX_MEMORY_RANGES        (MAX_MEMORY_RANGES + 2)
-- 
2.17.2



_______________________________________________
kexec mailing list
kexec@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/kexec



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux