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.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 10, 12:37 PM
Unknown Object (File)
Wed, Nov 27, 11:21 PM
Unknown Object (File)
Oct 16 2024, 8:35 AM
Unknown Object (File)
Oct 15 2024, 1:06 PM
Unknown Object (File)
Oct 4 2024, 9:12 PM
Unknown Object (File)
Oct 4 2024, 2:01 AM
Unknown Object (File)
Oct 2 2024, 4:21 AM
Unknown Object (File)
Oct 2 2024, 12:00 AM
Subscribers
None

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 Not Applicable
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