Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Jan 2025 20:53:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 283965] nfs: page fault during nfsrpc_readdir
Message-ID:  <bug-283965-227-248VaNBvKT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-283965-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-283965-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283965

--- Comment #1 from Alan Somers <asomers@FreeBSD.org> ---
I've determined that the cause of the failure in nfscl_invalidfname is beca=
use
my test fuse file system includes the NUL character in its readdir entries.=
=20
That is, it replies something like this:

        ents[0].d_namlen =3D 3;
        ents[0].d_name =3D "..";
        ents[1].d_namlen =3D 2;
        ents[1].d_name =3D ".";

I can and will fix that in the tests.  But I can't guarantee that other fuse
file systems won't do the same.  Even if I have fusefs sanitize these strin=
gs
in-kernel, other file systems might do the same.  For example, I see that e=
xt2
trusts the on-disk data, and copies it into a dirent without sanitizing it.=
  So
NFS must be able to handle that.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283965-227-248VaNBvKT>