FreeBSD Bugzilla – Attachment 233180 Details for
Bug 260300
SECINFO_NO_NAME with PARENT and a file crashes NFS v4 server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
check for a VDIR vnode for secinfo_name/parent
secnoname.patch (text/plain), 550 bytes, created by
Rick Macklem
on 2022-04-12 23:48:12 UTC
(
hide
)
Description:
check for a VDIR vnode for secinfo_name/parent
Filename:
MIME Type:
Creator:
Rick Macklem
Created:
2022-04-12 23:48:12 UTC
Size:
550 bytes
patch
obsolete
>--- sys/fs/nfsserver/nfs_nfsdserv.c.notdir 2022-04-12 15:55:50.950310000 -0700 >+++ sys/fs/nfsserver/nfs_nfsdserv.c 2022-04-12 16:07:18.558405000 -0700 >@@ -3822,6 +3822,11 @@ nfsrvd_secinfononame(struct nfsrv_descript *nd, int is > fhstyle = fxdr_unsigned(int, *tl); > switch (fhstyle) { > case NFSSECINFONONAME_PARENT: >+ if (dp->v_type != VDIR) { >+ vput(dp); >+ nd->nd_repstat = NFSERR_NOTDIR; >+ goto nfsmout; >+ } > NFSNAMEICNDSET(&named.ni_cnd, nd->nd_cred, LOOKUP, > LOCKLEAF | SAVESTART); > nfsvno_setpathbuf(&named, &bufp, &hashp);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 260300
:
230004
| 233180