Re: max symlink = 5? ?bug? ?feature deficit?
From: Al Viro
Date: Sun Feb 12 2006 - 16:23:12 EST
On Sun, Feb 12, 2006 at 01:18:51PM -0800, Linda Walsh wrote:
> Al Viro wrote:
> >>Should it be something like Glib's '20' or '255'?
> > 20 or 255 - not feasible (we'll get stack overflow from hell).
> How much stack is used/iteration? It appears we have a local pointer in
> __do_follow_link, and 2 passed parameters/call + call-returns ->5
> pointers/iteration. "Forty" entries would seem to take 200 pointers or
> 800 bytes of stack space? A limit of 20 would use 400 bytes?
Care to RTFS? I mean, really - at least to the point of seeing what's
involved in that recursion.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/