Page MenuHomeFreeBSD

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

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

Details

Summary

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
created.

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

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

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