From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754024Ab2DSAOp (ORCPT ); Wed, 18 Apr 2012 20:14:45 -0400 Received: from mail-qc0-f174.google.com ([209.85.216.174]:37062 "EHLO mail-qc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751605Ab2DSAOn convert rfc822-to-8bit (ORCPT ); Wed, 18 Apr 2012 20:14:43 -0400 MIME-Version: 1.0 In-Reply-To: <4F8F57CE.3070705@zytor.com> References: <1329696488-16970-1-git-send-email-hpa@zytor.com> <4F8EFE4D.2040201@zytor.com> <4F8F0385.5090901@zytor.com> <4F8F0614.9010604@zytor.com> <4F8F30F5.9030704@zytor.com> <4F8F52D5.3040109@zytor.com> <4F8F57CE.3070705@zytor.com> Date: Wed, 18 Apr 2012 17:14:42 -0700 Message-ID: Subject: Re: [tip:x86/x32] x32: Fix alignment fail in struct compat_siginfo From: "H.J. Lu" To: "H. Peter Anvin" Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, linux-tip-commits@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 18, 2012 at 5:09 PM, H. Peter Anvin wrote: > On 04/18/2012 04:54 PM, H.J. Lu wrote: >>> >>> We could.  If we want to align the substructures then we need some major >>> surgery to the compat_siginfo handling though. >>> >> >> Since there will be no x32 kernel, align struct siginfo to 8byte for x32 >> will only be for user space code.  It shouldn't be a problem for kernel. >> > > Well, for aligning the whole structure I don't think there is any change > to the kernel at all... > That is true. This is only by user codes to pass 8bye aligned struct siginfo pointer to kernel. -- H.J.