Re: [PATCH v2] RDMA/ucma: reject a second join of the same multicast address

From: Leon Romanovsky

Date: Wed Nov 25 2026 - 06:34:51 EST



On Fri, 20 Nov 2026 18:44:05 +0100, Andrey Misiurov wrote:
> ucma_process_join() permits multiple joins of the same address on one
> cm_id. Each join has its own ucma_multicast, but rdma_leave_multicast()
> searches by address and removes the first match. A leave can therefore
> destroy another join's cma_multicast and free the requested ucma_multicast
> while its cma_multicast still refers to it. A later event then accesses
> freed memory.
>
> [...]

Applied, thanks!

[1/1] RDMA/ucma: reject a second join of the same multicast address
https://git.kernel.org/rdma/rdma/c/0888ed60df42e5

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>