Article View: linux.kernel.netdev
Article #8624Re: [PATCH v4] net: bgmac: fix TX DMA unmapping and slot cleanup
From: patchwork-bot+netdevbpf
Date: Thu, 29 Oct 2026 16:20
Date: Thu, 29 Oct 2026 16:20
25 lines
8796 bytes
8796 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 28 Oct 2026 09:48:39 -0700 you wrote:
> When mapping a fragment fails, bgmac_dma_tx_add() unwinds with the
> wrong slots. It passes the failed fragment's slot->dma_addr, which
> holds the mapping error, to dma_unmap_single() for the head. The
> fragment loop indexes from ring->end instead of ring->end + 1, so it
> unmaps the head a second time as a page and leaves the last mapped
> fragment mapped. None of the affected slots get their dma_addr cleared
> either, which includes the head slot when mapping the head fails.
>
> [...]
Here is the summary with links:
- [v4] net: bgmac: fix TX DMA unmapping and slot cleanup
https://git.kernel.org/netdev/net/c/4f45e97b3aac
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179329080729.553408.1898969797486604719.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353374-linux-kernel-netdev=dewy.ruReferences:
<20261028164839.28605-1-rosenp@gmail.com>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-353374-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v4] net: bgmac: fix TX DMA unmapping and slot cleanup Date: Thu, 29 Oct 2026 16:20:07 +0000 Organization: Usenet Network Message-ID: <179329080729.553408.1898969797486604719.git-patchwork-notify@kernel.org> References: <20261028164839.28605-1-rosenp@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2045692"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:fd7DHd201D0RWCMsxAb+nNcpG4s= sha256:AewDlVrut/bwjeDqluf9qv2awgJ8aGhOl+S7TBZxld0= sha1:t47PhqIi4tZOa/6bqUn7BWEYOuI= sha256:/caR1WqBXnsPxCXWpGjh30uEtRsCdJDb4hXDa+CjQT0= 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 7A330125C69; Thu, 29 Oct 2026 19:24:57 +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 tp690SG1o1cC; Thu, 29 Oct 2026 19:24:54 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-353374-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 901CF125C6C; Thu, 29 Oct 2026 19:24:46 +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 DD6BD2D4F3; Thu, 29 Oct 2026 16:20:12 +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=1793290810; b=xXKfY4tkZuDZukNqumBWBzwTSlukybG7vvkoPgQTn0uzJ69YgV/YULjSQxYRV/7W6rbO o40lyww8RbHF/MglK2My0e+u5Df4CbmdgB4TZhR0m+ft1HtXXWcBWCKFXG3o3w8464ri1 1roimDcnfDmhGrvm7RfM2fLTu11nqVpQyKwzAnMMJu7zVcPVJVEBLmdjbqqLGxf3yt4Zo oi1TD2EbxcoYlLbXktxW4HAqSQeWjkLUia/n7jIbOkM+UAKdAg7sBPt9YtqN4QCKuuqzQ x+n7hb3Jylrr6899gCi7icg5LA331bIwHgP81yTJzpIQu5zjoVIjhkkaLxQFGFm42Sg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793290810; 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=hKYbUX0m3eC9JH25HJcu05nZz+GxdZO7J7DWby07hG8=; b=UmUg8q5Y6dO9cFtgPeayC8/SxKM7HUWEglj4q9886XKlhAowYYUZLt+MU5gCcxfvw9Rj Ar0gP6OwOj/wNq91AnUELnWhlTt7bsY2YQ0L+bCxvBcYcAZDYuoajILShNvY8p0vGXyd3 BMZ3L+koR+VqTch3iGMu0qDyJ9cDHKiH2zRJrHLj3f63UZPnaXjXcgfmxVIdqZ0DTUy5d FQefuI5Vi+uRYhHLui7jQPCug3GbxUKUIRO67V3xrSzdY9zrxe32E0BzSl9qnqAHLfPUt 7ITu6Q60PMAVumf4fbvq6AjjzQJNqhutEOa8y38E8M/ipb+kWViYvwPcs78Rj9mA8yw== 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=kg+3MJDy; 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 51D72606A33A; Thu, 29 Oct 2026 16:20:10 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kg+3MJDy 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=1793290809; b=wZ9IDakaTLgKgSj+yqQbZSRWlUP4T1CQeK9sHn575W/vdoFnSX0OLdVP7bEtQnaN1iV2 wV2OYTcvQF0HWsBWmQRtVuKyls0WzZt4d6shL6LtqzfALs9bN8j1/lRuj9Gkw7OJi7BJg LTf//k73TZ5INbqkzqvy3Myz8CIBt63ond8mm2IyVpTqqQOwzb4kJ1dEjZ4B6Xwd7e2o4 zfo6GnbBLiRVX3cB4eYHGpbwC+izP5LA8azUmTv8QO9O80H16xS0PHhmWi0uWI7n0x6hZ w3GxZpvrIBgYGUpHhbzWwhvzMtcN3kD4/8jHc8SL5edMqGjQBWf25fTyUEGtPsLCEZg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793290809; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=hKYbUX0m3eC9JH25HJcu05nZz+GxdZO7J7DWby07hG8=; b=jxl2YoxoAVBY4TDb3wZBN11RwmrhnWstSbfJZK0oQa+iLB4BgKVP0EY9WB7H6e//CTfM Pd83mKOZwcbaWfvvEthnDLcFoBVhr6mAtsle496+AYhfIKhWJK3FaB9BBgR81grxYHldo RnczRmnBeZZ2EE8AxVODgiqIqJLI0akEbhCY3X+TWlsRoR2u4izfTLu0IWxem0+ho6bID hc30+KoafQ4OYSPz3TnUwhIv+QfgIPMYmZBKsQms4GCEjs4eu9CLpx3fqWH2Tyt5SaoPR 6hgKXrUkWpsowDgdyRmm0+iHNf6hA+KT5xer5yaPFaNzMV5o6D7vW3b6o9WF2eZ8MWQ== 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=kg+3MJDy; 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 35899606A32A; Thu, 29 Oct 2026 16:20:08 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C41721F01824; Thu, 29 Oct 2026 16:20:08 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793290808; bh=hKYbUX0m3eC9JH25HJcu05nZz+GxdZO7J7DWby07hG8=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=kg+3MJDyS0tZPESfY4OqGHmKXizUIxNCz4FEGcfH/fQgES5Bv+RImq5OmGdd0NI9l RlN+9qizMApN8RhCLgdlA0/Gsv/LWUhgo/WwFbmje7QzK2mdTs8gpGpOA/x84moGpj lkoE6L8geXfJtnFvvk5T8jJKvK8rHof4mXcLbiDaUMLO4v/ZoQhxAq2aLwuik2etla e0vP9lntqeRi9tFTEjwY/gGZH1M3tlvAK/MlX/5n9PMBoI9sxRQjl4Esep9w1cKyh2 sXuEZ81gppmw3YNYO0uQG6xOb5nd2LFfFINElJYsVBwSZKDxQKN0qKITiBdL6FIine 3QWh3we+tvVVA== 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 BA2C53808221; Thu, 29 Oct 2026 16:20: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: <20261028164839.28605-1-rosenp@gmail.com> X-Cc: netdev@vger.kernel.org, rafal@milecki.pl, bcm-kernel-feedback-list@broadcom.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, nbd@openwrt.org, linux-kernel@vger.kernel.org