]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
IB/mlx5: Don't take the rereg_mr fallback without a new translation
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 4 Jun 2026 01:27:40 +0000 (22:27 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 8 Jun 2026 17:32:42 +0000 (14:32 -0300)
commit55d339d200c908de83a408d023cfb7be779b0dd7
treef7be0ebc26671f65632f04c5dd34b4dcfcf60fec
parentea4f6f6c53577fb3f05dbd78b15e586772d49831
IB/mlx5: Don't take the rereg_mr fallback without a new translation

Jumping to mlx5_ib_reg_user_mr() without IB_MR_REREG_TRANS set will use
garbage values for start, length, and iova. Recovering the original mr
parameters for ODP and DMABUF to properly recreate it is too hard in this
flow, so just fail it.

Fixes: ef3642c4f54d ("RDMA/mlx5: Fix error unwinds for rereg_mr")
Link: https://patch.msgid.link/r/1-v1-29ebd2c229b5+fd5-ib_mr_pd_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/mr.c