Skip to content
Snippets Groups Projects
user avatar
Leon Romanovsky authored
commit ed65a4dc upstream.

The error in ucma_create_id() left ctx in the list of contexts belong
to ucma file descriptor. The attempt to close this file descriptor causes
to use-after-free accesses while iterating over such list.

Fixes: 75216638 ("RDMA/cma: Export rdma cm interface to userspace")
Reported-by: default avatar <syzbot+dcfd344365a56fbebd0f@syzkaller.appspotmail.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Reviewed-by: default avatarSean Hefty <sean.hefty@intel.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
e78759ba
Name Last commit Last update