diff options
author | 2017-04-24 15:15:28 -0700 | |
---|---|---|
committer | 2017-07-17 11:45:07 -0400 | |
commit | 99975cd4fda52974a767aa44fe0b1a8f74950d9d (patch) | |
tree | 1083497346df50890e9d28ec884f7fed36b36e79 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | IB/hfi1: Ensure dd->gi_mask can not be overflowed (diff) | |
download | wireguard-linux-99975cd4fda52974a767aa44fe0b1a8f74950d9d.tar.xz wireguard-linux-99975cd4fda52974a767aa44fe0b1a8f74950d9d.zip |
mlx5: Avoid that mlx5_ib_sg_to_klms() overflows the klms[] array
ib_map_mr_sg() can pass an SG-list to .map_mr_sg() that is larger
than what fits into a single MR. .map_mr_sg() must not attempt to
map more SG-list elements than what fits into a single MR.
Hence make sure that mlx5_ib_sg_to_klms() does not write outside
the MR klms[] array.
Fixes: b005d3164713 ("mlx5: Add arbitrary sg list support")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Cc: Sagi Grimberg <sagi@grimberg.me>
Cc: Leon Romanovsky <leonro@mellanox.com>
Cc: Israel Rukshin <israelr@mellanox.com>
Cc: <stable@vger.kernel.org>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions