aboutsummaryrefslogtreecommitdiffstats
path: root/lib/linear_ranges.c
diff options
context:
space:
mode:
authorChuck Lever <[email protected]>2020-04-20 00:03:05 +0000
committerAnna Schumaker <[email protected]>2020-04-20 14:44:01 +0000
commitbdb2ce82818577ba6e57b7d68b698b8d17329281 (patch)
tree951e3fdca0873b24e24553fa297a6f49d2722f46 /lib/linear_ranges.c
parentxprtrdma: Restore wake-up-all to rpcrdma_cm_event_handler() (diff)
downloadkernel-bdb2ce82818577ba6e57b7d68b698b8d17329281.tar.gz
kernel-bdb2ce82818577ba6e57b7d68b698b8d17329281.zip
xprtrdma: Fix trace point use-after-free race
It's not safe to use resources pointed to by the @send_wr of ib_post_send() _after_ that function returns. Those resources are typically freed by the Send completion handler, which can run before ib_post_send() returns. Thus the trace points currently around ib_post_send() in the client's RPC/RDMA transport are a hazard, even when they are disabled. Rearrange them so that they touch the Work Request only _before_ ib_post_send() is invoked. Fixes: ab03eff58eb5 ("xprtrdma: Add trace points in RPC Call transmit paths") Signed-off-by: Chuck Lever <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'lib/linear_ranges.c')
0 files changed, 0 insertions, 0 deletions