[PATCH] arm64: fix padding computation in struct ucontext
Catalin Marinas
catalin.marinas at arm.com
Wed Feb 27 06:53:54 EST 2013
On Tue, Feb 26, 2013 at 04:55:54PM +0000, Andreas Schwab wrote:
> The expression to compute the padding needed to fill the uc_sigmask field
> to 1024 bits actually computes the padding needed for 1080 bits.
> Fortunately, due to the 16-byte alignment of the following field
> (uc_mcontext) the definition in glibc contains enough bytes of padding
> after uc_sigmask so that the overall offsets and size match in both
> definitions.
>
> Signed-off-by: Andreas Schwab <schwab at suse.de>
It looks like I messed the bits vs bytes. Luckily we have the 16-byte
alignment of the last element in ucontext. I'll send the patch upstream.
Thanks.
--
Catalin
More information about the linux-arm-kernel
mailing list