linux_dsm_epyc7002/drivers/infiniband/hw
Shiraz Saleem 41d34865b2 RDMA/mthca: Use correct sizing on buffers holding page DMA addresses
The buffer that holds the page DMA addresses 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 buffer.

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/cxbg: Use correct sizing on buffers holding page DMA addresses 2019-03-28 14:13:27 -03:00
cxgb4 RDMA/cxbg: Use correct sizing on buffers holding page DMA addresses 2019-03-28 14:13:27 -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/mthca: Use correct sizing on buffers holding page DMA addresses 2019-03-28 14:13:27 -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