Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* [PATCH rdma-next 0/8] RDMA/irdma: Fix validation of user and iWARP input
@ 2026-11-30  1:32 Jacob Moroni
  2026-11-30  1:33 ` [PATCH rdma-next 1/8] RDMA/irdma: Fix QP ID leak when QP creation fails early Jacob Moroni
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Jacob Moroni @ 2026-11-30  1:32 UTC (permalink / raw)
  To: tatyana.e.nikolova, jgg, leon; +Cc: linux-rdma, jdz, Jacob Moroni

This series fixes several issues in irdma where input from user space
or from the network is not validated properly.

Patches 1-5 are reachable from user space through uverbs:
 - Patches 1 and 2 fix QP and SRQ ID leaks in the create error paths.
 - Patches 3-5 add missing validation of the queue memory and queue
   sizes provided by user space. rdma-core does not send any of the
   requests that are now rejected.

Patches 6-8 are in the iWARP connection setup path, where the driver
parses raw TCP segments and MPA frames from the peer:
 - Patches 6 and 7 validate the TCP header length and the TCP options.
 - Patch 8 fixes the handling of the MPA v2 private data length.

Testing:
 - Patches 1-5 were tested on GEN3 HW. perftest, pyverbs and a
   subset of rdma-unit-test give the same results with and without
   them. A test program that issues the malformed requests through the
   uverbs write interface confirms that they are now rejected and that
   the IDs are no longer leaked.
 - Patches 6-8 were tested on an E830 in iWARP mode as described in
   each patch, with the whole series applied.

Jacob Moroni (8):
  RDMA/irdma: Fix QP ID leak when QP creation fails early
  RDMA/irdma: Fix SRQ ID leak when the SRQ depth is rejected
  RDMA/irdma: Reject a PBL backed CQ shadow area
  RDMA/irdma: Validate legacy user QP sizes
  RDMA/irdma: Check user queue buffers against the queue size
  RDMA/irdma: Validate iWARP TCP header lengths
  RDMA/irdma: Validate iWARP TCP option lengths
  RDMA/irdma: Fix MPA v2 private data length handling

 drivers/infiniband/hw/irdma/cm.c    | 64 +++++++++++++++++++++--------
 drivers/infiniband/hw/irdma/puda.c  |  4 ++
 drivers/infiniband/hw/irdma/utils.c |  7 ++++
 drivers/infiniband/hw/irdma/verbs.c | 53 ++++++++++++++++++++++--
 drivers/infiniband/hw/irdma/verbs.h |  4 ++
 5 files changed, 110 insertions(+), 22 deletions(-)


base-commit: a8671ee9bde18105775c2307bc71b0933bd24ed4
-- 
2.56.1.839.g22a8290db9-goog


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-11-30  1:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  1:32 [PATCH rdma-next 0/8] RDMA/irdma: Fix validation of user and iWARP input Jacob Moroni
2026-11-30  1:33 ` [PATCH rdma-next 1/8] RDMA/irdma: Fix QP ID leak when QP creation fails early Jacob Moroni
2026-11-30  1:33 ` [PATCH rdma-next 2/8] RDMA/irdma: Fix SRQ ID leak when the SRQ depth is rejected Jacob Moroni
2026-11-30  1:33 ` [PATCH rdma-next 3/8] RDMA/irdma: Reject a PBL backed CQ shadow area Jacob Moroni
2026-11-30  1:33 ` [PATCH rdma-next 4/8] RDMA/irdma: Validate legacy user QP sizes Jacob Moroni
2026-11-30  1:33 ` [PATCH rdma-next 5/8] RDMA/irdma: Check user queue buffers against the queue size Jacob Moroni
2026-11-30  1:33 ` [PATCH rdma-next 6/8] RDMA/irdma: Validate iWARP TCP header lengths Jacob Moroni
2026-11-30  1:33 ` [PATCH rdma-next 7/8] RDMA/irdma: Validate iWARP TCP option lengths Jacob Moroni
2026-11-30  1:33 ` [PATCH rdma-next 8/8] RDMA/irdma: Fix MPA v2 private data length handling Jacob Moroni
2026-11-30  1:44 ` [PATCH rdma-next 0/8] RDMA/irdma: Fix validation of user and iWARP input sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox