Re: [PATCH net v4] octeontx2-af: Fix BPID leaks in NIX backpressure enable/disable

From: Simon Horman

Date: Thu Nov 26 2026 - 10:22:34 EST


On Mon, Nov 23, 2026 at 09:08:58AM +0000, netdev-bot+sashiko@xxxxxxxxxx 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

...