diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2024-02-05 02:17:09 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-03-01 17:12:27 +0300 |
commit | 773f6c5b72d96be1f8fca0f1f7a58babbb3a9c26 (patch) | |
tree | ef61651f65b401b81e984fcf3e2bdcf74ea1ebbb /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5b9a85899c93430ff5173748fbcb79f28af21388 (diff) | |
download | linux-773f6c5b72d96be1f8fca0f1f7a58babbb3a9c26.tar.xz |
svcrdma: Prevent a UAF in svc_rdma_send()
In some error flow cases, svc_rdma_wc_send() releases @ctxt. Copy
the sc_cid field in @ctxt to a stack variable in order to guarantee
that the value is available after the ib_post_send() call.
In case the new comment looks a little strange, this will be done
with at least one more field in a subsequent patch.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions