Article View: linux.kernel.netdev
Article #18224Re: [PATCH net v2 RESEND] net: ena: avoid double-counting TX DMA mappings on failure
From: patchwork-bot+netdevbpf
Date: Wed, 18 Nov 2026 01:40
Date: Wed, 18 Nov 2026 01:40
26 lines
8742 bytes
8742 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sun, 15 Nov 2026 13:42:34 +0200 you wrote:
> ena_tx_map_skb() increments tx_info->num_of_bufs after each successful
> DMA mapping. If a later fragment mapping fails, the error path adds the
> fragment index to this count before calling ena_unmap_tx_buff(). This
> can cause DMA unmapping of buffers that were never mapped and
> out-of-bounds access to the buffer array.
>
> Remove the extra increment so that cleanup uses only the number of
> successfully mapped buffers.
>
> [...]
Here is the summary with links:
- [net,v2,RESEND] net: ena: avoid double-counting TX DMA mappings on failure
https://git.kernel.org/netdev/net/c/6e9764591bcc
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179496600727.1396957.5369288833503943166.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365766-linux-kernel-netdev=dewy.ruReferences:
<20261115114233.2307630-2-thnkslprpt@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365766-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2 RESEND] net: ena: avoid double-counting TX DMA mappings on failure Date: Wed, 18 Nov 2026 01:40:07 +0000 Organization: Usenet Network Message-ID: <179496600727.1396957.5369288833503943166.git-patchwork-notify@kernel.org> References: <20261115114233.2307630-2-thnkslprpt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2474807"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:/9l2gdtI0aQSa0Ay7Vtj5HZ+9iI= sha256:dgz61Z2S33MK6Dx3hl/zK6E/6McbeXtDbzT0aB9ue/0= sha1:gdfsKlMdhEOk1eR12BLPrhLE6QM= sha256:zjquMW01jtEJeunuNkkKNcXzJkJeLNq2DSIkuWphoXU= 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 742E71150DA; Wed, 18 Nov 2026 04:40:32 +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 ZLF397CiaILV; Wed, 18 Nov 2026 04:40:29 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365766-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 C1AFB115133; Wed, 18 Nov 2026 04:40:17 +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 0474C3CAF7; Wed, 18 Nov 2026 01:40:10 +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=1794966009; b=L2G3a5BcmKSkTHVbpv7+EXGlNFdfdqVIvXj6kKneZ25rLSDiOnsF0mPwlBnMu+lOu2ye IaLElB/3id3zRMW299jqyBUvyzJmjgGuTEoAtlUbROP8bgoOxcH125B1sMNQe48tV9L4o BJDrX3saLf2YmY9CWC1v0WcucZywiGSyOXvjUQpv93RKDHa9f2eh0FQB98no3KVmM+W20 uyr0qIz1IrPtF7Ber4XKzrBua/vOTOILvvbD3vUFya9G4aba5jzEqmySr/BePxmN9OTSM 9tij3DRBDDpuqk+P9OpkRoCp/o273T+XlZg6BzY9fXKmX2HK0MdD7HTBD5A+piPMu8Q== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794966009; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=7g7un8cfaI127Z3S+mYBsyl09TWbFX1ZiPI+Mtq3nHk=; b=VM7rS+uKJeiP0yfG6UYKA7RToCGG4ujdym1HRAXLpDGuy1bSXCRKh5zvjz90Apv17bcs rQLsBk26LYr8I1h+qsl/POB1ocRmm0SKqFkvjQGvvNX449QMjmKy3d80VEgHfEHxxV4xq 7VUG/hmJJKydO/t7KuN8juzVxHUZLiCaOWYFvBUMMPjI7JGLJcsEbd5av9+NG0x8dwLRS IvGcZuek9L6csV9f11Vh0Vn2/ALaKhT9GO83HA2kzGZCZEkmOo65MdhzAEl5N6XGSBShA ew0RQMFUuqXhVJBcefqEC90ZQJO/Oa27jqm7UD2zoZ3NzDwRCYDDIZs2TQ+0EvZJ9cA== 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=KAgOjtZd; 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 CFC7B606A32A; Wed, 18 Nov 2026 01:40:09 +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=KAgOjtZd 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=1794966009; b=JvzEx1df/sGYltwXOWo9aq+9aHCA3FKm6D4fKflG791886m6IVXQ5qmPmuykULlUwcrG wF9IpkXYZK9HR8c76+KpWuSRUOtmq4IzQRwq71eyXPmvhUmKukMNcGpnNO3Ra4ST6DWGw y7GKsCa+Vlb98PrCJewvZOI5Yvx+MeUOV5AtzObjh0v/KqIipiDUM9hB29kBELJV95DqV iLS0pzGwoaD0jMUZqGL1dmbm9LS631UILf20oH8h+ruJ2r7AL+B4HEMDxkoSK13wMRw2u jWmeHJphBYMpuJK0CYs7kSH0JZ5hCW1Z6yp4FQ3DZFFiBLRM77am8Qz/uW7kUcdIPZw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794966009; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=7g7un8cfaI127Z3S+mYBsyl09TWbFX1ZiPI+Mtq3nHk=; b=2+IQMiXli68K9jdMwBnN591SqhO4oXCV22JrGDCyD1QIkgxdIqvNvddFeBIndDkex56p uFwc+LDOI4vXTDs8vksCaoFqDI0xuK7hI4sovXTLaEHCQ2jvWbCy6LEprcdq7KjUnMM6N gzES9itnBcG91318qougBl0MHYUAiW7jNn9a+EjNT5tsDJwX/1L3yicfa//8j5EbCHie1 pjmqr4kJeK/dzbBK7ibp9axLqlhZoTxJPv0T+7OyyCtkNIEiPfqx94wJz3FG5PFMJg9CZ ncKbtib4KBxpGWrZvuXDKfwhmcXAZGQ2U9y/rVUpbnVp70bq9YbYckIawbP2Fq8n2gw== 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=KAgOjtZd; 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 EEFCF606A338 for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 01:40:08 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCE4B1F000C5; Wed, 18 Nov 2026 01:40:08 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794966008; bh=7g7un8cfaI127Z3S+mYBsyl09TWbFX1ZiPI+Mtq3nHk=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=KAgOjtZdd4QKCgalUK0R3UykVxMOWWpv4RJDlk/QD1wl6JVWGKJbl8fHEDdo5NgU3 uYsjukYlfOKJ5/L2JxC/iQA/7XyPz7DjXt0ii480sxR/EfGobNN0yTSzmZtDHDyKmc VT5ln8OaA1fADGRSWCxXdXZvTqLpgPyEL2wKdD63leGrm+F6+uS90ZOU27rrgnQ6QY bfIt0Vm0juvqCR0hCRamkkn857AgwqdPPKLiSOkl8Kr4v6L534M+cDpHq1shpI83FK XrMzLgO7+Ns2M3VoVmSqtWN6HRjiwFnh4K7E+TzbsZu90huhozAFfrYWpVpWX/B4ze VLkDG+qq0xF+A== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id B4345392B1FE; Wed, 18 Nov 2026 01:40:08 +0000 (UTC) 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: <20261115114233.2307630-2-thnkslprpt@gmail.com> X-Cc: netdev@vger.kernel.org, akiyano@amazon.com, darinzon@amazon.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, evostrov@amazon.com