diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-11-30 13:01:37 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2024-12-10 11:16:18 -0400 |
commit | bd96a3935e89486304461a21752f824fc25e0f0b (patch) | |
tree | cd2fdda1ecc1900598a857bcca62ec556ebed13e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fbef60de6c753253e1337ea60cf818d079108974 (diff) |
rdma/cxgb4: Prevent potential integer overflow on 32bit
The "gl->tot_len" variable is controlled by the user. It comes from
process_responses(). On 32bit systems, the "gl->tot_len + sizeof(struct
cpl_pass_accept_req) + sizeof(struct rss_header)" addition could have an
integer wrapping bug. Use size_add() to prevent this.
Fixes: 1cab775c3e75 ("RDMA/cxgb4: Fix LE hash collision bug for passive open connection")
Link: https://patch.msgid.link/r/86b404e1-4a75-4a35-a34e-e3054fa554c7@stanley.mountain
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions