linux-stable/net/sunrpc/xprtrdma
Steve Wise c91aed9896 svcrdma: handle rdma read with a non-zero initial page offset
The server rdma_read_chunk_lcl() and rdma_read_chunk_frmr() functions
were not taking into account the initial page_offset when determining
the rdma read length.  This resulted in a read who's starting address
and length exceeded the base/bounds of the frmr.

The server gets an async error from the rdma device and kills the
connection, and the client then reconnects and resends.  This repeats
indefinitely, and the application hangs.

Most work loads don't tickle this bug apparently, but one test hit it
every time: building the linux kernel on a 16 core node with 'make -j
16 O=/mnt/0' where /mnt/0 is a ramdisk mounted via NFSRDMA.

This bug seems to only be tripped with devices having small fastreg page
list depths.  I didn't see it with mlx4, for instance.

Fixes: 0bf4828983 ('svcrdma: refactor marshalling logic')
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Tested-by: Chuck Lever <chuck.lever@oracle.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2015-09-29 12:55:44 -04:00
..
fmr_ops.c xprtrdma: Clean up rpcrdma_ia_open() 2015-08-05 16:21:27 -04:00
frwr_ops.c Changes for 4.3 2015-09-09 08:33:31 -07:00
Makefile rpcrdma: Merge svcrdma and xprtrdma modules into one 2015-06-04 16:56:02 -04:00
module.c rpcrdma: Merge svcrdma and xprtrdma modules into one 2015-06-04 16:56:02 -04:00
physical_ops.c xprtrdma: Clean up rpcrdma_ia_open() 2015-08-05 16:21:27 -04:00
rpc_rdma.c xprtrdma: Count RDMA_NOMSG type calls 2015-08-05 16:21:28 -04:00
svc_rdma.c rpcrdma: Merge svcrdma and xprtrdma modules into one 2015-06-04 16:56:02 -04:00
svc_rdma_marshal.c svcrdma: Keep rpcrdma_msg fields in network byte-order 2015-06-04 16:55:59 -04:00
svc_rdma_recvfrom.c svcrdma: handle rdma read with a non-zero initial page offset 2015-09-29 12:55:44 -04:00
svc_rdma_sendto.c svcrdma: Clean up svc_rdma_get_reply_array() 2015-07-20 14:58:47 -04:00
svc_rdma_transport.c Changes for 4.3 2015-09-09 08:33:31 -07:00
transport.c xprtrdma: Count RDMA_NOMSG type calls 2015-08-05 16:21:28 -04:00
verbs.c Changes for 4.3 2015-09-09 08:33:31 -07:00
xprt_rdma.h NFS client updates for Linux 4.3 2015-09-07 14:02:24 -07:00