]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
s390/kdump: Use "LINUX" ELF note name instead of "CORE"
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Tue, 7 Feb 2017 17:09:14 +0000 (18:09 +0100)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 15 Mar 2017 15:32:11 +0000 (10:32 -0500)
commit8cbac46f56c457f60f87bd43f84bc547707f6473
treec98138987bb81cf7295d5bcb346f4edb6bb72855
parenta2a928e8c05456c5187b7386c87e3b7a38b4b48c
s390/kdump: Use "LINUX" ELF note name instead of "CORE"

BugLink: http://bugs.launchpad.net/bugs/1673118
commit a4a81d8eebdc1d209d034f62a082a5131e4242b5 upstream.

In binutils/libbfd (bfd/elf.c) it is enforced that all s390 specific ELF
notes like e.g. NT_S390_PREFIX or NT_S390_CTRS have "LINUX" specified
as note name. Otherwise the notes are ignored.

For /proc/vmcore we currently use "CORE" for these notes.

Up to now this has not been a real problem because the dump analysis tool
"crash" does not check the note name. But it will break all programs that
use libbfd for processing ELF notes.

So fix this and use "LINUX" for all s390 specific notes to comply with
libbfd.

Reported-by: Philipp Rudo <prudo@linux.vnet.ibm.com>
Reviewed-by: Philipp Rudo <prudo@linux.vnet.ibm.com>
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/s390/kernel/crash_dump.c