🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16650

Re: [PATCH net-next v10 2/4] net: mana: give each HWC message slot its own completion state

#16650
From: Wei Hu
Date: Sun, 15 Nov 2026 12:34
61 lines
11333 bytes
Thanks for the review.

I will include the small metadata follow-up below in v11. The four Medium
findings are pre-existing and will be addressed separately. Where later
patches already provide protection in the completed feature series, I
have noted that distinction below.

> These changes fix bugs that can already be hit in the baseline, but the
> commit has no Fixes: tag and no stable note. Should it have them?

Agreed. I verified the original-driver commit ca9c54d2d6a5 and will add
the applicable Fixes metadata. I will explicitly describe the stale
caller-storage and stale-completion bugs, and make the dependency on the
following quarantine patch clear for backporters.

Patch 2 alone does not solve response correlation or TX-buffer reuse after
a timeout. The backport guidance will say so; I am not proposing automatic
stable pickup of the complete feature stack.

> This isn't a bug introduced by this patch, but can a late response for a
> request that timed out still reach the next request that reuses the same
> msg_id?

This is pre-existing. We will address it separately for the baseline.
As the review notes, patch 3 already keeps the ID quarantined in the
completed series. That protection will be preserved in the respin.

> This isn't a bug introduced by this patch, but can this memcpy() read past
> the end of the RX slot?

This is pre-existing. We will address it separately for the baseline.
Patch 4 already checks the requested response size against the effective
RX limit and slot capacity before admission in the completed series.
This is not a claim that standalone patch 2 fixes the bound.

> This is a pre-existing issue, but is the TX DMA buffer for this msg_id safe
> to reuse at this point?

The early TX-buffer reuse is pre-existing. We will address it separately
for the baseline. In the completed feature series, patch 3 retains the
slot and its TX buffer while the response-side ownership is outstanding.
The respin will not undo that quarantine to make admission succeed.

> This isn't a bug introduced by this patch, but the caller of this
> function, mana_hwc_rx_event_handler(), drops the RX buffer when the device
> sends an out-of-range msg_id:

The missing RX-buffer repost is pre-existing and remains outside this
series' changes. We will address it separately, rather than silently
folding an unrelated RX recovery fix into this respin.

Regards,
Wei
Technical Details
Message-ID: <179457550419.109246.17805974147168949918.hwc-v10-all-reviews-p2@linux.microsoft.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363698-linux-kernel-netdev=dewy.ru
References: <d3c71452bb2938a5c1fcfebb32d44827eaea94e9.1794208055.git.weh@linux.microsoft.com> <179455239815.2199510.4673285259543925635@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363698-linux-kernel-netdev=dewy.ru
From: weh@linux.microsoft.com (Wei Hu)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v10 2/4] net: mana: give each HWC message slot its own completion state
Date: Sun, 15 Nov 2026 12:34:11 +0000
Organization: Usenet Network
Message-ID: <179457550419.109246.17805974147168949918.hwc-v10-all-reviews-p2@linux.microsoft.com>
References: <d3c71452bb2938a5c1fcfebb32d44827eaea94e9.1794208055.git.weh@linux.microsoft.com>  <179455239815.2199510.4673285259543925635@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="1796272"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:hWj6pNHe4wCqvGBReLOtFHJk5xc= sha256:A4BR51YcDpDhc1P7FN3xe2LoQhQclWo6BoevkiFEcRw=
	sha1:loDfL9pDUdYBHL5ULG9Yo3rLNXw= sha256:yMFOXztS/M8BgcdFzhMiFojVrUGug6wRSymPlqxAY4M=
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 85B771149CB; Sun, 15 Nov 2026 15:34:53 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	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 (1024-bit key)
	header.d=linux.microsoft.com
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 0pFbDcv7Uhb5;
	Sun, 15 Nov 2026 15:34:50 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363698-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id A78D81149C6; Sun, 15 Nov 2026 15:34:41 +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 CD67B32091; Sun, 15 Nov 2026 12:34:35 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1794746074;
	b=LOFgZat/RCR26nJFzie8iEiUW/TagEw9S5Leehfj6XWlAhaoxzGyBCarCrA0Z6p0Yy/p
	 etE2176arhHIvYdWtkqsKXhMHMC44w/uZBrGqyZsOpuSUTo5o2TQ6A7gUZqbqHouthd+q
	 NdUb5tmajwZZTSxozd7k/U+YTRP9wSVlJp+u8E4/EIaFvuCkwVaUumQwQ3BzAN8UZFCwM
	 8sscFGm2/rvGnxd/Lj5NQOk92mRbcS7czG5Ws2LniYmeB48YZCp4Z1zZbnLCfaw6HtYOg
	 g0JOMkhUMFqNwv1JWYZ+qnGEHY8TlGlDMNl3Pl5pk869T7wgAQeLyhdLc+QnJYnW0+g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794746074;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Filter:
	 DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
	 In-Reply-To:References:Content-Type:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Transfer-Encoding;
	bh=5d99x9Z7iGP/XoNMh8Cda41fFbLCQQN+rYDaKXQczIY=;
	b=d8dDDPlSniIqyBQD3HiqVRmcPQUAErj1inzqNjNTqfsiOxHY7i3n7pBGAVXZj5Rv5GnB
	 xMa/Lkx1lNoDwtW73MaGIFvq1QziSBi5SaZkRHFUB3U6XArsa+F/of4qPrIl6ur2opewR
	 EB1+6lC2/FdUhlJHtu6KhQOf046dRf8R2ZcMoiKHodFjP1Unemfg1KewSWxVUbYD9Hrdm
	 ziDbA9aS/kmbMSY0X7yW/T2MmYALLeJuplFdj2geE+Rr4c3OXkPHYkc5S0d+Z31MOXzUB
	 hLcCXtW1sNOqieJ/OeLHty8lNfxa47Suk3rO62MsE0UGrphoNIduEjgBZ0/BiI60CzQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=RdsDG4jx;
	dmarc=pass header.from=linux.microsoft.com;
	spf=pass smtp.mailfrom=linux.microsoft.com;
	arc=fail 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 4F991606A884;
	Sun, 15 Nov 2026 12:34:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=RdsDG4jx
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794746073;
	b=l+VlWVBkFEqJF1N/ADT8cSOVP4Me8j1KVj7/hXmWVFkrMExTHmC7BtvHV/an3LlcFiP1
	 awsKP0Rhr41r4HWwirAI8bD+6W6aJpwX3iKKKCgOj2FaPPBrvxpOkBPxbH/EpXcce84Q/
	 fHrJ1uBR3jkdQonKphdovMBn8S3CrdY4LBdr2ysRdDe8eTJqdBDTJV0hr19PvPpADy5dG
	 ATe5UPT+nAMPeD8OVyOFeX7XbuUgIgMFlhXFTmXosRebvcjJ9ZSSgnZ0yBf7lin9iXBpG
	 bOWMQ07NOnL1WzdJbnxCpOSnBEw1KZDTLcq8kLbf9CF8fhiP/PYebDzzDQzK5psBCQg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794746073;
	h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:From:To:Cc:Subject:
	 Date:Message-ID:X-Mailer:In-Reply-To:References:Content-Type:
	 MIME-Version:Content-Transfer-Encoding:X-Spam-Status:
	 X-Spam-Checker-Version;
	bh=5d99x9Z7iGP/XoNMh8Cda41fFbLCQQN+rYDaKXQczIY=;
	b=W1attjA1WUeGsVveaRLy7ixfBV7x1x9oEkEt8Eg8XbxtJqMV+3YRW1OrCg/CBrJcrMNS
	 tQygWdj4HHy8pnmF35z3V+hS8kqjCqvbxwqoH5IA7RzhJ5OvnyR3n86K3z4f6H9290hF9
	 CPR+Lgixampph19SGhzv3atPu/s+fOAY8L8An+UD/x/PsE+OLxbsEhDP14IxRzO7i00UQ
	 jmQeTcnsUQNlj4qorJadFGQJtc0lahDCLLfPL+u8ApbQRlGBrYgY731qLxV7H42RFv80f
	 kcUKAmF0jHAgw/xWQ/CxLcHQtIa4PKTAtT/45amCK6MDbLAJebE815+uGJjDPxaxDEg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linux.microsoft.com;
	spf=pass smtp.mailfrom=linux.microsoft.com;
	dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=RdsDG4jx;
	arc=none smtp.remote-ip=13.77.154.182
X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 2BB8F606A32E;
	Sun, 15 Nov 2026 12:34:33 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2BB8F606A32E
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com
X-Received: from weh-cvm-dev-vm.y50bckvjo0hefgfnzfztsfttff.phxx.internal.cloudapp.net (unknown [20.169.55.37])
	by linux.microsoft.com (Postfix) with ESMTPSA id 5440920B7169;
	Sun, 15 Nov 2026 04:34:21 -0800 (PST)
X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5440920B7169
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;
	s=default; t=1794746062;
	bh=5d99x9Z7iGP/XoNMh8Cda41fFbLCQQN+rYDaKXQczIY=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
	b=RdsDG4jxnOTbRCcRLKn8KqNbjJNqcL7K8pXNK/914kpDO8n8yeqxYHuWtNeJbLBUq
	 DKTedkh6++WOqmHvLYlX0r6oycUAo72qMSzKNx1zb+ZrFuMCYrvEmX9MFTvJsakBD1
	 WBDB//+dnecoe92lyu/QgI3LR5oZ3YEAvQPsC7xo=
X-Cc: longli@kernel.org,
	kotaranov@microsoft.com,
	kuba@kernel.org,
	davem@davemloft.net,
	pabeni@redhat.com,
	edumazet@google.com,
	andrew+netdev@lunn.ch,
	jgg@ziepe.ca,
	leon@kernel.org,
	haiyangz@microsoft.com,
	wei.liu@kernel.org,
	decui@microsoft.com,
	shradhagupta@linux.microsoft.com,
	horms@kernel.org,
	ernis@linux.microsoft.com,
	stephen@networkplumber.org,
	netdev@vger.kernel.org,
	linux-rdma@vger.kernel.org,
	linux-hyperv@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	gargaditya@linux.microsoft.com,
	kees+treewide@kernel.org,
	kees@kernel.org,
	mawasthi@linux.microsoft.com,
	weh@microsoft.com,
	edumazet@kernel.org
X-Mailer: git-send-email 2.43.0
X-In-Reply-To: <179455239815.2199510.4673285259543925635@kernel.org>
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