diff options
author | Philipp Stanner <pstanner@redhat.com> | 2023-11-02 20:13:09 +0100 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-11-13 10:21:33 +0200 |
commit | c170d4ff21a8a525d782e3d1bc58d9538d95afe6 (patch) | |
tree | 306432a287d74b2d41ed82a4df6a6ae3c6e7d274 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 476b7c7e00ec3d909bacaeaf1dc53eb2b2d0c41d (diff) |
RDMA/hfi1: Copy userspace arrays safely
Currently, memdup_user() is utilized at two positions to copy userspace
arrays. This is done without overflow checks.
Use the new wrapper memdup_array_user() to copy the arrays more safely.
Suggested-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Link: https://lore.kernel.org/r/20231102191308.52046-2-pstanner@redhat.com
Acked-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions