lkml.org 
[lkml]   [2012]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [tip:x86/x32] x32: Fix alignment fail in struct compat_siginfo
On 03/14/2012 04:17 PM, H.J. Lu wrote:
>
> Just for the record, although the offsets of _utime and _stime are
> multiple of 8 bytes, struct siginfo is only aligned at 4 bytes. So
> the addresses of _utime and _stime may not be 8byte aligned.
> But misaligned int64 load/store are OK for x86-64.
>

Yes; the real question I guess is where struct siginfo appears and if it
is misaligned by construction. It obviously appears in the signal stack
frame but also in a couple of system calls. It might be possible to put
an __attribute__((aligned(8))) on the whole structure in the x32 case?

-hpa


\
 
 \ /
  Last update: 2012-03-15 00:23    [W:0.087 / U:2.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site