From: Petr Tesarik <ptesarik@suse.com>
Subject: Add product identifying information to VMCOREINFO
Patch-mainline: Never, SUSE-specific
References: bsc#1123015
Since SUSE kernels sometimes backport patches that change the structures
required to save a dump file using makedumpfile, it is necessary to recognize
such a patched kernel from a vanilla kernel in the kdump environment. The
VMCOREINFO note is perfect for this purpose.
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
---
kernel/crash_core.c | 2 ++
1 file changed, 2 insertions(+)
--- a/kernel/crash_core.c
+++ b/kernel/crash_core.c
@@ -10,6 +10,7 @@
#include <linux/utsname.h>
#include <linux/vmalloc.h>
#include <linux/sizes.h>
+#include <linux/suse_version.h>
#include <asm/page.h>
#include <asm/sections.h>
@@ -416,6 +417,7 @@ static int __init crash_save_vmcoreinfo_init(void)
}
VMCOREINFO_OSRELEASE(init_uts_ns.name.release);
+ VMCOREINFO_NUMBER(SUSE_PRODUCT_CODE);
VMCOREINFO_BUILD_ID();
VMCOREINFO_PAGESIZE(PAGE_SIZE);