Bugtraq mailing list archives

Re: major security bug in reiserfs (may affect SuSE Linux)


From: Felix von Leitner <leitner () VIM ORG>
Date: Thu, 11 Jan 2001 11:39:58 +0100

Thus spake Christian Zuckschwerdt (Christian.Zuckschwerdt () TRIQ NET):
there are indeed funny things with long filenames:

This may not be a kernel bug after all.
The Linux getdents syscall (which is used to implement readdir) is
called with a buffer and the size of the buffer, so the libc chooses how
large that buffer should be.  My diet libc chooses 1024, which should be
large enough, but of course isn't, when a file system does not enforce
the maximum file name length.

In that case, getdents returns EINVAL.  Can someone please run strace on
ls and see if this is what happens?

Felix


Current thread: