HomeFreeBSD

Improve sanity checking for the dircount hint argument to

Description

Improve sanity checking for the dircount hint argument to
NFSv3's ReaddirPlus and NFSv4's Readdir operations. The code
checked for a zero argument, but did not check for a very large value.
This patch clips dircount at the server's maximum data size.

MFC after: 1 week

Details

Provenance
rmacklemAuthored on
Parents
rS340662: nfsm_advance() would panic() when the offs argument was negative.
Branches
Unknown
Tags
Unknown