Skip to content

RDMA: Stability and race condition fixes

Edward Srouji linux-rdma lkml 3 versions – Applied

Status from this message: Applied to for-rc

Get series with b4
b4 am [email protected] change-id 20260325-security-bug-fixes-6fdef22d9412

Versions newest first

  1. v3 Latest5 patches 2 repliesApplied
  2. v211 patches 3 repliesSuperseded
  3. v110 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Dropped restrack destroy-ordering fixes (patches 1-6 in v2) to
rework them in a dedicated series based on code-review feedback
- Rebased onto latest for-next
- Link to v2: https://lore.kernel.org/r/[email protected]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5RDMA/mlx5: Fix UAF in SRQ destroy due to race with createdrivers/infiniband/hw/mlx5/srq_cmd.c+8 -10 replies
2/5RDMA/mlx5: Fix UAF in DCT destroy due to race with createdrivers/infiniband/hw/mlx5/qpc.c+8 -11 reply
3/5IB/core: Fix IPv6 netlink message size in ib_nl_ip_send_msg()drivers/infiniband/core/addr.c+1 -10 replies
4/5RDMA/core: Fix rereg_mr use-after-free racedrivers/infiniband/core/uverbs_cmd.c+7 -20 replies
5/5RDMA/mlx5: Fix null-ptr-deref in Raw Packet QP creationdrivers/infiniband/hw/mlx5/qp.c+5 -00 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchMichael GuralnikPatrisious HaddadMaher Sanalla
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH rdma-next v3 0/5] RDMA: Stability and race condition fixes

This series addresses several stability issues in RDMA core and the mlx5 driver.

Patches 1-2 fix xarray race conditions in the mlx5 SRQ and DCT destroy paths where a concurrent create can reuse the same firmware object number right after firmware releases it, causing the destroy path to incorrectly erase the newly created entry.

The remaining patches are independent fixes.

---
Changes in v3:
- Dropped restrack destroy-ordering fixes (patches 1-6 in v2) to
rework them in a dedicated series based on code-review feedback
- Rebased onto latest for-next
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Added patch "RDMA/mlx5: Remove raw RSS QP restrack tracking" to
also suppress broken tracking for raw RSS QPs, which suffer from
the same silent failures as DCTs
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Edward Srouji (2):
RDMA/mlx5: Fix UAF in SRQ destroy due to race with create RDMA/mlx5: Fix UAF in DCT destroy due to race with create

Maher Sanalla (1):
IB/core: Fix IPv6 netlink message size in ib_nl_ip_send_msg()

Michael Guralnik (2):
RDMA/core: Fix rereg_mr use-after-free race RDMA/mlx5: Fix null-ptr-deref in Raw Packet QP creation

 drivers/infiniband/core/addr.c       | 2 +-
 drivers/infiniband/core/uverbs_cmd.c | 9 +++++++--
 drivers/infiniband/hw/mlx5/qp.c      | 5 +++++
 drivers/infiniband/hw/mlx5/qpc.c     | 9 ++++++++-
 drivers/infiniband/hw/mlx5/srq_cmd.c | 9 ++++++++-
 5 files changed, 29 insertions(+), 5 deletions(-)

---
base-commit: 9091e3b59f2bef11c0a841096327565ae0ca220b
change-id: 20260325-security-bug-fixes-6fdef22d9412

Best regards,

Signature · 1 line
Edward Srouji <[email protected]>