summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/kexec.h
diff options
context:
space:
mode:
authorTakahiro Akashi <takahiro.akashi@linaro.org>2017-04-03 05:24:34 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2017-04-05 20:28:35 +0300
commit98d2e1539b84abddce4b3c2ca8733f6aeacdee47 (patch)
treeb807b678cd2092db641a00296c5e740d87861dd9 /arch/arm64/include/asm/kexec.h
parent9b0aa14e31555b64460c1ee323d0e19bf891958b (diff)
downloadlinux-98d2e1539b84abddce4b3c2ca8733f6aeacdee47.tar.xz
arm64: kdump: protect crash dump kernel memory
arch_kexec_protect_crashkres() and arch_kexec_unprotect_crashkres() are meant to be called by kexec_load() in order to protect the memory allocated for crash dump kernel once the image is loaded. The protection is implemented by unmapping the relevant segments in crash dump kernel memory, rather than making it read-only as other archs do, to prevent coherency issues due to potential cache aliasing (with mismatched attributes). Page-level mappings are consistently used here so that we can change the attributes of segments in page granularity as well as shrink the region also in page granularity through /sys/kernel/kexec_crash_size, putting the freed memory back to buddy system. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/kexec.h')
0 files changed, 0 insertions, 0 deletions