Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Nov 2017 07:59:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-fs@FreeBSD.org
Subject:   [Bug 223348] Inode number for directories change to inode number of directory two levels up causing hierarchy loop
Message-ID:  <bug-223348-3630-xq8Hkl1J1P@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223348-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223348-3630@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=3D223348

--- Comment #4 from Mateusz Guzik <mjg@FreeBSD.org> ---
wow, that's a fucking retarded bug if i ever seen one. sorry for the
inconvenience.

So to be clear, does this solve the problem for you?

diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 3da1c97..23c80a9 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -1126,7 +1126,8 @@ cache_lookup_nomakeentry(struct vnode *dvp, struct vn=
ode
**vpp,
        uint32_t hash;
        int error;

-       if (cnp->cn_namelen =3D=3D 2 && cnp->cn_nameptr[1] =3D=3D '.') {
+       if (cnp->cn_namelen =3D=3D 2 &&
+           cnp->cn_nameptr[0] =3D=3D '.' && cnp->cn_nameptr[1] =3D=3D '.')=
 {
                counter_u64_add(dotdothits, 1);
                dvlp =3D VP2VNODELOCK(dvp);
                dvlp2 =3D NULL;

--=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-223348-3630-xq8Hkl1J1P>