]> err.no Git - linux-2.6/commitdiff
elfcore-compat fix uid/gid types
authorRoland McGrath <roland@redhat.com>
Tue, 26 Feb 2008 21:20:58 +0000 (13:20 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 29 Feb 2008 16:06:37 +0000 (08:06 -0800)
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 <roland@redhat.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/elfcore-compat.h

index 532d13adabc4f5648dafee76f6edb319063f7a02..0a90e1c3a42207c9d961ff29315dc48c95e0ddec 100644 (file)
@@ -45,8 +45,8 @@ struct compat_elf_prpsinfo
        char                            pr_zomb;
        char                            pr_nice;
        compat_ulong_t                  pr_flag;
-       compat_uid_t                    pr_uid;
-       compat_gid_t                    pr_gid;
+       __compat_uid_t                  pr_uid;
+       __compat_gid_t                  pr_gid;
        compat_pid_t                    pr_pid, pr_ppid, pr_pgrp, pr_sid;
        char                            pr_fname[16];
        char                            pr_psargs[ELF_PRARGSZ];