From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Date: Fri, 31 Mar 2006 17:18:34 +0000 Subject: Re: [patch] avoid unaligned access when accessing poll stack Message-Id: <200603311918.35207.ak@suse.de> List-Id: References: <200603311853.32870.ak@suse.de> <87ek0ipmae.fsf@duaron.myhome.or.jp> In-Reply-To: <87ek0ipmae.fsf@duaron.myhome.or.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: OGAWA Hirofumi Cc: Jes Sorensen , Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org On Friday 31 March 2006 19:16, OGAWA Hirofumi wrote: > > OK. So how about this? > > char stack_pps[POLL_STACK_ALLOC] > __attribute__((aligned (sizeof(struct poll_list)))); This would require much more alignment than really necessary. Probably you meant s/sizeof/alignof/. But Jes' patch is fine I think. -Andi