SUNRPC: Use xdr_stream to encode replies in server-side GSS upcall helpers
authorChuck Lever <chuck.lever@oracle.com>
Sun, 8 Jan 2023 16:30:22 +0000 (11:30 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 20 Feb 2023 14:20:28 +0000 (09:20 -0500)
commitb2f42f1d999d2b5f33de4b7cba052e356a8e28c2
tree8f92b935bdf2895241206a1514bd90aed90e68cc
parent7bb0dfb2234725ba085cacfd35f34c187def92b2
SUNRPC: Use xdr_stream to encode replies in server-side GSS upcall helpers

This code constructs replies to the decorated NULL procedure calls
that establish GSS contexts. Convert this code path to use struct
xdr_stream to encode such responses.

Done as part of hardening the server-side RPC header encoding path.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/auth_gss/svcauth_gss.c