NFSv4.2: Deal with potential READ_PLUS data extent buffer overflow
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 8 Dec 2020 14:03:51 +0000 (09:03 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 14 Dec 2020 11:51:08 +0000 (06:51 -0500)
commit7aedc687c9f62e0d22b3231a100030e02344be1a
tree4f5ae1b2bc0dba4cd3a67cd86c988b121022189e
parent503b934a752f7e789a5f33217520e0a79f3096ac
NFSv4.2: Deal with potential READ_PLUS data extent buffer overflow

If the server returns more data than we have buffer space for, then
we need to truncate and exit early.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs42xdr.c