twx-linux/include/linux/sunrpc
Jeff Layton 4c190e2f91 sunrpc: trim off trailing checksum before returning decrypted or integrity authenticated buffer
When GSSAPI integrity signatures are in use, or when we're using GSSAPI
privacy with the v2 token format, there is a trailing checksum on the
xdr_buf that is returned.

It's checked during the authentication stage, and afterward nothing
cares about it. Ordinarily, it's not a problem since the XDR code
generally ignores it, but it will be when we try to compute a checksum
over the buffer to help prevent XID collisions in the duplicate reply
cache.

Fix the code to trim off the checksums after verifying them. Note that
in unwrap_integ_data, we must avoid trying to reverify the checksum if
the request was deferred since it will no longer be present when it's
revisited.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2013-02-08 15:19:10 -05:00
..
addr.h sunrpc: move address copy/cmp/convert routines and prototypes from clnt.h to addr.h 2013-02-05 09:41:14 -05:00
auth_gss.h
auth.h
bc_xprt.h
cache.h svcrpc: Revert "sunrpc/cache.h: replace simple_strtoul" 2012-11-15 07:40:32 -05:00
clnt.h sunrpc: move address copy/cmp/convert routines and prototypes from clnt.h to addr.h 2013-02-05 09:41:14 -05:00
debug.h UAPI: (Scripted) Disintegrate include/linux/sunrpc 2012-10-09 09:49:04 +01:00
gss_api.h
gss_asn1.h
gss_err.h
gss_krb5_enctypes.h
gss_krb5.h
metrics.h
msg_prot.h
rpc_pipe_fs.h
rpc_rdma.h
sched.h SUNRPC: Don't allow low priority tasks to pre-empt higher priority ones 2012-12-06 00:30:53 +01:00
stats.h
svc_rdma.h
svc_xprt.h svcrpc: make svc_xprt_received static 2012-08-21 17:42:01 -04:00
svc.h sunrpc: Fix lockd sleeping until timeout 2013-01-23 18:17:39 -05:00
svcauth_gss.h
svcauth.h
svcsock.h svcrpc: track rpc data length separately from sk_tcplen 2012-12-04 07:49:14 -05:00
timer.h
types.h
xdr.h sunrpc: trim off trailing checksum before returning decrypted or integrity authenticated buffer 2013-02-08 15:19:10 -05:00
xprt.h SUNRPC: Get rid of the redundant xprt->shutdown bit field 2012-09-28 16:03:05 -04:00
xprtrdma.h
xprtsock.h