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 Nov 20 2018, 1:59 AM
Parents
rG778f29833b3f: nfsm_advance() would panic() when the offs argument was negative.
Branches
Unknown
Tags
Unknown

Event Timeline