Commit b712bd16 authored by Zhen Lei's avatar Zhen Lei Committed by Zheng Zengkai
Browse files

arm64: kdump: Update the name of crashk_low_res

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I545H8


CVE: NA

-------------------------------------------------------------------------

To be consistent with the style of other ARCHs such as x86, the kexec
commit b5a34a20984c ("arm64: support more than one crash kernel regions")
requires all crash regions to be named "Crash kernel". Update the name of
crashk_low_res, so that we can directly use the latest kexec tool without
having to maintain a private version.

Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent af36aed7
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -274,16 +274,9 @@ static void __init request_standard_resources(void)
			request_memmap_resources(res);

#ifdef CONFIG_KEXEC_CORE
		/*
		 * Userspace will find "Crash kernel" or "Crash kernel (low)"
		 * region in /proc/iomem.
		 * In order to distinct from the high region and make no effect
		 * to the use of existing kexec-tools, rename the low region as
		 * "Crash kernel (low)".
		 */
		/* Userspace will find "Crash kernel" region in /proc/iomem. */
		if (crashk_low_res.end && crashk_low_res.start >= res->start &&
				crashk_low_res.end <= res->end) {
			crashk_low_res.name = "Crash kernel (low)";
			request_resource(res, &crashk_low_res);
		}
		if (crashk_res.end && crashk_res.start >= res->start &&