]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: kexec_file: forbid kdump via kexec_file_load()
authorJames Morse <james.morse@arm.com>
Fri, 7 Dec 2018 10:14:39 +0000 (10:14 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 7 Dec 2018 15:28:21 +0000 (15:28 +0000)
commit355599e6c132cd9cafc39bde56b9dd42b0a4d129
tree3a3a69c393629644c6d71e45285d4f231a4fdc81
parenteb46878b089f4d626998579955d7344fe7dc828f
arm64: kexec_file: forbid kdump via kexec_file_load()

Now that kexec_walk_memblock() can do the crash-kernel placement itself
architectures that don't support kdump via kexe_file_load() need to
explicitly forbid it.

We don't support this on arm64 until the kernel can add the elfcorehdr
and usable-memory-range fields to the DT. Without these the crash-kernel
overwrites the previous kernel's memory during startup.

Add a check to refuse crash image loading.

Reviewed-by: Bhupesh Sharma <bhsharma@redhat.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/kexec_image.c