remarkable-linux/drivers/infiniband
Roland Dreier 8435168d50 RDMA/ucma: Don't allow setting RDMA_OPTION_IB_PATH without an RDMA device
Check to make sure that ctx->cm_id->device is set before we use it.
Otherwise userspace can trigger a NULL dereference by doing
RDMA_USER_CM_CMD_SET_OPTION on an ID that is not bound to a device.

Cc: <stable@vger.kernel.org>
Reported-by: <syzbot+a67bc93e14682d92fc2f@syzkaller.appspotmail.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-04-03 21:06:14 -06:00
..
core RDMA/ucma: Don't allow setting RDMA_OPTION_IB_PATH without an RDMA device 2018-04-03 21:06:14 -06:00
hw IB/qedr: Remove GID add/del dummy routines 2018-04-03 13:46:29 -06:00
sw IB/rxe: optimize mcast recv process 2018-03-29 13:25:22 -06:00
ulp IB/ipoib: Delete unused struct 2018-04-03 10:42:40 -06:00
Kconfig IB/uverbs: Enable ioctl() uAPI by default for new verbs 2018-03-19 14:45:17 -06:00
Makefile