Page MenuHomeFreeBSD

nfs_clrpcops.c: Add sanity checks for the slot cnt
ClosedPublic

Authored by rmacklem on Sun, Oct 26, 3:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 3, 8:42 PM
Unknown Object (File)
Sun, Nov 2, 9:46 AM
Unknown Object (File)
Sun, Nov 2, 9:46 AM
Unknown Object (File)
Thu, Oct 30, 2:01 AM
Unknown Object (File)
Thu, Oct 30, 2:01 AM
Unknown Object (File)
Thu, Oct 30, 2:01 AM
Unknown Object (File)
Thu, Oct 30, 2:00 AM
Unknown Object (File)
Wed, Oct 29, 11:11 AM
Subscribers

Details

Summary

The reply to CreateSession includes the slot cnt for
both fore and back slots. It should never be larger
than the argument specified and the fore slot cnt
should always be at least 1.

Without this patch, the replied slot cnts were not
being sanity checked.

While here, replace 64 with NFSV4_SLOTS (which is 64).

Test Plan

Tested for an NFSv4.2 mount with debug logging
enabled, so see that the replied slot cnts were
reasonable.
(Invalid slot cnts were not tested.)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable