01 Mar, 2008
1 commit
-
I overlooked the difference between __kernel_uid_t and uid_t when defining
struct compat_elf_prpsinfo. The result is a regression in 32-bit core
dumps on x86_64, where the NT_PRPSINFO note has the wrong size and layout.
This patch fixes it.Signed-off-by: Roland McGrath
Acked-by: Ingo Molnar
Signed-off-by: Linus Torvalds
17 Oct, 2007
1 commit
-
This adds the linux/elfcore-compat.h header file, which is the CONFIG_COMPAT
analog of the linux/elfcore.h header. Each arch that needs to fake out
fs/binfmt_elf.c for its compat code can use this header to replace the
hand-copied definitions of the compat variants of struct elf_prstatus et al.
Only the pr_reg field varies by arch, so asm/{compat,elf}.h must define
compat_elf_gregset_t before linux/elfcore-compat.h can be used.It's a clean-up that every arch with compat core dumping code can benefit
from. I only touched the ones I have handy to test at home. Doing the same
for each other arch should be straightforward, and I'm happy to offer tips.Signed-off-by: Roland McGrath
Cc: Benjamin Herrenschmidt
Cc: Paul Mackerras
Cc: Andi Kleen
Cc: "Luck, Tony"
Cc:
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds