projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9294000
)
rdma_cm: fail iwarp accepts w/o connection params
author
Steve Wise
<swise@opengridcomputing.com>
Tue, 21 Feb 2017 19:21:57 +0000
(11:21 -0800)
committer
Doug Ledford
<dledford@redhat.com>
Wed, 22 Feb 2017 20:35:03 +0000
(15:35 -0500)
cma_accept_iw() needs to return an error if conn_params is NULL.
Since this is coming from user space, we can crash.
Reported-by: Shaobo He <shaobo@cs.utah.edu>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Cc: stable@vger.kernel.org
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/core/cma.c
b/drivers/infiniband/core/cma.c
index dab2a96ea032ef72b3291358b7328ec58202b0f4..5ed6ec9d6a93ad9276f79799750d8458c2f06266 100644
(file)
--- a/
drivers/infiniband/core/cma.c
+++ b/
drivers/infiniband/core/cma.c
@@
-3683,6
+3683,9
@@
static int cma_accept_iw(struct rdma_id_private *id_priv,
struct iw_cm_conn_param iw_param;
int ret;
+ if (!conn_param)
+ return -EINVAL;
+
ret = cma_modify_qp_rtr(id_priv, conn_param);
if (ret)
return ret;