From: Jacob Moroni <jmoroni@google.com>
To: tatyana.e.nikolova@intel.com, jgg@ziepe.ca, leon@kernel.org
Cc: linux-rdma@vger.kernel.org, Jacob Moroni <jmoroni@google.com>
Subject: [PATCH rdma-next 2/2] RDMA/irdma: Drop unused SRQ table from resource memory
Date: Mon, 9 Nov 2026 20:25:25 +0000 [thread overview]
Message-ID: <20261109202525.2937295-2-jmoroni@google.com> (raw)
In-Reply-To: <20261109202525.2937295-1-jmoroni@google.com>
irdma_calc_mem_rsrc_size() reserves room for max_srq SRQ pointers at
the end of rf->mem_rsrc, but irdma_set_hw_rsrc() never sets up an SRQ
table there and nothing uses that memory. SRQs are looked up through
rf->srq_xa instead.
Remove the reservation so the allocation only covers what
irdma_set_hw_rsrc() actually carves out.
Signed-off-by: Jacob Moroni <jmoroni@google.com>
---
drivers/infiniband/hw/irdma/hw.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/infiniband/hw/irdma/hw.c b/drivers/infiniband/hw/irdma/hw.c
index 3d755cca243f..db741afc80d5 100644
--- a/drivers/infiniband/hw/irdma/hw.c
+++ b/drivers/infiniband/hw/irdma/hw.c
@@ -2154,7 +2154,6 @@ static u32 irdma_calc_mem_rsrc_size(struct irdma_pci_f *rf)
rsrc_size += sizeof(unsigned long) * BITS_TO_LONGS(rf->max_mcg);
rsrc_size += sizeof(struct irdma_qp **) * rf->max_qp;
rsrc_size += sizeof(struct irdma_cq **) * rf->max_cq;
- rsrc_size += sizeof(struct irdma_srq **) * rf->max_srq;
return rsrc_size;
}
--
2.56.0.542.g3ef89b7020-goog
next prev parent reply other threads:[~2026-11-09 20:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 20:25 [PATCH rdma-next 1/2] RDMA/irdma: Fix potential UAF during SRQ limit AE handling Jacob Moroni
2026-11-09 20:25 ` Jacob Moroni [this message]
2026-11-09 20:30 ` [PATCH rdma-next 2/2] RDMA/irdma: Drop unused SRQ table from resource memory sashiko-bot
2026-11-09 20:35 ` [PATCH rdma-next 1/2] RDMA/irdma: Fix potential UAF during SRQ limit AE handling sashiko-bot
2026-11-09 20:37 ` Jacob Moroni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261109202525.2937295-2-jmoroni@google.com \
--to=jmoroni@google.com \
--cc=jgg@ziepe.ca \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=tatyana.e.nikolova@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.