Re: [PATCH rdma-next] RDMA/rxe: Fix NULL dereference when invalidating an unbound MW

From: Leon Romanovsky

Date: Sun Nov 22 2026 - 10:09:25 EST



On Thu, 19 Nov 2026 10:13:27 -0500, Andrew Stellman wrote:
> A type 2 memory window has no QP or MR attached while it is in
> RXE_MW_STATE_FREE, which is its state after it is allocated and again
> after it is invalidated. rxe_check_invalidate_mw() rejects
> RXE_MW_STATE_INVALID but not RXE_MW_STATE_FREE, so invalidating a FREE
> window reaches rxe_do_invalidate_mw(), which dereferences the NULL
> mw->qp and mw->mr.
>
> [...]

Applied, thanks!

[1/1] RDMA/rxe: Fix NULL dereference when invalidating an unbound MW
https://git.kernel.org/rdma/rdma/c/4075ceed67949f

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