linux_dsm_epyc7002/net/sunrpc/xprtrdma
Chuck Lever 96f8778f70 xprtrdma: Add xdr_init_decode to rpcrdma_reply_handler()
Transport header decoding deals with untrusted input data, therefore
decoding this header needs to be hardened.

Adopt the same infrastructure that is used when XDR decoding NFS
replies. This is slightly more CPU-intensive than the replaced code,
but we're not adding new atomics, locking, or context switches. The
cost is manageable.

Start by initializing an xdr_stream in rpcrdma_reply_handler().

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2017-08-08 10:52:00 -04:00
..
backchannel.c xprtrdma: Delete an error message for a failed memory allocation in xprt_rdma_bc_setup() 2017-05-24 07:53:37 -04:00
fmr_ops.c xprtrdma: FMR does not need list_del_init() 2017-07-13 16:00:13 -04:00
frwr_ops.c xprtrdma: Fix documenting comments in frwr_ops.c 2017-07-13 16:00:13 -04:00
Makefile svcrdma: Remove svc_rdma_marshal.c 2017-06-28 14:21:43 -04:00
module.c rpcrdma: Merge svcrdma and xprtrdma modules into one 2015-06-04 16:56:02 -04:00
rpc_rdma.c xprtrdma: Add xdr_init_decode to rpcrdma_reply_handler() 2017-08-08 10:52:00 -04:00
svc_rdma_backchannel.c sunrpc: Const-ify all instances of struct rpc_xprt_ops 2017-08-01 16:10:35 -04:00
svc_rdma_recvfrom.c svcrdma: Properly compute .len and .buflen for received RPC Calls 2017-07-12 15:54:57 -04:00
svc_rdma_rw.c svcrdma: Remove svc_rdma_chunk_ctxt::cc_dir field 2017-07-12 15:55:00 -04:00
svc_rdma_sendto.c svcrdma: fix an incorrect check on -E2BIG and -EINVAL 2017-07-13 14:18:47 -04:00
svc_rdma_transport.c svcrdma: Clean up after converting svc_rdma_recvfrom to rdma_rw API 2017-07-12 15:54:59 -04:00
svc_rdma.c svcrdma: Reduce size of sge array in struct svc_rdma_op_ctxt 2017-04-25 17:25:55 -04:00
transport.c sunrpc: Const-ify all instances of struct rpc_xprt_ops 2017-08-01 16:10:35 -04:00
verbs.c xprtrdma: Add xdr_init_decode to rpcrdma_reply_handler() 2017-08-08 10:52:00 -04:00
xprt_rdma.h xprtrdma: Add xdr_init_decode to rpcrdma_reply_handler() 2017-08-08 10:52:00 -04:00