mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix a leak of namei lookup path buffers that occurs when a
ZFS volume is exported via the new NFS server. The leak occurred because the new NFS server code didn't handle the case where a file system sets the SAVENAME flag in its VOP_LOOKUP() and ZFS does this for the DELETE case. Tested by: Oliver Brandmueller (ob at gruft.de), hrs PR: kern/167266 MFC after: 1 month
This commit is contained in:
parent
f502124c06
commit
a607cc6d8e
1 changed files with 4 additions and 0 deletions
|
|
@ -1047,6 +1047,8 @@ nfsvno_removesub(struct nameidata *ndp, int is_v4, struct ucred *cred,
|
|||
else
|
||||
vput(ndp->ni_dvp);
|
||||
vput(vp);
|
||||
if ((ndp->ni_cnd.cn_flags & SAVENAME) != 0)
|
||||
nfsvno_relpathbuf(ndp);
|
||||
NFSEXITCODE(error);
|
||||
return (error);
|
||||
}
|
||||
|
|
@ -1086,6 +1088,8 @@ out:
|
|||
else
|
||||
vput(ndp->ni_dvp);
|
||||
vput(vp);
|
||||
if ((ndp->ni_cnd.cn_flags & SAVENAME) != 0)
|
||||
nfsvno_relpathbuf(ndp);
|
||||
NFSEXITCODE(error);
|
||||
return (error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue