arm64: compat: fix compat types affecting struct compat_elf_prpsinfo
authorVictor Kamensky <victor.kamensky@linaro.org>
Tue, 14 Oct 2014 05:55:05 +0000 (06:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:38:24 +0000 (09:38 -0700)
commit805e4f907fb42c160f6e9c9b33fc94ffb20d868e
treef91055e58a11c3f81f5bf0066c95ece58b202735
parentdb3b820e8dc467fbf38341418717be909fa8d4b1
arm64: compat: fix compat types affecting struct compat_elf_prpsinfo

commit 971a5b6fe634bb7b617d8c5f25b6a3ddbc600194 upstream.

The compat_elf_prpsinfo structure does not match the arch/arm struct
elf_pspsinfo definition. As result NT_PRPSINFO note in core file
created by arm64 kernel for aarch32 (compat) process has wrong size.
So gdb cannot display command that caused process crash.

Fix is to change size of __compat_uid_t, __compat_gid_t so it would
match size of similar fields in arch/arm case.

Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/compat.h