]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit26b2b7535d07363bd0cdfefc8489f2032bc87717
tree4f5ae1b2bc0dba4cd3a67cd86c988b121022189e
parentfdcdc630918256e1980adb2e899a3ffb250f3299
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