xprtrdma: Harden chunk list encoding against send buffer overflow
authorChuck Lever <chuck.lever@oracle.com>
Thu, 10 Aug 2017 16:47:36 +0000 (12:47 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 11 Aug 2017 17:20:08 +0000 (13:20 -0400)
commit39f4cd9e9982f97a52033579bf996bb74c644c08
tree961c6aff0ef3ed32bd58afca4bb3520b712c8d33
parent7a80f3f0ddf1d7814ac44728f56b6fbba5837703
xprtrdma: Harden chunk list encoding against send buffer overflow

While marshaling chunk lists which are variable-length XDR objects,
check for XDR buffer overflow at every step. Measurements show no
significant changes in CPU utilization.

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