linux_dsm_epyc7002/drivers/infiniband/hw
Selvin Xavier 5aa8484080 RDMA/bnxt_re: Use correct sizing on buffers holding page DMA addresses
umem->nmap is used while allocating internal buffer for storing
page DMA addresses. This causes out of bounds array access while iterating
the umem DMA-mapped SGL with umem page combining as umem->nmap can be
less than number of system pages in umem.

Use ib_umem_num_pages() instead of umem->nmap to size the page array.
Add a new structure (bnxt_qplib_sg_info) to pass sglist, npages and nmap.

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-03-28 14:13:27 -03:00
..
bnxt_re RDMA/bnxt_re: Use correct sizing on buffers holding page DMA addresses 2019-03-28 14:13:27 -03:00
cxgb3 RDMA: Use __packed annotation instead of __attribute__ ((packed)) 2019-03-25 21:14:12 -03:00
cxgb4 cxgb4: Convert stid_idr to XArray 2019-03-25 20:56:36 -03:00
hfi1 IB/hfi1: Fix two format strings 2019-03-28 11:03:49 -03:00
hns RDMA/hns: Limit scope of hns_roce_cmq_send() 2019-03-27 15:25:50 -03:00
i40iw RDMA/i40iw: Handle workqueue allocation failure 2019-03-27 10:19:07 -03:00
mlx4 mlx4: Convert pv_id_table to XArray 2019-03-26 10:09:54 -03:00
mlx5 IB/mlx5: Declare devx_async_cmd_event_fops static 2019-03-28 10:22:48 -03:00
mthca RDMA: Use __packed annotation instead of __attribute__ ((packed)) 2019-03-25 21:14:12 -03:00
nes RDMA/nes: remove redundant check on udata 2019-03-26 12:07:45 -03:00
ocrdma RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
qedr RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
qib IB/qib: Remove a set-but-not-used variable 2019-03-28 11:03:49 -03:00
usnic RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
vmw_pvrdma RDMA/vmw_pvrdma: Skip zeroing device attrs 2019-03-27 15:30:43 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00