linux/net/sunrpc/xprtrdma
Chuck Lever 7638e0bfae SUNRPC: Move fault injection call sites
I've hit some crashes that occur in the xprt_rdma_inject_disconnect
path. It appears that, for some provides, rdma_disconnect() can
take so long that the transport can disconnect and release its
hardware resources while rdma_disconnect() is still running,
resulting in a UAF in the provider.

The transport's fault injection method may depend on the stability
of transport data structures. That means it needs to be invoked
only from contexts that hold the transport write lock.

Fixes: 4a06825839 ("SUNRPC: Transport fault injection")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
2021-04-14 09:36:29 -04:00
..
backchannel.c rpcrdma: Fix comments about reverse-direction operation 2021-02-05 11:16:56 -05:00
frwr_ops.c xprtrdma: Refactor invocations of offset_in_page() 2021-02-05 11:16:56 -05:00
Makefile svcrdma: Add a "parsed chunk list" data structure 2020-11-30 13:00:22 -05:00
module.c SUNRPC: xprt_load_transport() needs to support the netid "rdma6" 2020-12-02 14:05:52 -05:00
rpc_rdma.c xprtrdma: Clean up rpcrdma_prepare_readch() 2021-02-05 15:54:03 -05:00
svc_rdma_backchannel.c svcrdma: disable timeouts on rdma backchannel 2021-03-06 16:41:48 -05:00
svc_rdma_pcl.c svcrdma: Add a "parsed chunk list" data structure 2020-11-30 13:00:22 -05:00
svc_rdma_recvfrom.c svcrdma: Revert "svcrdma: Reduce Receive doorbell rate" 2021-03-11 15:26:07 -05:00
svc_rdma_rw.c svcrdma: Restore read and write stats 2021-01-25 09:36:28 -05:00
svc_rdma_sendto.c svcrdma: Convert rdma_stat_sq_starve to a per-CPU counter 2021-01-25 09:36:28 -05:00
svc_rdma_transport.c svcrdma: Hold private mutex while invoking rdma_accept() 2021-02-15 10:45:00 -05:00
svc_rdma.c svcrdma: Deprecate stat variables that are no longer used 2021-01-25 09:36:28 -05:00
transport.c SUNRPC: Move fault injection call sites 2021-04-14 09:36:29 -04:00
verbs.c xprtrdma: Move rpcrdma_mr_put() 2020-11-11 10:52:18 -05:00
xprt_rdma.h rpcrdma: Fix comments about reverse-direction operation 2021-02-05 11:16:56 -05:00