From: Simon Horman <horms@kernel.org>
To: netdev-bot+sashiko@kernel.org
Cc: anthony.l.nguyen@intel.com, davem@davemloft.net, kuba@kernel.org,
pabeni@redhat.com, edumazet@kernel.org, andrew+netdev@lunn.ch,
netdev@vger.kernel.org, tomasz.lichwala@linux.intel.com,
ripatel@wii.dev, xiaolinkui@kylinos.cn, xiaolinkui@126.com,
runyu.xiao@seu.edu.cn, marcin.szycik@linux.intel.com,
przemyslaw.kitszel@intel.com, rafal.romanowski@intel.com
Subject: Re: [PATCH net 2/4] ixgbe: fix incomplete ACI command buffer backup on retry
Date: Tue, 1 Dec 2026 09:56:28 +0000 [thread overview]
Message-ID: <20261201095628.GM804035@horms.kernel.org> (raw)
In-Reply-To: <179555765776.3135.11697122330674580418@kernel.org>
On Tue, Nov 24, 2026 at 10:00:57PM +0000, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential
> issue(s) to consider.
>
> Critical: 0 · High: 0 · Medium: 1 · Low: 0
>
> 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).
>
> - [Medium] The patch "ixgbe: fix incomplete ACI command buffer backup on
> retry" has the wrong Fixes: tag.
>
> --
>
> ixgbe: fix incomplete ACI command buffer backup on retry
>
> This commit changes the EBUSY retry backup in ixgbe_aci_send_cmd(). It
> now copies the whole indirect command buffer with kmemdup() instead of
> saving only the first byte. It also skips the backup when buf_size is 0
> and keys the restore off buf_cpy, to match ice_sq_send_cmd_retry().
>
> > Fixes: c9e563cae19e ("ixgbe: add support for devlink reload")
>
> [Severity: Medium]
> Is this the right commit for the Fixes: tag?
>
> In c9e563cae19e, the only change to ixgbe_e610.c is the new
> ixgbe_aci_nvm_update_empr(). That function sends a direct command:
>
> return ixgbe_aci_send_cmd(hw, &desc, NULL, 0);
>
> Its opcode, ixgbe_aci_opc_nvm_update_empr, is not listed in
> ixgbe_should_retry_aci_send_cmd_execute(). With buf == NULL it also never
> reaches the buf_cpy path.
>
> The code this patch fixes in ixgbe_aci_send_cmd() looks like it came in
> with the original ACI support. Running git blame on the baseline points the
> backup:
>
> if (buf) {
> buf_cpy = kmalloc(buf_size, GFP_KERNEL);
> if (!buf_cpy)
> return -ENOMEM;
> *buf_cpy = *(u8 *)buf;
> }
>
> and the restore:
>
> if (buf)
> memcpy(buf, buf_cpy, buf_size);
>
> to 46761fd52a88 ("ixgbe: Add support for E610 FW Admin Command Interface").
>
> Kernels that have 46761fd52a88 but not c9e563cae19e still have this bug.
> Stable and CVE tooling would treat them as unaffected with the current tag.
>
> Should the tag be the following instead?
>
> Fixes: 46761fd52a88 ("ixgbe: Add support for E610 FW Admin Command Interface")
This does seem to be a valid point.
It does seem that the buggy code both exists and is wired-up as of 46761fd52a88.
next prev parent reply other threads:[~2026-12-01 9:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 22:00 [PATCH net 0/4][pull request] Intel Wired LAN Driver Updates 2026-11-20 (ixgbe, ixgbevf, fm10k) Tony Nguyen
2026-11-20 22:00 ` [PATCH net 1/4] ixgbe: fix MDIO bus lifetime Tony Nguyen
2026-11-24 22:00 ` netdev-bot+sashiko
2026-12-01 9:41 ` Simon Horman
2026-11-20 22:00 ` [PATCH net 2/4] ixgbe: fix incomplete ACI command buffer backup on retry Tony Nguyen
2026-11-24 22:00 ` netdev-bot+sashiko
2026-12-01 9:56 ` Simon Horman [this message]
2026-11-20 22:00 ` [PATCH net 3/4] ixgbevf: fix link speed reporting for Hyper-V E610 VFs Tony Nguyen
2026-11-24 22:00 ` netdev-bot+sashiko
2026-11-25 12:04 ` Tomasz Lichwala
2026-11-20 22:00 ` [PATCH net 4/4] net: fm10k: shut down the service timer during removal Tony Nguyen
2026-11-24 22:01 ` netdev-bot+sashiko
2026-11-20 22:03 ` [PATCH net 0/4][pull request] Intel Wired LAN Driver Updates 2026-11-20 (ixgbe, ixgbevf, fm10k) netdev-bot+sinfo
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=20261201095628.GM804035@horms.kernel.org \
--to=horms@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=marcin.szycik@linux.intel.com \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=rafal.romanowski@intel.com \
--cc=ripatel@wii.dev \
--cc=runyu.xiao@seu.edu.cn \
--cc=tomasz.lichwala@linux.intel.com \
--cc=xiaolinkui@126.com \
--cc=xiaolinkui@kylinos.cn \
/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