Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753156Ab1CEV36 (ORCPT ); Sat, 5 Mar 2011 16:29:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60610 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752744Ab1CEV35 (ORCPT ); Sat, 5 Mar 2011 16:29:57 -0500 Date: Sat, 5 Mar 2011 22:20:51 +0100 From: Oleg Nesterov To: Linus Torvalds Cc: Andrew Morton , KOSAKI Motohiro , LKML , linux-mm , pageexec@freemail.hu, Solar Designer , Eugene Teo , Brad Spengler , Roland McGrath , Milton Miller Subject: Re: [PATCH v4 3/4] exec: unify do_execve/compat_do_execve code Message-ID: <20110305212051.GA9937@redhat.com> References: <20110302162650.GA26810@redhat.com> <20110302162712.GB26810@redhat.com> <20110303114952.B94B.A69D9226@jp.fujitsu.com> <20110303154706.GA22560@redhat.com> <20110305203040.GA7546@redhat.com> <20110305203140.GD7546@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1131 Lines: 41 On 03/05, Linus Torvalds wrote: > > Ok, everything looks fine to me. > > Except looking at this, I don't think this part: > > On Sat, Mar 5, 2011 at 12:31 PM, Oleg Nesterov wrote: > > > > ?struct user_arg_ptr { > > - ? ? ? const char __user *const __user *native; > > +#ifdef CONFIG_COMPAT > > + ? ? ? bool is_compat; > > +#endif > > + ? ? ? union { > > + ? ? ? ? ? ? ? const char __user *const __user *native; > > + ? ? ? ? ? ? ? compat_uptr_t __user *compat; > > + ? ? ? } ptr; > > ?}; > > will necessarily even compile on an architecture that doesn't have any > 'compat' support. Aaaaaaaaaaaaaaaaaah, now this is a really good point. > Do we even define 'compat_uptr_t' for that case? I don't think so. Indeed, you are right. What I was thinking about? I do not know. > So I suspect you need two of those annoying #ifdef's. please expect v5 tomorrow. Oleg. -- 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/