diff options
author | Shiraz Saleem <[email protected]> | 2021-06-25 11:23:28 -0500 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2021-06-25 14:08:30 -0300 |
commit | 46308965ae6fdc7c25deb2e8c048510ae51bbe66 (patch) | |
tree | 676f1721fc30843bde5abf55967a8504b2b7b872 /lib/test_overflow.c | |
parent | 36941dfe0e8c3e2da7851b9648fd74bd3a3e78ce (diff) |
RDMA/irdma: Check contents of user-space irdma_mem_reg_req object
The contents of user-space req object is used in array indexing in
irdma_handle_q_mem without checking for valid values.
Guard against bad input on each of these req object pages by limiting them
to number of pages that make up the region.
Link: https://lore.kernel.org/r/[email protected]
Reported-by: coverity-bot <[email protected]>
Addresses-Coverity-ID: 1505160 ("TAINTED_SCALAR")
Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs")
Signed-off-by: Shiraz Saleem <[email protected]>
Signed-off-by: Tatyana Nikolova <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions