Date: Wed, 13 Dec 2000 08:42:53 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: imp@village.org (Warner Losh) Cc: des@ofug.org (Dag-Erling Smorgrav), assar@FreeBSD.ORG, dillon@earth.backplane.com (Matt Dillon), kris@citusc.usc.edu, arch@FreeBSD.ORG Subject: Re: Safe string formatting in the kernel Message-ID: <200012130842.BAA26666@usr08.primenet.com> In-Reply-To: <200012121825.LAA31285@harmony.village.org> from "Warner Losh" at Dec 12, 2000 11:25:03 AM
next in thread | previous in thread | raw e-mail | index | archive | help
> Just be careful that your dynamic string growing things don't violate > the hard limit invariants in the kernel. If it produces paths longer > than 1023 characters, for example, it is wrong. Actually, this is rather broken already in the symlink following code in the lookup code, since it expands links in place with the rest of the path components, instead of properly traversing them. So the limit there is less than 1023 for some intermediate component of a path being a (large) symlink. I think the only path lengths you need to worry about are those which ware externalized into user space. This is primarily the "readlink" and mount code statuts reporting, etc.., so it's not much of a real problem. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012130842.BAA26666>