commit | de82ec8e5e8cba33f84ebef26478b636e94a90fb | [log] [tgz] |
---|---|---|
author | Trond Myklebust <trond.myklebust@hammerspace.com> | Fri Dec 11 12:26:14 2020 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jan 27 11:55:04 2021 +0100 |
tree | 4f04adcac34ef2a0ce5e79f9050e89492af8f8e7 | |
parent | 8478091a1bd50a59f66a4980fa7e6711c3a02cf1 [diff] |
nfsd: Fixes for nfsd4_encode_read_plus_data() [ Upstream commit 72d78717c6d06adf65d2e3dccc96d9e9dc978593 ] Ensure that we encode the data payload + padding, and that we truncate the preallocated buffer to the actual read size. Fixes: 528b84934eb9 ("NFSD: Add READ_PLUS data support") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>