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
F102775718: D28969.id.diff
Sun, Nov 17, 12:37 AM
Unknown Object (File)
Thu, Oct 24, 5:28 PM
Unknown Object (File)
Sep 28 2024, 7:47 PM
Unknown Object (File)
Sep 28 2024, 5:37 AM
Unknown Object (File)
Sep 28 2024, 3:15 AM
Unknown Object (File)
Sep 24 2024, 8:42 AM
Unknown Object (File)
Sep 8 2024, 10:19 PM
Unknown Object (File)
Sep 3 2024, 3:26 PM
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