mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steve French <smfrench@austin.rr.com>
To: linux-kernel@vger.kernel.org
Subject: MAX_NESTED_LINKS
Date: Mon, 30 Aug 2004 21:40:28 -0500	[thread overview]
Message-ID: <1093920028.2445.2.camel@smfhome.smfdom> (raw)

MAX_NESTED_LINKS seems to have been set to 5, but the comment in
fs/namei.c indicates a larger number.  Is that intentional?

* This limits recursive symlink follows to 8, while
* limiting consecutive symlinks to 40.
@@ -405,19 +407,30 @@
static inline int do_follow_link(struct dentry *dentry, struct nameidata
*nd)
{
int err = -ELOOP;
if (current->link_count >= MAX_NESTED_LINKS)
	goto loop;
if (current->total_link_count >= 40)
	goto loop;
BUG_ON(nd->depth >= MAX_NESTED_LINKS);


             reply	other threads:[~2004-08-31  2:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-31  2:40 Steve French [this message]
2004-08-31  7:38 ` MAX_NESTED_LINKS Arjan van de Ven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1093920028.2445.2.camel@smfhome.smfdom \
    --to=smfrench@austin.rr.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®