summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJacob Moroni <jmoroni@google.com>2026-07-13 17:12:53 +0000
committerLeon Romanovsky <leon@kernel.org>2026-07-20 09:45:43 -0400
commit91a74a238631ef7b7c6bda17328014ab7160c888 (patch)
treeab2d4af3f06ce4e357b1d3aecc2de422280c817f /tools/perf/scripts/python
parent9b5261a23389ee6e224da6306658aac8abfda281 (diff)
RDMA/irdma: Clear udata response buffers where necessary
Methods that may accept udata input but do not provide a udata response should use the ib_respond_empty_udata() helper to ensure that user response buffers are cleared. Since the ib_respond_empty_udata() call itself can fail if the user intentionally provides a bogus output buffer, it is called at the beginning of the method to fail early before mutating any state that would be difficult to unwind. Additionally, add missing bounds validation for udata->outlen in irdma_create_srq() to ensure it is large enough to hold the response struct as per its original (and so far, only) definition. Signed-off-by: Jacob Moroni <jmoroni@google.com> Link: https://patch.msgid.link/20260713171257.3131493-3-jmoroni@google.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions