[{"id":3678457,"web_url":"http://patchwork.ozlabs.org/comment/3678457/","msgid":"<177639361854.3490984.12957233652551599024.git-patchwork-notify@kernel.org>","date":"2026-04-17T02:40:18","subject":"Re: [PATCH v2 net 0/2] net: enetc: fix command BD ring issues","submitter":{"id":80291,"url":"http://patchwork.ozlabs.org/api/people/80291/","name":null,"email":"patchwork-bot+netdevbpf@kernel.org"},"content":"Hello:\n\nThis series was applied to netdev/net.git (main)\nby Jakub Kicinski <kuba@kernel.org>:\n\nOn Wed, 15 Apr 2026 14:08:31 +0800 you wrote:\n> Currently, the implementation of command BD ring has two issues, one is\n> that the driver may obtain wrong consumer index of the ring, because the\n> driver does not mask out the SBE bit of the CIR value, so a wrong index\n> will be obtained when a SBE error ouccrs. The other one is that the DMA\n> buffer may be used after free. If netc_xmit_ntmp_cmd() times out and\n> returns an error, the pending command is not explicitly aborted, while\n> ntmp_free_data_mem() unconditionally frees the DMA buffer. If the buffer\n> has already been reallocated elsewhere, this may lead to silent memory\n> corruption. Because the hardware eventually processes the pending command\n> and perform a DMA write of the response to the physical address of the\n> freed buffer. So this patch set is to fix these two issues.\n> \n> [...]\n\nHere is the summary with links:\n  - [v2,net,1/2] net: enetc: correct the command BD ring consumer index\n    https://git.kernel.org/netdev/net/c/759a32900b6f\n  - [v2,net,2/2] net: enetc: fix NTMP DMA use-after-free issue\n    https://git.kernel.org/netdev/net/c/3cade698881e\n\nYou are awesome, thank you!","headers":{"Return-Path":"\n <linuxppc-dev+bounces-19819-incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=nziXgXAE;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19819-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)","lists.ozlabs.org;\n arc=none smtp.remote-ip=172.234.252.31","lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org","lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=nziXgXAE;\n\tdkim-atps=neutral","lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org\n (client-ip=172.234.252.31; helo=sea.source.kernel.org;\n envelope-from=patchwork-bot+netdevbpf@kernel.org; receiver=lists.ozlabs.org)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fxfJS2Tcgz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 17 Apr 2026 12:40:55 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fxfJQ3Z9wz2yk6;\n\tFri, 17 Apr 2026 12:40:54 +1000 (AEST)","from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4fxfJP3864z2xlk\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 17 Apr 2026 12:40:53 +1000 (AEST)","from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n\tby sea.source.kernel.org (Postfix) with ESMTP id D5DD944599;\n\tFri, 17 Apr 2026 02:40:50 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id B8597C2BCB3;\n\tFri, 17 Apr 2026 02:40:50 +0000 (UTC)","from [10.30.226.235] (localhost [IPv6:::1])\n\tby aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id\n 02CE6380AA76;\n\tFri, 17 Apr 2026 02:40:20 +0000 (UTC)"],"ARC-Seal":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1776393654;\n\tcv=none;\n b=g50f5GAURDzQWw3XrE9xA7IUP7bO2QZqnS3ZviSQUwB4e+HsydwVMG1mMxILABhoMFyA59STJ6ZELLNxDZlIjHqKIMooCqwg5+8luTjl834hTW5V4MSk6qnqf3w7OVlsejpb2RKmLUiDHyViIfefvUWbSprDyoLyavntnj+RPre1gE1eC+6RnttL/5Rmi+0W0Irr88RZdwfkWP7PbMsd5lcBGHAjBi1/B8QL303JyyrpytIwL46b0j899ZWqKKParYAukU7sda1Tcpz/fPalLl0osAblbukPXVkXASUhloLEuFo3upbQgNd2hoyol2C/YynAi7/B6npqc+M6zB8dLw==","ARC-Message-Signature":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1776393654; c=relaxed/relaxed;\n\tbh=H+Jlkw2DzxGDVPjkTh09CfTkIC7dU4fvOK8TwWJLXqM=;\n\th=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References:\n\t In-Reply-To:To:Cc;\n b=eY6aBOWl7opvCL1K7AMyCur6fUEQzV1hgH2S1nSvbH5H70cbJRX7e3A5rTjQIZbWzBbnu1h8mOLJ6B4vGFhtOk07r6OFvc9r6ZQEc04erfdNSmqxlgp/1QlKCQYMpXlDQlO2UEb7BtrrVSl8ifB+6DZxMinswC4lSeF3HN4KghTxzwoESvgwGzbRDpdvTi+VtdGmVvZtFfF5ER9LV5NC1jojqBiucQShlQua9eGWtKiekGZAGa2Dav0qtfSr8Wb7jwheVLnNAMKU1Nup77tg6FMVLfruuTPPECFHHir4q+4WSxUzpbOzG/WK51H74lifjjiumWQAaqCI6RMFDu/WmA==","ARC-Authentication-Results":"i=1; lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=nziXgXAE; dkim-atps=neutral;\n spf=pass (client-ip=172.234.252.31; helo=sea.source.kernel.org;\n envelope-from=patchwork-bot+netdevbpf@kernel.org;\n receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1776393650;\n\tbh=RE8pXUNFnXrfp8k86oykmMdq+NuDocEHXqwp95teTlA=;\n\th=Subject:From:Date:References:In-Reply-To:To:Cc:From;\n\tb=nziXgXAEDrvVDkLZpvE+XxCZTTZKH/M0cgCTyVUSO2ln2j+DlzcbyJsIwyuZpEsDG\n\t vcgOQCkJO2fjQFNwe5nJ1v/9IAxyVfVAfW4M9mu2CiDbNdVUDR4T+dZwoE/H70UgNG\n\t mYC7Zy6zrfRPTI0J+S65v+riyW9x20dQKieQc4KgHT2t1BUOjmfSG/ibHXyuciyc9+\n\t peqUsTXW95O8TlCI783Pmcvmgh6OHrgpE6u/kkCz/vpfAA7c5fOpxX07BCI/8d5/TF\n\t pLH1TcwabVr46cyJb2FzLu75ShiMqGTXUjgSdulYkca5q/GJwwuA1cWX6NvjxgoBUi\n\t hvPtDEWqVDNAA==","Content-Type":"text/plain; charset=\"utf-8\"","X-Mailing-List":"linuxppc-dev@lists.ozlabs.org","List-Id":"<linuxppc-dev.lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev+help@lists.ozlabs.org>","List-Owner":"<mailto:linuxppc-dev+owner@lists.ozlabs.org>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Archive":"<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Subscribe":"<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>","List-Unsubscribe":"<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>","Precedence":"list","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"Re: [PATCH v2 net 0/2] net: enetc: fix command BD ring issues","From":"patchwork-bot+netdevbpf@kernel.org","Message-Id":"\n <177639361854.3490984.12957233652551599024.git-patchwork-notify@kernel.org>","Date":"Fri, 17 Apr 2026 02:40:18 +0000","References":"<20260415060833.2303846-1-wei.fang@nxp.com>","In-Reply-To":"<20260415060833.2303846-1-wei.fang@nxp.com>","To":"Wei Fang <wei.fang@nxp.com>","Cc":"claudiu.manoil@nxp.com, vladimir.oltean@nxp.com, xiaoning.wang@nxp.com,\n andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,\n kuba@kernel.org, pabeni@redhat.com, chleroy@kernel.org,\n netdev@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev,\n linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org","X-Spam-Status":"No, score=-0.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS\n\tautolearn=disabled version=4.0.1 OzLabs 8","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"}}]