summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/verbs.c
diff options
context:
space:
mode:
authorTom Tucker2011-02-09 20:45:28 +0100
committerTrond Myklebust2011-03-11 21:39:27 +0100
commitbd7ea31b9e8a342be76e0fe8d638343886c2d8c5 (patch)
treebc56c61372dcd6ff08cca605f4eb7359ce025048 /net/sunrpc/xprtrdma/verbs.c
parentNFSv4: Send unmapped uid/gids to the server when using auth_sys (diff)
downloadkernel-qcow2-linux-bd7ea31b9e8a342be76e0fe8d638343886c2d8c5.tar.gz
kernel-qcow2-linux-bd7ea31b9e8a342be76e0fe8d638343886c2d8c5.tar.xz
kernel-qcow2-linux-bd7ea31b9e8a342be76e0fe8d638343886c2d8c5.zip
RPCRDMA: Fix to XDR page base interpretation in marshalling logic.
The RPCRDMA marshalling logic assumed that xdr->page_base was an offset into the first page of xdr->page_list. It is in fact an offset into the xdr->page_list itself, that is, it selects the first page in the page_list and the offset into that page. The symptom depended in part on the rpc_memreg_strategy, if it was FRMR, or some other one-shot mapping mode, the connection would get torn down on a base and bounds error. When the badly marshalled RPC was retransmitted it would reconnect, get the error, and tear down the connection again in a loop forever. This resulted in a hung-mount. For the other modes, it would result in silent data corruption. This bug is most easily reproduced by writing more data than the filesystem has space for. This fix corrects the page_base assumption and otherwise simplifies the iov mapping logic. Signed-off-by: Tom Tucker <tom@ogc.us> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/verbs.c')
0 files changed, 0 insertions, 0 deletions