Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755585AbbDTV71 (ORCPT ); Mon, 20 Apr 2015 17:59:27 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:35049 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754876AbbDTV7Z (ORCPT ); Mon, 20 Apr 2015 17:59:25 -0400 Date: Mon, 20 Apr 2015 22:59:23 +0100 From: Al Viro To: Linus Torvalds Cc: Neil Brown , Linux Kernel Mailing List , linux-fsdevel Subject: Re: [PATCH 16/24] link_path_walk: kill the recursion Message-ID: <20150420215923.GQ889@ZenIV.linux.org.uk> References: <20150420181222.GK889@ZenIV.linux.org.uk> <1429553588-24764-16-git-send-email-viro@ZenIV.linux.org.uk> <20150420213247.GN889@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 973 Lines: 21 On Mon, Apr 20, 2015 at 02:42:56PM -0700, Linus Torvalds wrote: > On Mon, Apr 20, 2015 at 2:41 PM, Linus Torvalds > wrote: > > > > And no, we will *never* lift the recursion limit. Not for 1kB, not for > > 1MB. Never. > > Just to clarify: that's for the "remove restrictions completely". > Upping it to 32 or 40 would be fine. But not with allocations on the > stack. Yep. There are two restrictions - one on the total amount of symlinks encountered (40), and another on the depth of nesting (8). The latter is due to recursion issues, and with dynamic nd->stack it goes away. The former, of course, stays, for the reasons you've mentioned - it has nothing to do with the depth of recursion. -- 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/