Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kdump: report actual value of VMCOREINFO_OSRELEASE in VMCOREINFO

The current implementation reports the structure name as
VMCOREINFO_OSRELEASE in VMCOREINFO, e.g.

VMCOREINFO_OSRELEASE=init_uts_ns.name.release

That doesn't make sense because it's always the same. Instead, use the
value, e.g.

VMCOREINFO_OSRELEASE=2.6.26-rc3

That's also what the 'makedumpfile -g' does.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
Cc: "Ken'ichi Ohmichi" <oomichi@mxs.nes.nec.co.jp>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Bernhard Walle and committed by
Linus Torvalds
c6e2bee2 775587b6

+2 -2
+2 -2
include/linux/kexec.h
··· 130 130 __attribute__ ((format (printf, 1, 2))); 131 131 unsigned long paddr_vmcoreinfo_note(void); 132 132 133 - #define VMCOREINFO_OSRELEASE(name) \ 134 - vmcoreinfo_append_str("OSRELEASE=%s\n", #name) 133 + #define VMCOREINFO_OSRELEASE(value) \ 134 + vmcoreinfo_append_str("OSRELEASE=%s\n", value) 135 135 #define VMCOREINFO_PAGESIZE(value) \ 136 136 vmcoreinfo_append_str("PAGESIZE=%ld\n", value) 137 137 #define VMCOREINFO_SYMBOL(name) \