On Wed, Feb 14, 2018 at 02:38:38PM +0200, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@xxxxxxxxxxxx> > > The check based on index is not sufficient because > > IB_USER_VERBS_EX_CMD_CREATE_CQ = IB_USER_VERBS_CMD_CREATE_CQ > > and IB_USER_VERBS_CMD_CREATE_CQ <= IB_USER_VERBS_CMD_OPEN_QP, > so if we execute IB_USER_VERBS_EX_CMD_CREATE_CQ this code checks > ib_dev->uverbs_cmd_mask not ib_dev->uverbs_ex_cmd_mask. > > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > drivers/infiniband/core/uverbs_main.c | 18 ++++++------------ > 1 file changed, 6 insertions(+), 12 deletions(-) This seems like an RC fix to me, since we are not properly validating input commands... ?? Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html