๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25150

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

#25150
From: Simon Horman
Date: Tue, 01 Dec 2026 09:56
66 lines
10433 bytes
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.
Technical Details
Message-ID: <20261201095628.GM804035@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374924-linux-kernel-netdev=dewy.ru
References: <20261120220022.3133664-3-anthony.l.nguyen@intel.com> <179555765776.3135.11697122330674580418@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374924-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 2/4] ixgbe: fix incomplete ACI command buffer backup
 on retry
Date: Tue, 1 Dec 2026 09:56:28 +0000
Organization: Usenet Network
Message-ID: <20261201095628.GM804035@horms.kernel.org>
References: <20261120220022.3133664-3-anthony.l.nguyen@intel.com>
 <179555765776.3135.11697122330674580418@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1678911"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ey6hp16o/JitqG0K7SYCpZMgrX8= sha256:8WQ+mVShQ/NpNK62NlSdvCgc8/A0zj2ZF1mlrkMVLc4=
	sha1:+T8933TWdjJUJmPrEufuwQh7rPQ= sha256:Kh34GJ4CIyTfoAo3HZwDDuViTcCj1sSnHF0tnDVjyBE=
Content-Disposition: inline
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 A6C67117317; Tue,  1 Dec 2026 12:56:52 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 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] 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 zOFggRd0fMEw;
	Tue,  1 Dec 2026 12:56:45 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374924-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 8D3FA117311; Tue,  1 Dec 2026 12:56:37 +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 7BA74312BA; Tue,  1 Dec 2026 09:56:35 +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=1796118995;
	b=0ytIKgS5AG86zbtpfCMgMkLTjwJ0UhLPeAud8Wr7BwZ3iL9d0URFB7p8NU/lEzwDtZ30
	 q2c4XqoJ6yCBJFvhY17vRN4O1JoFuwHGCr+jmMyfeYqXnQ4HbBy1myvmubCYNaRqnCcMl
	 cBn52wf5hJSoeQx0l6WBshsySFzv+bygUk+e3dhuIaX5zs+bGL9trxbWawmxQlihtRiQR
	 yowSX0qO+G53d0L/XMNHbd8qP6VTCfleBX6Hn9BL2U6DexfQg4ZL9Ec4eqHvERLBXk4gL
	 /SISBi0Y+N3dFh+EuNN628trIqEfzZ4plHqhmtb8t4kNv8sHEz/2of8OBfUL+3tf+sQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796118995;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=xGp9QdeAUfiukXlkONUY4GQVw2pWPXF7K0OQ0fJp+Qo=;
	b=V9FH75nYh0P4g9kCnTj5kTHZPAqxOS/FtFtPucO04ViVrcMC5yXZ8oEM18GHmV30XU5Z
	 DGXX0weH/pwq8GJRcZ8NrPqZajqwtdKPNCz7wVul1KeQ63MVkB23c4blVRh1C2VJNnRfs
	 nbkAjb+tIdUZAgovwtoNXJ+nXoEY//Bi9rcQvPrdVfZ5NF0f9cxCbiWNQPYSZFhgwuK/O
	 HskRh5lBGhu2+YrGQtWC4mMAbrBMfetkCWoZt9zyRoSGQZw/Gd2FPCNanexEmBmY6iR39
	 Z8zWRCwZgXl3+yynChqjBCuz/ERy4h33yN6SKBYjV7hRhTPRhqW7V0H5h0NWgsNcdgw==
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=TbJYf2u0;
	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 4F609606A681;
	Tue,  1 Dec 2026 09:56:35 +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=TbJYf2u0
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=1796118994;
	b=ejtXmtGpQ/O9mNH3p6/plbxoMYqW0X+KaxKAsa+MbjYu5IZwjeV/P1PYm4EVN5YQNzeL
	 Uk/QZulAabdSX0iuUbzcfGyFnmcWenh1bdXRRXDgsCUL3tpmy2SirglIME5lCef4wVqQl
	 WgRvvfEaRzgqhRQS9jRI6a14EZ/ofpfmRGsMtlYeey3DsguOHRxBnsT4Sif0MXCfxCpNr
	 /0hDtcMPSZZANNp7yHl7AIarYtE9My7QFZoCa3wAEjskdb9R5s/v8wOK8GXZlvl6QLvap
	 LefDn0EnbDhXuq/ufs64o0EQQh0bAAEP9lSTS0beD7K3oY3V8t7zo3nBVM5Vj5pTeTQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796118994;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=xGp9QdeAUfiukXlkONUY4GQVw2pWPXF7K0OQ0fJp+Qo=;
	b=PU6hVuLbjUWeZDEjRRMFUu/Ic0vJfpDfgCSmGkN9U+f4sy9woGRUJyyPom8i/0FLRIxH
	 qBpOVLbLBwVVT7I1mhaIwNp7SbA9mJ/WYqjWjMpetGVpHUcttEeXUJa/fZ7KAi2LojcjB
	 0bsHs8qhD7lifx4whMmEId6e9WCIPrQwBBYgVV8Tivs3jVdMRsSjjEnqydh8le8ZYSQiT
	 zRRJV6ATtpjpcoDknCre3rKwJilRbwFm3HI4b96MLTDWcf8wWjK8dI0R91kmfNtY4gTZ3
	 7SI7ovY7c4uE23+mtpRqcJ+FAXy78cUYllliemUCFrtlUR22xaQCj/+A9Kq74pdFFLg==
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=TbJYf2u0;
	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 6E76E606A680
	for <netdev@vger.kernel.org>; Tue,  1 Dec 2026 09:56:34 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0165C1F00893;
	Tue,  1 Dec 2026 09:56:30 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796118993;
	bh=xGp9QdeAUfiukXlkONUY4GQVw2pWPXF7K0OQ0fJp+Qo=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=TbJYf2u0opnRR8rI8EnhZlWIHosCE1w6vN5mwzjJQKBwbE/Ht0lBDamKiOtJYXx6Z
	 w7OlywJj1AEzS5vpNLMMp3e4zYByxjfreaRkdECktf3cHJSL1aWff6QO38igegmVM7
	 X2QeUtCwFGg9mAcYBgPsXmdU17UnoilRQp0oCtCwDHqTIKyk3lqkIoEOboacLYbmPp
	 mT78BFWqwjWfuhRBP818Ye7AatRxLTeFeubhfVkFdu4Zi++KdJEloh0puuHJbeXaTN
	 hdSqJGBD6ajwFkLotHkwZiBA8k/Axy50dMboKPIy4NSlkgt5lQ3oozrf8bqFxhqm/n
	 SMDPjO2/M5NkQ==
X-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
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
X-In-Reply-To: <179555765776.3135.11697122330674580418@kernel.org>