Netdev List
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: netdev-bot+sashiko@kernel.org
Cc: nshettyj@marvell.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, rkudurumalla@marvell.com,
	sgoutham@marvell.com, rkannoth@marvell.com, gakula@marvell.com,
	sbhatta@marvell.com, andrew+netdev@lunn.ch, davem@davemloft.net,
	edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com
Subject: Re: [PATCH net v4] octeontx2-af: Fix BPID leaks in NIX backpressure enable/disable
Date: Thu, 26 Nov 2026 15:22:21 +0000	[thread overview]
Message-ID: <20261126152221.GC31322@horms.kernel.org> (raw)
In-Reply-To: <179542493892.3135.7516887793037759713@kernel.org>

On Mon, Nov 23, 2026 at 09:08:58AM +0000, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 5 potential
> issue(s) to consider.
> 
> Critical: 0 · High: 1 · Medium: 3 · Low: 1
> 
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
> 
> - [High] The new channel range checks in nix_bp_disable()
>   (rvu_nix.c:672-677) and nix_bp_enable() (rvu_nix.c:822-827) validate…
> - [Medium] nix_bp_enable() (rvu_nix.c:832-857) still leaks an LBK BPID
>   whenever NIX_BP_ENABLE or NIX_CPT_BP_ENABLE is sent for a channel that…
> - [Medium] nix_bp_chan_disable() (rvu_nix.c:624-639) passes 'cfg &
>   GENMASK_ULL(8, 0)' to nix_bp_free_lbk_bpid() without checking that…
> - [Medium] nix_bp_enable() now saves each allocated BPID in
>   rsp->chan_bpid[i] (line 844) and later reads it back from rsp to…
> - [Low] The commit message undersells one of the problems this patch
>   fixes.

The above concerns look legit to me, especially the mailbox TOCTOU and the
BPID lifetime issues.

-- 
pw-bot: changes-requested

...

      reply	other threads:[~2026-11-26 15:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19  8:54 [PATCH net v4] octeontx2-af: Fix BPID leaks in NIX backpressure enable/disable nshettyj
2026-11-19  8:57 ` netdev-bot+sinfo
2026-11-20  4:42   ` Nitin Shetty J
2026-11-23  9:08 ` netdev-bot+sashiko
2026-11-26 15:22   ` Simon Horman [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=20261126152221.GC31322@horms.kernel.org \
    --to=horms@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=gakula@marvell.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nshettyj@marvell.com \
    --cc=pabeni@redhat.com \
    --cc=rkannoth@marvell.com \
    --cc=rkudurumalla@marvell.com \
    --cc=sbhatta@marvell.com \
    --cc=sgoutham@marvell.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