The commit below enforces the requirement that MRs with REMOTE_WRITE must also have LOCAL_WRITE: commit 1c636f801615bdfc9b1d46904e8258c7a025670b Author: Eli Cohen <eli@xxxxxxxxxxxxxxxxxx> Date: Thu Oct 31 15:26:32 2013 +0200 IB/core: Encorce MR access rights rules on kernel consumers Signed-off-by: Steve Wise <swise@xxxxxxxxxxxxxxxxxxxxx> --- net/sunrpc/xprtrdma/verbs.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c index 9b038e1..65ce677 100644 --- a/net/sunrpc/xprtrdma/verbs.c +++ b/net/sunrpc/xprtrdma/verbs.c @@ -1637,7 +1637,8 @@ static int rpcrdma_register_default_external(struct rpcrdma_mr_seg *seg, int *nsegs, int writing, struct rpcrdma_ia *ia) { - int mem_priv = (writing ? IB_ACCESS_REMOTE_WRITE : + int mem_priv = (writing ? IB_ACCESS_REMOTE_WRITE | + IB_ACCESS_LOCAL_WRITE : IB_ACCESS_REMOTE_READ); struct rpcrdma_mr_seg *seg1 = seg; struct ib_phys_buf ipb[RPCRDMA_MAX_DATA_SEGS]; -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html