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)
Sat, Feb 1, 9:46 AM
Unknown Object (File)
Jan 15 2025, 1:45 PM
Unknown Object (File)
Jan 12 2025, 2:41 PM
Unknown Object (File)
Dec 26 2024, 10:19 AM
Unknown Object (File)
Dec 25 2024, 10:03 PM
Unknown Object (File)
Dec 24 2024, 9:19 PM
Unknown Object (File)
Dec 20 2024, 6:02 PM
Unknown Object (File)
Dec 19 2024, 11:53 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