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, Apr 19, 4:54 PM
Unknown Object (File)
Sun, Apr 7, 12:57 PM
Unknown Object (File)
Mar 10 2024, 2:39 AM
Unknown Object (File)
Jan 29 2024, 1:35 AM
Unknown Object (File)
Jan 26 2024, 7:14 PM
Unknown Object (File)
Jan 26 2024, 7:14 PM
Unknown Object (File)
Jan 26 2024, 7:14 PM
Unknown Object (File)
Jan 25 2024, 6:04 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 Skipped
Unit
Tests Skipped