From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759773AbYB2RhQ (ORCPT ); Fri, 29 Feb 2008 12:37:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753935AbYB2RhE (ORCPT ); Fri, 29 Feb 2008 12:37:04 -0500 Received: from smtp1.linux-foundation.org ([207.189.120.13]:34953 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753843AbYB2RhC (ORCPT ); Fri, 29 Feb 2008 12:37:02 -0500 Date: Fri, 29 Feb 2008 09:35:17 -0800 (PST) From: Linus Torvalds To: Peter Zijlstra cc: Michael Kerrisk , aaw , Andrew Morton , michael.kerrisk@gmail.com, carlos@codesourcery.com, Alan Cox , linux-kernel , drepper@redhat.com, mtk.manpages@gmail.com Subject: Re: [RFC/PATCH] RLIMIT_ARG_MAX In-Reply-To: <1204305244.6243.111.camel@lappy> Message-ID: References: <1204119455.6242.403.camel@lappy> <1204305244.6243.111.camel@lappy> User-Agent: Alpine 1.00 (LFD 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 29 Feb 2008, Peter Zijlstra wrote: > > You fail to mention that <23 will still fault the first time it tries to > grow the stack when you set rlimit_stack to 128k and actually supply > 128k of env+arg. So? That's what rlimit_stack has always meant (and not just on Linux either, afaik). That's not a bug, it's a feature. If the system has a limited stack, it has a limited stack. That's what RLIMIT_STACK means. Linus