Commit b5993164 authored by Roland McGrath's avatar Roland McGrath Committed by Linus Torvalds

elfcore-compat fix uid/gid types

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: default avatarRoland McGrath <roland@redhat.com>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7704a8b6
...@@ -45,8 +45,8 @@ struct compat_elf_prpsinfo ...@@ -45,8 +45,8 @@ struct compat_elf_prpsinfo
char pr_zomb; char pr_zomb;
char pr_nice; char pr_nice;
compat_ulong_t pr_flag; compat_ulong_t pr_flag;
compat_uid_t pr_uid; __compat_uid_t pr_uid;
compat_gid_t pr_gid; __compat_gid_t pr_gid;
compat_pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid; compat_pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid;
char pr_fname[16]; char pr_fname[16];
char pr_psargs[ELF_PRARGSZ]; char pr_psargs[ELF_PRARGSZ];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment