[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#608428: [buildd-tools-devel] Bug#608428: Bug#608428: schroot: [kfreebsd-*] cannot handle long (>= 14 chars) chroot names



severity 608428 important
user debian-bsd@lists.debian.org
usertag 608428 + kfreebsd
--

So, this looks like a bug in the mount/umount utilities and/or the
kfreebsd mount/nmount/umount system calls.

Possible explanation: there's an 80 char buffer being used which causes
the truncation.  The syscall manual pages tell us that there's a 1023
character restriction with 255 chars per path component.  We're nowhere
near that documented limit, so there's a serious bug somewhere.

I'm not a freebsd user or developer.  I've identified the cause of the
problem, and it's not in schroot.  This really needs the attention of
some freebsd people who can fix the length restrictions, I've
realistically done all I am able.

Many thanks for this.

I've reassigned this to freebsd-utils, which is the most likely place
for the bug to be.  I've also put the severity to serious, since this
is a fundamental and dangerous flaw in a key system component which
can and is causing breakage.  It would be good if this could be
fixed for squeeze.

There is a system limit in

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/mount.h

#define MNAMELEN        88              /* size of on/from name bufs */

We cannot do much with this limit :-(

Petr





Reply to: