Re: [tip:x86/x32] x32: Fix alignment fail in struct compat_siginfo

From: H.J. Lu
Date: Wed Apr 18 2012 - 14:01:30 EST


On Wed, Apr 18, 2012 at 10:47 AM, H. Peter Anvin <hpa@xxxxxxxxx> wrote:
> On 04/18/2012 10:38 AM, H.J. Lu wrote:
>>
>> It doesn't match struct siginfo in include/asm-generic/siginfo.h for
>> x32.
>>
>
> What is missing (from either)?
>

include/asm-generic/siginfo.h has

/* SIGCHLD */
struct {
__kernel_pid_t _pid; /* which child */
__ARCH_SI_UID_T _uid; /* sender's uid */
int _status; /* exit code */
__kernel_clock_t _utime;
__kernel_clock_t _stime;
} _sigchld;


Although x32 __kernel_clock_t is s64 with 64bit alignment, in
_sigchld, it must be compat_s64 with 32bit alignment.

--
H.J.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/