nfsd: Fixes for nfsd4_encode_read_plus_data()
stable inclusion from stable-5.10.11 commit de82ec8e5e8cba33f84ebef26478b636e94a90fb bugzilla: 47621 -------------------------------- [ Upstream commit 72d78717 ] Ensure that we encode the data payload + padding, and that we truncate the preallocated buffer to the actual read size. Fixes: 528b8493 ("NFSD: Add READ_PLUS data support") Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: NChuck Lever <chuck.lever@oracle.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录