From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755680AbYCAIzw (ORCPT ); Sat, 1 Mar 2008 03:55:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750850AbYCAIzn (ORCPT ); Sat, 1 Mar 2008 03:55:43 -0500 Received: from postman.opengroup.org ([192.153.166.6]:38173 "EHLO postman.opengroup.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750765AbYCAIzm (ORCPT ); Sat, 1 Mar 2008 03:55:42 -0500 X-Greylist: delayed 722 seconds by postgrey-1.27 at vger.kernel.org; Sat, 01 Mar 2008 03:55:42 EST Date: Sat, 1 Mar 2008 08:42:21 +0000 From: Geoff Clare To: Michael Kerrisk Cc: Peter Zijlstra , Linus Torvalds , aaw , Andrew Morton , carlos@codesourcery.com, Alan Cox , linux-kernel , drepper@redhat.com, mtk.manpages@gmail.com Subject: Re: [RFC/PATCH] RLIMIT_ARG_MAX Message-ID: <20080301084221.GA20618@squonk.masqnet> References: <1204119455.6242.403.camel@lappy> <1204305244.6243.111.camel@lappy> <1204307756.6243.121.camel@lappy> <47C84C6C.2000201@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47C84C6C.2000201@gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (postman.opengroup.org [192.153.166.6]); Sat, 01 Mar 2008 08:42:35 +0000 (GMT) X-Authenticated-Sender: user gwc from 217.155.142.121 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michael Kerrisk wrote, on 29 Feb 2008: > > My reading of POSIX.1 (and POSIX doesn't seem very explicit on this > point), is that the limits on argv+environ and on stack are decoupled, > since POSIX specifies RLIMIT_STACK and sysconf(_SC_ARG_MAX) and doesn't > specify any relationship between the two. POSIX doesn't specify any relationship between them because (as far as POSIX is concerned) they are limits on entirely different things. sysconf(_SC_ARG_MAX) is a limit on how much arg+env a process can _pass_ to the exec*() functions. The RLIMIT_* limits are limits on the process itself. -- Geoff Clare The Open Group, Thames Tower, Station Road, Reading, RG1 1LX, England