From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752180Ab1BZMqI (ORCPT ); Sat, 26 Feb 2011 07:46:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47304 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752094Ab1BZMqH (ORCPT ); Sat, 26 Feb 2011 07:46:07 -0500 Date: Sat, 26 Feb 2011 13:37:13 +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 2/5] exec: introduce "bool compat" argument Message-ID: <20110226123713.GB4416@redhat.com> References: <20101130200129.GG11905@redhat.com> <20101201182747.GB6143@redhat.com> <20110225175202.GA19059@redhat.com> <20110225175249.GC19059@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 On 02/25, Linus Torvalds wrote: > > On Fri, Feb 25, 2011 at 9:52 AM, Oleg Nesterov wrote: > > No functional changes, preparation to simplify the review. > > I think this is wrong. > > If you introduce the "bool compat" thing, you should also change the > type of the argument pointers to some opaque type at the same time. > It's no longer really a > > const char __user *const __user * > > pointer at that point. Trying to claim it is, is just wrong. The type > suddently becomes conditional on that 'compat' variable. Yes, this is true. And I agree this could be done in more clean way, just we need more changed. Please see the next email. Oleg.