From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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 ; Tue, 1 Dec 2026 09:56:34 +0000 (UTC) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0165C1F00893; Tue, 1 Dec 2026 09:56:30 +0000 (UTC) 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== Date: Tue, 1 Dec 2026 09:56:28 +0000 From: Simon Horman 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 Message-ID: <20261201095628.GM804035@horms.kernel.org> References: <20261120220022.3133664-3-anthony.l.nguyen@intel.com> <179555765776.3135.11697122330674580418@kernel.org> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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.