linux/drivers/infiniband/hw
Maor Gottlieb ca991a7d14 RDMA/mlx5: Assign dev to DM MR
Currently, DM MR registration flow doesn't set the mlx5_ib_dev pointer and
can cause a NULL pointer dereference if userspace dumps the MR via rdma
tool.

Assign the IB device together with the other fields and remove the
redundant reference of mlx5_ib_dev from mlx5_ib_mr.

Cc: stable@vger.kernel.org
Fixes: 6c29f57ea4 ("IB/mlx5: Device memory mr registration support")
Link: https://lore.kernel.org/r/20201203190807.127189-1-leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-12-07 15:52:54 -04:00
..
bnxt_re RDMA/bnxt_re: Fix max_qp_wrs reported 2020-12-07 15:43:42 -04:00
cxgb4 RDMA/cxgb4: Validate the number of CQEs 2020-11-23 16:19:46 -04:00
efa RDMA/efa: Use dma_set_mask_and_coherent() to simplify code 2020-12-01 21:03:23 -04:00
hfi1 Linux 5.10-rc6 2020-12-01 20:40:50 -04:00
hns RDMA/hns: Move capability flags of QP and CQ to hns-abi.h 2020-12-07 15:48:51 -04:00
i40iw RDMA/i40iw: Replace atomic_add_return(1, ..) 2020-12-07 15:40:23 -04:00
mlx4 RDMA/uverbs: Allow drivers to create a new HW object during rereg_mr 2020-12-07 14:06:23 -04:00
mlx5 RDMA/mlx5: Assign dev to DM MR 2020-12-07 15:52:54 -04:00
mthca Linux 5.10-rc6 2020-12-01 20:40:50 -04:00
ocrdma RDMA: Convert sysfs device * show functions to use sysfs_emit() 2020-10-26 19:53:21 -03:00
qedr IB/qedr: Fix fall-through warnings for Clang 2020-11-23 15:54:11 -04:00
qib IB/qib: Use dma_set_mask_and_coherent to simplify code 2020-11-23 16:37:20 -04:00
usnic RDMA: Convert various random sprintf sysfs _show uses to sysfs_emit 2020-10-30 21:03:52 -03:00
vmw_pvrdma Merge branch 'for-rc' into rdma.git 2020-11-17 15:20:26 -04:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00