]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: elf: fix core dumping to match what glibc expects
authorWill Deacon <will.deacon@arm.com>
Tue, 22 Jan 2013 15:34:40 +0000 (15:34 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 22 Jan 2013 17:50:59 +0000 (17:50 +0000)
commitb769b18ba9fd1c51b696b7816ed1db81bafe03c3
treed4e62f892cb3097767bd5e58744b920884443b7a
parentd42bf300c854fd32311775bff90e9686040e3609
arm64: elf: fix core dumping to match what glibc expects

The kernel's internal definition of ELF_NGREG uses struct pt_regs, which
means that we disagree with userspace on the size of coredumps since
glibc correctly uses the user-visible struct user_pt_regs.

This patch fixes our ELF_NGREG definition to use struct user_pt_regs
and introduces our own ELF_CORE_COPY_REGS to convert between the user
and kernel structure definitions.

Cc: <stable@vger.kernel.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/elf.h