linux_dsm_epyc7002/drivers/infiniband/hw/cxgb4
Shiraz Saleem 5f818d676a RDMA/cxbg: Use correct sizing on buffers holding page DMA addresses
The PBL array that hold the page DMA address is sized off umem->nmap.
This can potentially cause out of bound accesses on the PBL array when
iterating the umem DMA-mapped SGL. This is because if umem pages are
combined, umem->nmap can be much lower than the number of system pages
in umem.

Use ib_umem_num_pages() to size this array.

Cc: Potnuri Bharat Teja <bharat@chelsio.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
..
cm.c cxgb4: Convert stid_idr to XArray 2019-03-25 20:56:36 -03:00
cq.c cxgb4: Convert cqidr to XArray 2019-03-25 15:38:18 -03:00
device.c cxgb4: Convert stid_idr to XArray 2019-03-25 20:56:36 -03:00
ev.c cxgb4: Convert qpidr to XArray 2019-03-25 15:39:18 -03:00
id_table.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
iw_cxgb4.h cxgb4: Convert stid_idr to XArray 2019-03-25 20:56:36 -03:00
Kconfig iw_cxgb4: add INFINIBAND_ADDR_TRANS dependency 2018-06-04 09:35:24 -06:00
Makefile infiniband: prefix header search paths with $(srctree)/ 2019-01-25 15:28:50 -07:00
mem.c RDMA/cxbg: Use correct sizing on buffers holding page DMA addresses 2019-03-28 14:13:27 -03:00
provider.c RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
qp.c cxgb4: Convert qpidr to XArray 2019-03-25 15:39:18 -03:00
resource.c rdma/cxgb4: Add support for kernel mode SRQ's 2018-07-25 21:08:04 -06:00
restrack.c iw_cxgb4: provide detailed driver-specific MR information 2018-05-24 09:39:25 -06:00
t4.h iw_cxgb4: complete the cached SRQ buffers 2019-02-08 17:02:05 -07:00
t4fw_ri_api.h iw_cxgb4: Support FW write completion WR 2018-08-02 20:16:02 -06:00