diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2018-03-07 18:49:16 +0200 |
---|---|---|
committer | Sasha Levin <alexander.levin@microsoft.com> | 2018-03-20 23:49:49 -0400 |
commit | 7562b58c6ab6e852cae4f4bdf3c90de34d7f672a (patch) | |
tree | a4e7fdfad3546f9aeb2d19b42bf48198d2718e02 /drivers/infiniband/hw/mlx5/cq.c | |
parent | 2f8923db64bb526bf12c31b33095196f15a47af9 (diff) |
RDMA/ucma: Check that user doesn't overflow QP state
[ Upstream commit a5880b84430316e3e1c1f5d23aa32ec6000cc717 ]
The QP state is limited and declared in enum ib_qp_state,
but ucma user was able to supply any possible (u32) value.
Reported-by: syzbot+0df1ab766f8924b1edba@syzkaller.appspotmail.com
Fixes: 75216638572f ("RDMA/cma: Export rdma cm interface to userspace")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/cq.c')
0 files changed, 0 insertions, 0 deletions