From mboxrd@z Thu Jan 1 00:00:00 1970 From: catalin.marinas@arm.com (Catalin Marinas) Date: Wed, 27 Feb 2013 11:53:54 +0000 Subject: [PATCH] arm64: fix padding computation in struct ucontext In-Reply-To: References: Message-ID: <20130227115354.GB2293@MacBook-Pro.local> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 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