]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/ucma: Check that device exists prior to accessing it
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 25 Mar 2018 08:39:05 +0000 (11:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Apr 2018 12:27:35 +0000 (14:27 +0200)
commitf55b41ce03a776484735abd73a388603290cc826
tree3b5893fabd357e215090396faf9a29911990e6e1
parentc0cbbca14176431682fdc8ee059736cecd48262f
RDMA/ucma: Check that device exists prior to accessing it

commit c8d3bcbfc5eab3f01cf373d039af725f3b488813 upstream.

Ensure that device exists prior to accessing its properties.

Reported-by: <syzbot+71655d44855ac3e76366@syzkaller.appspotmail.com>
Fixes: 75216638572f ("RDMA/cma: Export rdma cm interface to userspace")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/core/ucma.c