linux_dsm_epyc7002/drivers/infiniband/hw/bnxt_re
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.h RDMA/bnxt_re: Add chip context to identify 57500 series 2019-02-07 13:24:48 -07:00
hw_counters.c RDMA/bnxt_re: Report out of sequence hw counters 2018-10-16 00:03:50 -06:00
hw_counters.h RDMA/bnxt_re: Report out of sequence hw counters 2018-10-16 00:03:50 -06:00
ib_verbs.c RDMA/bnxt_re: Use correct sizing on buffers holding page DMA addresses 2019-03-28 14:13:27 -03:00
ib_verbs.h RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
Kconfig drivers: infiniband: Fix whitespace in kconfig 2019-03-26 12:49:33 -03:00
main.c RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
Makefile infiniband: prefix header search paths with $(srctree)/ 2019-01-25 15:28:50 -07:00
qplib_fp.c RDMA/bnxt_re: Use correct sizing on buffers holding page DMA addresses 2019-03-28 14:13:27 -03:00
qplib_fp.h RDMA/bnxt_re: Use correct sizing on buffers holding page DMA addresses 2019-03-28 14:13:27 -03:00
qplib_rcfw.c RDMA/bnxt_re: Use correct sizing on buffers holding page DMA addresses 2019-03-28 14:13:27 -03:00
qplib_rcfw.h RDMA/bnxt_re: Add 64bit doorbells for 57500 series 2019-02-07 13:24:48 -07:00
qplib_res.c RDMA/bnxt_re: Use correct sizing on buffers holding page DMA addresses 2019-03-28 14:13:27 -03:00
qplib_res.h RDMA/bnxt_re: Use correct sizing on buffers holding page DMA addresses 2019-03-28 14:13:27 -03:00
qplib_sp.c RDMA/bnxt_re: Use correct sizing on buffers holding page DMA addresses 2019-03-28 14:13:27 -03:00
qplib_sp.h RDMA/bnxt_re: Make use of destroy AH sleepable flag 2018-12-19 16:28:04 -07:00
roce_hsi.h RDMA/bnxt_re: Add extended psn structure for 57500 adapters 2019-02-07 13:24:48 -07:00