mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] i386: Allow i386 crash kernels to handle x86_64 dumps
The specific case I am encountering is kdump under Xen with a 64 bit hypervisor and 32 bit kernel/userspace. The dump created is 64 bit due to the hypervisor but the dump kernel is 32 bit for maximum compatibility. It's possibly less likely to be useful in a purely native scenario but I see no reason to disallow it. [[email protected]: build fix] Signed-off-by: Ian Campbell <[email protected]> Signed-off-by: Andi Kleen <[email protected]> Acked-by: Vivek Goyal <[email protected]> Cc: Horms <[email protected]> Cc: Magnus Damm <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Andi Kleen <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
This commit is contained in:
parent
eab0c72aec
commit
79e030114a
3 changed files with 12 additions and 1 deletions
|
|
@ -514,7 +514,7 @@ static int __init parse_crash_elf64_headers(void)
|
|||
/* Do some basic Verification. */
|
||||
if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0 ||
|
||||
(ehdr.e_type != ET_CORE) ||
|
||||
!elf_check_arch(&ehdr) ||
|
||||
!vmcore_elf_check_arch(&ehdr) ||
|
||||
ehdr.e_ident[EI_CLASS] != ELFCLASS64 ||
|
||||
ehdr.e_ident[EI_VERSION] != EV_CURRENT ||
|
||||
ehdr.e_version != EV_CURRENT ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue