Re: [PATCH rdma-next v2] RDMA/mlx5: Don't WARN on a user iova that can't be mapped

From: Leon Romanovsky

Date: Wed Dec 02 2026 - 03:35:20 EST



On Mon, 30 Nov 2026 14:24:13 +0200, Edward Srouji wrote:
> alloc_cacheable_mr() and can_use_umr_rereg_pas() warn when no page size
> fits the MR. The WARNs rely on ib_umem_find_best_pgsz() never returning
> 0 for drivers that support PAGE_SIZE, as its kdoc promises.
>
> commit 09ea6837a043 ("RDMA/umem: Be careful about boundary
> conditions in ib_umem_find_best_pgsz()") broke that promise, the
> function now returns 0 when iova + length overflows. The iova is
> provided by the user on MR registration and rereg, so any user can
> trigger the WARN and panic a system running with panic_on_warn.
>
> [...]

Applied, thanks!

[1/1] RDMA/mlx5: Don't WARN on a user iova that can't be mapped
https://git.kernel.org/rdma/rdma/c/a7f7039d3346d9

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