xprtrdma: rpcrdma_inline_fixup() overruns the receive page list
authorChuck Lever <chuck.lever@oracle.com>
Wed, 29 Jun 2016 17:54:33 +0000 (13:54 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 11 Jul 2016 19:50:43 +0000 (15:50 -0400)
commit80414abc2848f43690c8402a77d37710ad0020c2
treea77653463f055ec9662c6a565a78fe273c162985
parent5ab8142839c714ed5ac9a9de1846ab71f87a3ed7
xprtrdma: rpcrdma_inline_fixup() overruns the receive page list

When the remaining length of an incoming reply is longer than the
XDR buf's page_len, switch over to the tail iovec instead of
copying more than page_len bytes into the page list.

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