Re: [PATCH rdma-next v2 0/3] RDMA: Fix DEVX UMEM mailbox size overflow
From: Leon Romanovsky
Date: Sun Nov 15 2026 - 09:12:05 EST
On Wed, 11 Nov 2026 15:57:01 +0200, Edward Srouji wrote:
> Registering a DEVX UMEM builds a CREATE_UMEM mailbox whose size grows
> with the number of MTTs, i.e. with the user-supplied length and
> pgsz_bitmap. The size is stored in a u32, so a UMEM of about 2TB with
> 4KB pages wraps it, the mailbox is under-allocated and
> mlx5_ib_populate_pas() writes past its end.
>
> Patch 1 fixes a pre-existing issue in the same path, reported by Sashiko
> on v1: devx_umem_find_best_pgsize() can return a page size that is not
> in the user's pgsz_bitmap.
>
> [...]
Applied, thanks!
[1/3] RDMA/mlx5: Respect pgsz_bitmap when reducing the DEVX UMEM page size
https://git.kernel.org/rdma/rdma/c/80bac9f85a8c58
[2/3] RDMA/mlx5: Fix DEVX UMEM mailbox size truncation
https://git.kernel.org/rdma/rdma/c/bbd8ba74c5a37e
[3/3] RDMA/core: Don't warn on oversized bundle allocations
https://git.kernel.org/rdma/rdma/c/204a89c69f3bd4
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>