linux/drivers/infiniband/sw/rxe
Shiraz Saleem 93923d309b RDMA/rxe: 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.

Cc: Moni Shoua <monis@mellanox.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
..
Kconfig
Makefile
rxe.c rdma_rxe: Use netlink messages to add/delete links 2019-02-19 20:52:19 -07:00
rxe.h rdma_rxe: Use netlink messages to add/delete links 2019-02-19 20:52:19 -07:00
rxe_av.c RDMA/rxe: Improve loopback marking 2019-02-04 15:57:49 -07:00
rxe_comp.c IB/rxe: Remove unnecessary rxe variable 2019-01-21 16:46:08 -07:00
rxe_cq.c
rxe_hdr.h RDMA: Use __packed annotation instead of __attribute__ ((packed)) 2019-03-25 21:14:12 -03:00
rxe_hw_counters.c
rxe_hw_counters.h
rxe_icrc.c
rxe_loc.h RDMA/rxe: Use driver_unregister and new unregistration API 2019-02-19 20:52:18 -07:00
rxe_mcast.c
rxe_mmap.c
rxe_mr.c RDMA/rxe: Use correct sizing on buffers holding page DMA addresses 2019-03-28 14:13:27 -03:00
rxe_net.c IB/rxe: Replace av->network_type with skb->protocol 2019-03-27 16:23:09 -03:00
rxe_net.h rdma_rxe: Use netlink messages to add/delete links 2019-02-19 20:52:19 -07:00
rxe_opcode.c
rxe_opcode.h
rxe_param.h rdma_rxe: Use netlink messages to add/delete links 2019-02-19 20:52:19 -07:00
rxe_pool.c RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
rxe_pool.h RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
rxe_qp.c IB/{hw,sw}: Remove 'uobject->context' dependency in object creation APIs 2019-02-15 15:38:38 -07:00
rxe_queue.c
rxe_queue.h
rxe_recv.c IB/rxe: Remove unnecessary rxe variable 2019-01-21 16:46:08 -07:00
rxe_req.c
rxe_resp.c IB/rxe: Remove unnecessary rxe variable 2019-01-21 16:46:08 -07:00
rxe_srq.c
rxe_sysfs.c rdma_rxe: Use netlink messages to add/delete links 2019-02-19 20:52:19 -07:00
rxe_task.c
rxe_task.h
rxe_verbs.c RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
rxe_verbs.h RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00