From 47a251cbfeeb3f1c1b233cab3a2f46dbfd820aca Mon Sep 17 00:00:00 2001 From: zhangnaichuan Date: Thu, 28 Dec 2023 15:11:20 +0800 Subject: [PATCH] x86/kdump: add log before booting crash kernel euleros inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8RJ7E?from=project-issue CVE: NA --------------------------- Just like arm64, print "Bye!" before booting crash kernel. Signed-off-by: zhangnaichuan Signed-off-by: Bin Wang --- arch/x86/kernel/machine_kexec_64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c index 1a3e2c05a8a5..de7e4e423449 100644 --- a/arch/x86/kernel/machine_kexec_64.c +++ b/arch/x86/kernel/machine_kexec_64.c @@ -338,6 +338,8 @@ void machine_kexec(struct kimage *image) page_list[PA_SWAP_PAGE] = (page_to_pfn(image->swap_page) << PAGE_SHIFT); + pr_info("Bye!\n"); + /* * The segment registers are funny things, they have both a * visible and an invisible part. Whenever the visible part is -- Gitee