]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfsclient: fix panic in cache_enter_time()
authorRick Macklem <rmacklem@FreeBSD.org>
Sun, 28 Feb 2021 01:54:05 +0000 (17:54 -0800)
committerRick Macklem <rmacklem@FreeBSD.org>
Wed, 3 Mar 2021 16:27:06 +0000 (08:27 -0800)
commit3664067ea91a5484e0f75c9938d559ec1134a565
tree77dc3563b1e757234290f5166018d5038dd7c4b1
parent2d379aed1e5c52956c5257d286a781e9a32e68b3
nfsclient: fix panic in cache_enter_time()

Juraj Lutter (otis@) reported a panic "dvp != vp not true" in
cache_enter_time() called from the NFS client's nfsrpc_readdirplus()
function.
This is specific to an NFSv3 mount with the "rdirplus" mount
option. Unlike NFSv4, NFSv3 replies to ReaddirPlus
includes entries for the current directory.

This trivial patch avoids doing a cache_enter_time()
call for the current directory to avoid the panic.

Approved by: re (gjb)

(cherry picked from commit 3fe2c68ba20fb3365ef91e0b85f88237b5369f38)
sys/fs/nfsclient/nfs_clrpcops.c