Date: Wed, 14 May 2025 23:10:26 +0000 From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 286796] [nfs] [panic] Kernel panics while working as NFS server Message-ID: <bug-286796-7501-3pGoSDa8Ln@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-286796-7501@https.bugs.freebsd.org/bugzilla/> References: <bug-286796-7501@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=3D286796 --- Comment #12 from Konstantin Belousov <kib@FreeBSD.org> --- The kgdb trace is indeed useful. I see that the issue came from e4c7b2b6053f2. Please try the following change. commit aa52aeb2f2ad00d89649d16474d1fab8196de9fe Author: Konstantin Belousov <kib@FreeBSD.org> Date: Thu May 15 02:07:47 2025 +0300 nfs server: only cn_pnbuf is initialized in nfsrvd_lookup() PR: 286796 diff --git a/sys/fs/nfsserver/nfs_nfsdserv.c b/sys/fs/nfsserver/nfs_nfsdser= v.c index a855d6548265..b26fc59bcd6d 100644 --- a/sys/fs/nfsserver/nfs_nfsdserv.c +++ b/sys/fs/nfsserver/nfs_nfsdserv.c @@ -628,8 +628,8 @@ nfsrvd_lookup(struct nfsrv_descript *nd, __unused int isdgram, } if (!nd->nd_repstat) { /* Don't set OPENNAMED for Lookupp (".."). */ - if (cnp->cn_namelen =3D=3D 2 && *cnp->cn_nameptr =3D=3D '.'= && - *(cnp->cn_nameptr + 1) =3D=3D '.') + if (cnp->cn_namelen =3D=3D 2 && *cnp->cn_pnbuf =3D=3D '.' && + *(cnp->cn_pnbuf + 1) =3D=3D '.') cnp->cn_flags &=3D ~OPENNAMED; nd->nd_repstat =3D nfsvno_namei(nd, &named, dp, 0, exp, &di= rp); } else { --=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-286796-7501-3pGoSDa8Ln>
