Page MenuHomeFreeBSD

fix panic "dvp != vp not true" in cache_enter_time()
ClosedPublic

Authored by rmacklem on Feb 27 2021, 4:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 6:02 PM
Unknown Object (File)
Thu, Dec 19, 11:53 AM
Unknown Object (File)
Mon, Dec 9, 5:20 PM
Unknown Object (File)
Nov 17 2024, 4:12 PM
Unknown Object (File)
Nov 17 2024, 12:37 AM
Unknown Object (File)
Oct 24 2024, 5:28 PM
Unknown Object (File)
Sep 28 2024, 7:47 PM
Unknown Object (File)
Sep 28 2024, 5:37 AM
Subscribers
None

Details

Summary

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

This trivial patch avoids doing a cache_enter_time()
call for this case. I assume that cache_enter_time()
should not be called to make an entry for the directory
itself.

Test Plan

Reproduced the problem, then applied the patch
to see that the problem did not recur.

Also had Juraj test the patch and it fixed the
panic() for him.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable