Article View: linux.kernel.netdev
Article #6461Re: [PATCH net-next v8 2/4] net: mana: give each HWC message slot its own completion state
From: Wei Hu
Date: Thu, 22 Oct 2026 14:44
Date: Thu, 22 Oct 2026 14:44
24 lines
9619 bytes
9619 bytes
Thanks for the review. On Tue, 20 Oct 2026 13:36:30 +0000, netdev-bot+sashiko@kernel.org wrote: > 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 in the baseline driver; we will address separately. As noted in the review, patch 4 already bounds the requested response size by the RX slot capacity before admission in the completed series. > This isn't a bug introduced by this patch, but can a late response for a > timed-out command be delivered to the next sender that reuses this > msg_id? This is pre-existing in the baseline driver; we will address separately. As noted in the review, patch 3 already keeps a timed-out slot reserved until its pending response is consumed or teardown retires it. That protection remains in v9. Regards, Wei
Technical Details
Message-ID:
<hwc-v9-v8-review-20261022-patch2-b09e6c742e9b326f8dde@linux.microsoft.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350608-linux-kernel-netdev=dewy.ruReferences:
<6e6a337c466b86d93c52ea0adb5c7121ea3e9a7e.1791998462.git.weh@linux.microsoft.com> <179250339038.3135.16651240191139289948@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350608-linux-kernel-netdev=dewy.ru From: weh@linux.microsoft.com (Wei Hu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v8 2/4] net: mana: give each HWC message slot its own completion state Date: Thu, 22 Oct 2026 14:44:08 +0000 Organization: Usenet Network Message-ID: <hwc-v9-v8-review-20261022-patch2-b09e6c742e9b326f8dde@linux.microsoft.com> References: <6e6a337c466b86d93c52ea0adb5c7121ea3e9a7e.1791998462.git.weh@linux.microsoft.com> <179250339038.3135.16651240191139289948@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="233066"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:BlB+R8CyVt+k4iRypU0bIpo53bs= sha256:G7b+DJ9y6RPA1ANd7sx66LwWcc++e7WU61jR2XUOp0s= sha1:IvznMSmz3ZUKr+2PAuULBb+s4kY= sha256:y1X/ef7DgIG+ghB83bcRAfDOSx5D48QJR2uIl5sDfR8= 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 C6E3B1112A7; Thu, 22 Oct 2026 17:45:15 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 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.25, 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 TlBUzB8A0bq7; Thu, 22 Oct 2026 17:45:13 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-350608-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 6C3B4111277; Thu, 22 Oct 2026 17:45:05 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 56C6534B54; Thu, 22 Oct 2026 14:44:21 +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=1792680259; b=VPETlKwRE7mNDkbh9grnfI92/PZnMWqUt2ITDDGYhrCEhUIArwKlyc7ToxPMdwFDO2Zy 7IYWdoWDQ3odanvIrx6fWljSRJ1+hO9yQgALyK576L2WxzlMBtntNwftmvvTRILu/HGBn eaigm8BpouKUwr7TfLzIFmFvueuG8AcGS8auxDJd+UYGR86tEChsn+pBETAEqjuwYJh32 gbIGlwPoZPsTJiTOtU3IP933FF/e5mwwQT8u1pWz0pco9hSahfYiJCL0WndDvzeF5SLyf 4bXkmJv1NRlqqXttVfLthACp0M0duWGK4qnSolLmcvRg1eWueENevjECiHRQ8M14NLw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792680259; 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=WLA04YGmvJYf4ztBr1aZyMGrcsH9UVf2VtyeG0AJuUQ=; b=M9qhqE8X8DarIAI23gyId7OY1EECYm/dcQ3RYeq3dzunupUkiylMXesghQBbciuLM/Ef MSTswUlB1VnvS85fcEh0k+5551iYvfu/jNhX9y/BOULFHgcHEBkqF6FSoMR2ZbUfIUVsy MOI+KFLHcwv5HFe7EeBq1CHWi3Gx3v3UzTcSS5n8xaKWFdIixVdogCKtttfHG1xD13SUw F6hiPsZlRmJ0clJyIXK3H4jn8vUWXF5yFRcgiYW+dis0/f9W2VIhOjSw3wuGsYg/cwcGP qAY3R7b8U9/WDGDqUSbyo5XhVILX46CimBnhgK9LdvrEMvUf3DUYKF1k5jaHb8iRSxg== 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=GAl7K4+U; 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 F4090606A338; Thu, 22 Oct 2026 14:44:18 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=GAl7K4+U 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=1792680258; b=ilsOdoniqiP648eBXVCOCc+gUi4zDT7FvFk89HsPBgwCS3Ad6LwEzY42OJ7WLpBlE2RU 8HigcjgfwKxv5VwcHIGHtr/v5JyxVjI2dL5LZ2hVGHnsafzfaLGPQ3rC1i5Ujpq4cONGS i7iABQlXxsdahqOyT+zUATkwexMiQhGEeL0tuXIqMdFuPhMSl+MG6YfEbRXiC861P9Ela ZLHpnAUT4mtkyE3n77dVthY0/XS6EH0gnubSSRj09oDETZQPfbPGprtecAgEDBPKCGe8Y 20kEHzkx7UT5I/WPYUexe4+zBK0BKMKG6zE9zSGaDANr0bByZ43O1DM9fnuJNW+wcLA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792680258; 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=WLA04YGmvJYf4ztBr1aZyMGrcsH9UVf2VtyeG0AJuUQ=; b=jP9sOLqupsa891ifBwRzI0xosEJ95qqx+nKSkWfT9pk3LKEqOYhBuoKEvn0wA/ndnHrQ 4VtbwLSIWizirEkMB2mbnFikpW3mrjLw5ReCixXYy/lb5WG6KE+dmlpNq13sgrh5+25XR 0/2SuEjpxL8KeDPOMeSnzZD6TP/w0cr/ZYB661cVgXkHaDZd047P7ZwjPQXHW1PdEzEqb PqPH8YnthqThWG6ArawqPJIWvh2Hgs93hg7smoFLZLhaI8iydR2InNPEqKawn0l7lqiVG vTByL4lRxGtpeGvsE8jNVNufFvGdD/lS1lpre6lr7p4nANUgCYdQF+OKWkej0tKq3EQ== 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=GAl7K4+U; 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 C51AE606A327; Thu, 22 Oct 2026 14:44:17 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C51AE606A327 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 52A2520B7168; Thu, 22 Oct 2026 07:44:08 -0700 (PDT) X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 52A2520B7168 X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1792680249; bh=WLA04YGmvJYf4ztBr1aZyMGrcsH9UVf2VtyeG0AJuUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GAl7K4+UQNW5IIqFXqg1ctHU6sR0MyK/VlmN/N4Xi47DZykpYLZuId4AY1UswkxUW T1UPK/JN6fdt9UeKdHGHjHzHabXKEGisW4wH8eQvX4d77fUXV+4Yk+2WrIkAPEdTcp Eg33sIXJHJqfBhQOyuMVKK32DuMgWuUsRVCUpXw0= 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: <179250339038.3135.16651240191139289948@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