NFSv4.2: Don't error when exiting early on a READ_PLUS buffer overflow
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 8 Dec 2020 12:51:29 +0000 (07:51 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Jan 2021 13:56:55 +0000 (14:56 +0100)
commit8bcfa178f92a1f7266d86205f9de134fd46f6e1e
tree72a9c9acf8d49a6e87f5061b23c9bcb6c2d2974d
parentef3b9ad967d0bdfb4d18dad4e11279fdbd3256fb
NFSv4.2: Don't error when exiting early on a READ_PLUS buffer overflow

[ Upstream commit 503b934a752f7e789a5f33217520e0a79f3096ac ]

Expanding the READ_PLUS extents can cause the read buffer to overflow.
If it does, then don't error, but just exit early.

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