linux/drivers/infiniband
Jason Gunthorpe c012691508 IB/cm: Remove cma_multicast->igmp_joined
This variable isn't read and written to with proper locking, so it is
racy. Instead of using an unlocked bool use presence in the mc->list

The caller could race rdma_join_multicast with rdma_leave_multicast which
would leak a mc join and cause a use after free of mc.

Instead, do not add the mc to the list until it has completed
initialization, all mcs on the list require leaving.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
2018-07-13 12:18:55 -06:00
..
core IB/cm: Remove cma_multicast->igmp_joined 2018-07-13 12:18:55 -06:00
hw RDMA/mlx5: Check that supplied blue flame index doesn't overflow 2018-07-13 11:54:50 -06:00
sw RDMA/rxe: Simplify the error handling code in rxe_create_ah() 2018-07-09 12:55:28 -06:00
ulp IB/srpt: Fix srpt_cm_req_recv() error path (2/2) 2018-07-13 11:58:45 -06:00
Kconfig RDMA/ucm: Mark UCM interface as BROKEN 2018-05-24 09:39:25 -06:00
Makefile