From: Anas Iqbal <mohd.abd.6602@gmail.com>
To: horms@kernel.org
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
iyappan@os.amperecomputing.com, keyur@os.amperecomputing.com,
kuba@kernel.org, linux-kernel@vger.kernel.org,
mohd.abd.6602@gmail.com, netdev@vger.kernel.org,
pabeni@redhat.com, quan@os.amperecomputing.com
Subject: Re: [PATCH] net: xgene: fix signedness bug in xgene_enet_get_fpsel()
Date: Sat, 21 Mar 2026 12:45:58 +0000 [thread overview]
Message-ID: <20260321124618.1221-1-mohd.abd.6602@gmail.com> (raw)
In-Reply-To: <20260320162152.GA79627@horms.kernel.org>
Hi Simon,
Thanks for taking a look.
You are right — xgene_enet_is_bufpool() checks
(id & RING_BUFNUM_MASK) >= 0x20, and
xgene_enet_ring_bufnum() returns the same masked value.
So the condition guarantees that the subtraction cannot
underflow.
This appears to be a false positive from Smatch. I missed checking all the conditions.
Sorry for the inconvenience caused. I will drop this patch.
Thanks for pointing it out.
Regards,
Anas
prev parent reply other threads:[~2026-03-21 12:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-19 9:11 [PATCH] net: xgene: fix signedness bug in xgene_enet_get_fpsel() Anas Iqbal
2026-03-20 16:21 ` Simon Horman
2026-03-21 12:45 ` Anas Iqbal [this message]
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=20260321124618.1221-1-mohd.abd.6602@gmail.com \
--to=mohd.abd.6602@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=iyappan@os.amperecomputing.com \
--cc=keyur@os.amperecomputing.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=quan@os.amperecomputing.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