From: Petr Tesarik <ptesarik@suse.com>
Subject: Add product identifying information to VMCOREINFO
References: bsc#1123015
Patch-mainline: Never, SUSE-specific
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
@@ -9,6 +9,7 @@
#include <linux/crash_core.h>
#include <linux/utsname.h>
#include <linux/vmalloc.h>
+#include <linux/suse_version.h>
#include <asm/page.h>
#include <asm/sections.h>
@@ -395,6 +396,7 @@ static int __init crash_save_vmcoreinfo_
}
VMCOREINFO_OSRELEASE(init_uts_ns.name.release);
+ VMCOREINFO_NUMBER(SUSE_PRODUCT_CODE);
VMCOREINFO_PAGESIZE(PAGE_SIZE);
VMCOREINFO_SYMBOL(init_uts_ns);