๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22129

Re: [PATCH net 2/4] ixgbe: fix incomplete ACI command buffer backup on retry

#22129
From: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 22:00
65 lines
10226 bytes
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")

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120220022.3133664-1-anthony.l.nguyen%40intel.com
Technical Details
Message-ID: <179555765776.3135.11697122330674580418@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370808-linux-kernel-netdev=dewy.ru
References: <20261120220022.3133664-3-anthony.l.nguyen@intel.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370808-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 2/4] ixgbe: fix incomplete ACI command buffer backup on retry
Date: Tue, 24 Nov 2026 22:00:57 +0000
Organization: Usenet Network
Message-ID: <179555765776.3135.11697122330674580418@kernel.org>
References: <20261120220022.3133664-3-anthony.l.nguyen@intel.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="48685"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:fBi9Zf+3GmJvbKwCSYbxOzVfOcU= sha256:mXC0hjxzK7fe0mzLRO6QyKSOd9hdAuPmXkoRuHqHL/A=
	sha1:nxBgE6SIauCyyQ3YqRER7mSm4vI= sha256:bEr5FaXwMDL3z3Q4hEWdjeUH7XP2Gngae/ttIZw+bMA=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id E66D0125E37; Wed, 25 Nov 2026 01:01:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id QwJ98XhdMXpH;
	Wed, 25 Nov 2026 01:01:13 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370808-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id E347F125E36; Wed, 25 Nov 2026 01:01:04 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 52AF92BFC0; Tue, 24 Nov 2026 22:01:00 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795557660;
	b=Sm6AbOgqbXHNadAwBehBQ5taszcvrPtZT6JahZJdHV3t/kGCdIHyVjFegM0Te4dwgm04
	 jBBPPTpI8869rPy+HH/Kj4b0Djw8DVIls/9IE1CGlHnvu+C+QcBStKZQAGM1iOLFXTwzo
	 o/S1ATZMxnRo7tH5GBE6yy4ehgONRccITSncAy5Aww6jPewGb1fSUUsxdxHlmOpU1+n+x
	 syo9FIpZWKBP/l8WtgpfrSN/U+QIx6mOZMRs1bT36txnV/T6qo95Snjkr0+LDsizS7aOp
	 /u11jBj4uMuFK8bYyNnBi2R+YOp/ZaLey/gggrehuw4mV1CKm5Nc1pmLz2RVQ0uM43w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795557660;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=Svp5tfCVx3x2HzT5okbsmcjF/I6s13MdLGOG7N9xBME=;
	b=NxlMifC9XRQLfFh52CLPztIgDDfKaIQLPU59wUVG/M4q4RPq9rk1BInz3tJg9MinDrlr
	 rcqrFLCHUkR4pDJ4hxEC5aMAht+A2RB29pMCiqHjXUv6yA6x1/ZLUIGBNfy+Rh0iu2Q5b
	 eOacYa+GXW35UU5En7XY2OcQy7Ja1OmeC7k9/A1MJcBe8/FOSkZ2rLYrDgNszbWNsIsv3
	 tKQkNQ1UDag0A1mLy+FguerxVUq8RARbJhjo4cuRfZFlSpM7kjNNAynNLR/7MtIwAYaFP
	 KTGHtukAv9Cfbp89jqq9gRSlH2XyKiIFahgcCyaUaciMW001nTuruoJxYb5q43OfIdw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="Pt/XGcBK";
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 261F4606A326;
	Tue, 24 Nov 2026 22:01:00 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Pt/XGcBK
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795557659;
	b=26UzIXacUL+zEE7Y220L87RfjeaAyvHtjRokj72QmtwMV9xDfYKslxK3nRkioInoiWQ7
	 EiaibDDYO3wmj0AWC6FiMuQTi9y6VZ8kkcTIdGVtQjuq/AekRfBSrEyzLUHhzu1WTS+4l
	 f/thVibTJ0H3hbHBoWskjVilGt9+cck8eTOPyMml+PO+TjEUTqrlBH34YM9IdnEwSXdIB
	 JwVwmHKjtywXkHgonFqJGIDt7hjRt2GfhCTPGFJP3/8btLOhFpHOaK36Vr/Re1Bt3m4tR
	 YxvD8vdmeF2PzWYtDKJlMRClNmf8T4KTJNfywtJtq1GEOEovmEFv+Pdg2XPkVz9lQvQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795557659;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=Svp5tfCVx3x2HzT5okbsmcjF/I6s13MdLGOG7N9xBME=;
	b=UZAAti3ymd0FnPllc25Pdwo0j8LJ93BuuCBY8x6zj0tH7Xiw5nrusPujY60d29iNQVki
	 1K3QFlXSFfiile2nSFaP20cMiRaNHpsLho1B3iTKiZwGW1FL6eyy9JwIJ1zFE+qEqqvXl
	 R45Pepz8m5o5pyWYf5ujQVHjBNoa0/j0KIhJBkoYcGE5wk4R+gPGw3WduDs3ciamYjy8S
	 cRFgdDFxHpF76xycZU/7cMX4s8kxW7+xBcN52LYciHrY+gruDuNHoQ/fWxDfebtHBI14k
	 mZkikDPlNSUFhm2cp0wRf6v//OgHtTYplbAoU/rEMpVVWx5CJza/PeQziHow/cyOA1g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="Pt/XGcBK";
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 456D5606A330
	for <netdev@vger.kernel.org>; Tue, 24 Nov 2026 22:00:59 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A2B31F000C4;
	Tue, 24 Nov 2026 22:00:58 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795557659;
	bh=Svp5tfCVx3x2HzT5okbsmcjF/I6s13MdLGOG7N9xBME=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=Pt/XGcBKONzNFJeqO2MDoUVvQchlDbSgyMkgCiUQ2m+wd5Cdlef7AQW0CVpAlPrHR
	 54DQCNT2ClteL9M7CLuDJ3wisfo1Mj+MFk2nYUdGW2R+6RjMxP4TLaRaSR8DVlIfkw
	 /hK9KuYZdXU0WkuCvx8KzUPs6gqkfI6ffrwmBN0OE4HgibN70xCPH2i1hnEdm5uscF
	 b7lqc/RPtdCq8+oCmXdARKney6XWj+KS4q9RMJKg9UGOi0GPpZuhhkioaS3D0agP1M
	 aYD/ODOo2g+jA9tjiY1mSscCvg4BnfeRpXH2zCOb9NFz2VM2ItNs3XZWsuS1fsbWzZ
	 OWB3jTDAt1mJw==
X-Cc: 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, horms@kernel.org,
 marcin.szycik@linux.intel.com, przemyslaw.kitszel@intel.com,
 rafal.romanowski@intel.com
X-In-Reply-To: <20261120220022.3133664-3-anthony.l.nguyen@intel.com>
X-sashiko-severity: Medium
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list