xprtrdma: Replace rpcrdma_count_chunks()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 3 Aug 2017 18:30:27 +0000 (14:30 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 8 Aug 2017 14:52:00 +0000 (10:52 -0400)
commit264b0cdbcb93e6d7b419fcc82fca9413a13f87ae
treeb156eb629008797dd844322fe3b9a3f259ddc1d0
parent07ff2dd510d8c5b1166827df7686036283be10e0
xprtrdma: Replace rpcrdma_count_chunks()

Clean up chunk list decoding by using the xdr_stream set up in
rpcrdma_reply_handler. This hardens decoding by checking for buffer
overflow at every step while unmarshaling variable-length XDR
objects.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c