linux/drivers/infiniband/hw/cxgb3
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
..
cxio_hal.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
cxio_hal.h IB/cxgb3: remove cxio_dbg.c 2018-02-14 16:21:15 -07:00
cxio_resource.c cxgb3: Convert PDBG to pr_debug 2017-04-20 16:13:20 -04:00
cxio_resource.h
cxio_wr.h RDMA: Use __packed annotation instead of __attribute__ ((packed)) 2019-03-25 21:14:12 -03:00
iwch_cm.c Merge branch 'timer_setup' into for-next 2017-10-18 13:12:09 -04:00
iwch_cm.h cxgb3: Convert PDBG to pr_debug 2017-04-20 16:13:20 -04:00
iwch_cq.c RDMA/cxgb3: Make iwch_poll_cq_one() easier to analyze 2018-07-09 12:55:28 -06:00
iwch_ev.c cxgb3: Convert qpidr to XArray 2019-03-25 15:35:08 -03:00
iwch_mem.c cxgb3: Convert mmidr to XArray 2019-03-25 15:36:29 -03:00
iwch_provider.c RDMA/cxbg: Use correct sizing on buffers holding page DMA addresses 2019-03-28 14:13:27 -03:00
iwch_provider.h RDMA, core and ULPs: Declare ib_post_send() and ib_post_recv() arguments const 2018-07-30 20:09:34 -06:00
iwch_qp.c RDMA, core and ULPs: Declare ib_post_send() and ib_post_recv() arguments const 2018-07-30 20:09:34 -06:00
iwch.c cxgb3: Convert mmidr to XArray 2019-03-25 15:36:29 -03:00
iwch.h cxgb3: Convert mmidr to XArray 2019-03-25 15:36:29 -03:00
Kconfig IB/cxgb3: remove cxio_dbg.c 2018-02-14 16:21:15 -07:00
Makefile infiniband: prefix header search paths with $(srctree)/ 2019-01-25 15:28:50 -07:00
tcb.h