Re: NFS & long symlinks = stack overflow

From: viro
Date: Sat May 15 2004 - 09:54:02 EST


On Sat, May 15, 2004 at 04:30:28PM +0200, Pascal Schmidt wrote:
> On Sat, 15 May 2004 16:00:21 +0200, you wrote in linux.kernel:
>
> > Lovely. The real limit imposed by client (apparently not enforced, though)
> > is PAGE_CACHE_SIZE - 4 - 1. What are the protocol limits?
>
> None. An NFSv3 server can enforce an arbitrary limit on filename length,
> advertised via PATHCONF, though.

Lovely... How are other clients dealing with that? Put a reasonable
limit on the size and return an error if READLINK brings more than that?
-
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/