SUNRPC: Use struct xdr_stream when decoding RPC Reply header
mainline inclusion from mainline-v5.1-rc1 commit a0584ee9aed805446b044ce855e67264f0dc619e category: bugfix bugzilla: 13061 CVE: NA ----------------------------------------------- Modernize and harden the code path that parses an RPC Reply message. Signed-off-by: NChuck Lever <chuck.lever@oracle.com> Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com> Conflict: include/linux/sunrpc/auth.h include/linux/sunrpc/xdr.h net/sunrpc/auth.c net/sunrpc/auth_gss/auth_gss.c net/sunrpc/auth_null.c net/sunrpc/clnt.c Partly merged because it can fix xfstests generic/095 failed with WARN_ON when call_decode. eb90a16e9087 ("SUNRPC: rpc_decode_header() must always return a non-zero value on error") is not needed because we not merge the code: error = rpcauth_checkverf(task, xdr) Signed-off-by: NZhangXiaoxu <zhangxiaoxu5@huawei.com> Reviewed-by: Nyangerkun <yangerkun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录