summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_bus.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-11-30 06:56:15 +0000
committerdillon <dillon@FreeBSD.org>1999-11-30 06:56:15 +0000
commit679b553dfa3bff9c4f61583330de3dcc30c5167d (patch)
treef2820dde0b12799fb5f43c84ec0c25e80a9fea50 /sys/kern/subr_bus.c
parent3c1a09eca379aa495e106a062c015cdf1e4b0d01 (diff)
downloadFreeBSD-src-679b553dfa3bff9c4f61583330de3dcc30c5167d.zip
FreeBSD-src-679b553dfa3bff9c4f61583330de3dcc30c5167d.tar.gz
The symlink implementation could improperly return a NULL vp along with
a 0 error code. The problem occured with NFSv2 mounts and also with any NFSv3 mount returning an EEXIST error (which is translated to 0 prior to return). The reply to the rpc only contains the file handle for the no-error case under NFSv3. The error case under NFSv3 and all cases under NFSv2 do *not* return the file handle. The fix is to do a secondary lookup to obtain the file handle and thus be able to generate a return vnode for the situations where the rpc reply does not contain the required information. The bug was originally introduced when VOP_SYMLINK semantics were changed for -CURRENT. The NFS symlink implementation was not properly modified to go along with the change despite the fact that three people reviewed the code. It took four attempts to get the current fix correct with five people. Is NFS obfuscated? Ha! Reviewed by: Alfred Perlstein <bright@wintelcom.net> Testing and Discussion: "Viren R.Shah" <viren@rstcorp.com>, Eivind Eklund <eivind@FreeBSD.ORG>, Ian Dowse <iedowse@maths.tcd.ie>
Diffstat (limited to 'sys/kern/subr_bus.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud