linux-stable/net/sunrpc/xprtrdma
Chuck Lever e77340e003 svcrdma: Improve Read chunk sanity checking
Identify malformed transport headers and unsupported chunk
combinations as early as possible.

- Reject RPC-over-RDMA messages that contain more than one Read chunk,
  since this implementation currently does not support more than one
  per RPC transaction.

- Ensure that segment lengths are not crazy.

- Remove the segment count check. With a 1KB inline threshold, the
  largest number of Read segments that can be conveyed is about 40
  (for a RDMA_NOMSG Call message). This is nowhere near
  RPCSVC_MAXPAGES. As far as I can tell, that was just a sanity
  check and does not enforce an implementation limit.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2017-06-28 14:21:43 -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: Refactor management of mw_list field 2017-02-10 14:02:37 -05:00
frwr_ops.c xprtrdma: Refactor management of mw_list field 2017-02-10 14:02:37 -05: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: Squelch ENOBUFS warnings 2017-04-25 16:12:33 -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
svc_rdma_backchannel.c svcrdma: Clean up RPC-over-RDMA backchannel reply processing 2017-04-25 17:25:55 -04:00
svc_rdma_recvfrom.c svcrdma: Improve Read chunk sanity checking 2017-06-28 14:21:43 -04:00
svc_rdma_rw.c svcrdma: Avoid Send Queue overflow 2017-06-28 14:21:43 -04:00
svc_rdma_sendto.c svcrdma: Avoid Send Queue overflow 2017-06-28 14:21:43 -04:00
svc_rdma_transport.c svcrdma: Remove the req_map cache 2017-04-25 17:25:55 -04:00
transport.c xprtrdma: Support unplugging an HCA from under an NFS mount 2017-04-25 16:12:24 -04:00
verbs.c xprtrdma: Annotate receive workqueue 2017-04-25 16:12:31 -04:00
xprt_rdma.h xprtrdma: Remove rpcrdma_buffer::rb_pool 2017-04-25 16:12:35 -04:00