diff options
author | Roland Dreier <roland@purestorage.com> | 2018-04-03 15:33:01 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-24 09:34:12 +0200 |
commit | 8e455917885613ce6fdbbfb981364c983b29060d (patch) | |
tree | 380d1d9fe616d557b9e34074752d174665bc4b30 /samples/auxdisplay | |
parent | 6b289a7c34d72212bcd5a8ab9b6a657f2f44f0ee (diff) |
RDMA/ucma: Don't allow setting RDMA_OPTION_IB_PATH without an RDMA device
commit 8435168d50e66fa5eae01852769d20a36f9e5e83 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/auxdisplay')
0 files changed, 0 insertions, 0 deletions