From: Dan Carpenter <error27@gmail.com>
To: Michal Kubiak <michal.kubiak@intel.com>
Cc: intel-wired-lan@lists.osuosl.org
Subject: [Intel-wired-lan] [bug report] ice: switch to Page Pool
Date: Sat, 9 May 2026 10:07:53 +0300 [thread overview]
Message-ID: <af7dSYm77Wnvix4D@stanley.mountain> (raw)
Hello Michal Kubiak,
Commit 93f53db9f9dc ("ice: switch to Page Pool") from Sep 25, 2025
(linux-next), leads to the following Smatch static checker warning:
drivers/net/ethernet/intel/ice/ice_xsk.c:203 ice_xsk_pool_setup()
warn: potential bounds check after use 'qid'
drivers/net/ethernet/intel/ice/ice_xsk.c
197 int ice_xsk_pool_setup(struct ice_vsi *vsi, struct xsk_buff_pool *pool, u16 qid)
198 {
199 struct ice_rx_ring *rx_ring = vsi->rx_rings[qid];
^^^^^^^^^^^^^^^^^^
This looks like potentially an out of bounds read.
200 bool if_running, pool_present = !!pool;
201 int ret = 0, pool_failure = 0;
202
--> 203 if (qid >= vsi->num_rxq || qid >= vsi->num_txq) {
^^^^^^^^^^^^^^^^^^^
qid is checked here but it's too late.
204 netdev_err(vsi->netdev, "Please use queue id in scope of combined queues count\n");
205 pool_failure = -EINVAL;
206 goto failure;
207 }
This email is a free service from the Smatch-CI project [smatch.sf.net].
regards,
dan carpenter
reply other threads:[~2026-05-09 7:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=af7dSYm77Wnvix4D@stanley.mountain \
--to=error27@gmail.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=michal.kubiak@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox