Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754886Ab2BVSOs (ORCPT ); Wed, 22 Feb 2012 13:14:48 -0500 Received: from terminus.zytor.com ([198.137.202.10]:51757 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754088Ab2BVSOp (ORCPT ); Wed, 22 Feb 2012 13:14:45 -0500 Message-ID: <4F453086.8030602@zytor.com> Date: Wed, 22 Feb 2012 10:14:30 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0 MIME-Version: 1.0 To: Arnd Bergmann CC: Linus Torvalds , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de, akpm@linux-foundation.org, hjl.tools@gmail.com Subject: Re: [PATCH 02/30] x86-64: Use explicit sizes in sigcontext.h, prepare for x32 References: <1329696488-16970-1-git-send-email-hpa@zytor.com> <4F419A28.1060903@zytor.com> <201202221222.58399.arnd@arndb.de> In-Reply-To: <201202221222.58399.arnd@arndb.de> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1305 Lines: 34 On 02/22/2012 04:22 AM, Arnd Bergmann wrote: > On Monday 20 February 2012, H. Peter Anvin wrote: >> We are using __u64 as x86-32 compatible since we are sharing most of the >> really complex path (like ioctl) with i386 much more so than x86-64. So >> it is defined in userspace as: >> >> typedef unsigned long long __u64 __attribute__((aligned(4))); >> >> __aligned_u64 obviously is naturally aligned, which matches uint64_t is >> userspace. > > Has someone audited the interfaces to check if there are data structures that > use a plain signed or unsigned "long long" instead of __s64/__u64 in places > where i386 differs from the other compat implementations? > > I found DRM_IOCTL_UPDATE_DRAW, but there could be more like this one. > Has someone audited every single ioctl in the kernel? Definitely not, which is why x32 is marked EXPERIMENTAL. I think it is still time for this work to switch to happening in the upstream, however. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/