Page MenuHomeFreeBSD

add safetybelt checks for cache_enter_time() when an NFS server sends a bogus reply

Authored by rmacklem on Feb 28 2021, 3:55 PM.



D28969 dealt with a panic in cache_enter_time() where
the vnode referred to the directory.
It would also be possible to get these panics if a broken
NFS server were to return the directory as an new object being

This patch adds checks to avoid the panics and logs
messages to indicate that the server is broken.

Test Plan

Ran connectathon test suite for various mount options.

Diff Detail

rG FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

rmacklem created this revision.
This revision is now accepted and ready to land.Feb 28 2021, 6:42 PM