🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10124

Re: [PATCH net v5 0/4] net: devmem: fix RX and TX binding teardown on device unregistration

#10124
From: patchwork-bot+netdevbpf
Date: Tue, 03 Nov 2026 08:10
39 lines
10168 bytes
Hello:

This series was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Fri, 30 Oct 2026 08:35:34 +0000 you wrote:
> Fix two device-unregistration lifecycle bugs in devmem TCP bindings and
> add netdevsim support plus selftests covering both RX and TX device
> unregistration. These issues were found via LLM-assisted code review
> (Sashiko) and reproduced and verified with the new nl_netdev.py
> selftests on netdevsim (not tested on real hardware):
> 
> 1. net: devmem: unmap dma_buf synchronously on queue uninstall
>    Synchronously unmap and detach binding->attachment under binding->lock
>    when the last RX queue is uninstalled in mp_dmabuf_devmem_uninstall()
>    or closed in net_devmem_unbind_dmabuf(), and unmap remaining unbound RX
>    bindings on NETDEV_UNREGISTER, preventing slab-use-after-free in
>    dma_unmap_sg_attrs() when the binding is freed after dma_dev. Factor
>    out net_devmem_lock_dev() and net_devmem_unlock_dev() to synchronize
>    netdev_nl_sock_priv_destroy() and __net_devmem_dmabuf_binding_free()
>    against NETDEV_UNREGISTER.
> 
> [...]

Here is the summary with links:
  - [net,v5,1/4] net: devmem: unmap dma_buf synchronously on queue uninstall
    https://git.kernel.org/netdev/net-next/c/c4466d2c3e77
  - [net,v5,2/4] net: devmem: detach TX bindings on NETDEV_UNREGISTER
    https://git.kernel.org/netdev/net-next/c/ede1618064a9
  - [net,v5,3/4] netdevsim: support devmem RX and TX bindings
    https://git.kernel.org/netdev/net-next/c/c153da399354
  - [net,v5,4/4] selftests: net: add devmem RX and TX netdev unregister tests
    https://git.kernel.org/netdev/net-next/c/121ba2ac7968

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179369340630.929695.14145463061574872626.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-355282-linux-kernel-netdev=dewy.ru
References: <20261030083539.777877-1-almasrymina@google.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-355282-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v5 0/4] net: devmem: fix RX and TX binding teardown on
 device unregistration
Date: Tue, 03 Nov 2026 08:10:06 +0000
Organization: Usenet Network
Message-ID: <179369340630.929695.14145463061574872626.git-patchwork-notify@kernel.org>
References: <20261030083539.777877-1-almasrymina@google.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3120879"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:WRfxhH92Ex3rIeq6bgy8rzoonJE= sha256:oU45bLu7TnEBRuAcUYeqrybg1ZYhfMAGYxTVkFZmsyM=
	sha1:dXWbGphWarRqxQf1CtKVgJ5RiEI= sha256:0EG9JTRmy8DeGtNWhu8T7mliRwMFvprAMuISYdaHpko=
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 4CE6B112775; Tue,  3 Nov 2026 11:16:26 +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 TaV0Bplk_Bt0;
	Tue,  3 Nov 2026 11:16:23 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-355282-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 075231126DB; Tue,  3 Nov 2026 11:16:14 +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 0E2702AFDA; Tue,  3 Nov 2026 08:10:31 +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=1793693414;
	b=sdf5dyKbrZhFGx7MCcehx0lQ3mgzV+ZG8ZUiMkCAvv644NxfxPVDoWomkhGa8gG1FdSm
	 aiAB7UVRhbk8aCipL3WCUSSxd0utjT+rwIVqqJ+Cm7wb1ncCUULUtLZ1eq1NiFtqUT3yk
	 1yPtXeiH/ND1MojS9lh6w+w/4jkCa1Y/vkFvyf3sGOUpSJjjiFFhyqz8lFvjZEcyYmDC7
	 uNrJaUFfekMWicFOMcbln7TpUxaQBvUbklm2ZcLkQiPArGz3n2Z0mhRRM3umvV+fwty6m
	 21sGF76cSOtv06zBAup5q3jWT9TjgTknrgScdYoNr7oobJoh1WxsiG3QT11lWO171Uw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793693414;
	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=W+rCt5JffqT9igP/FHJlTjxb2JKgyvGadn6kqlftxyg=;
	b=X6O7xh4eq+Jx+v+9x+K57GelnzOpfHg5BSJDSrt/TKHe4dMJvfLSyWICFC8X3opVCRjV
	 W/k2e7H5FA69yjg39IwUELrtK3kQwfV02bx0jCNZRlodtgbtsIgqW4D68PnhOybx6G8Ok
	 z6O8mUDi6618jlR8hLofBe6ta4JUTi04fKuROJM7B42+VgpH7yKMbErdV32kuvDvGBc11
	 pF1PzqLp8+nzuBJARh1Vh/2L0Or/dIIj/eSVS4E7PNKNj+8lPUdIq2q0tRHBmQrGHLDx/
	 kj6IlZ6jFpQBM3yInLpskMtutfFlClTQMpaPCujDQ5wDdX8Gm5IhtK2A9stql05DzrQ==
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=Go5owOop;
	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 4D776606D808;
	Tue,  3 Nov 2026 08:10:14 +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=Go5owOop
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=1793693408;
	b=qBT9YDKDRpCYtFuQIllvkcguZFWqfGaPvJGzx72L8uL1MKbEtXZV8y3Hyn2vZSWI7Ghk
	 auwa1dDds8EyFHr7AXM/1QDLKkwmjub259uYSHnaA1mT50yYb5aX3aV8N4g8LVWANG/EV
	 kvQOxB37ibn9SOEd/uhcznVypPzQcrw7ByyGujC9/lGdZ4PsunlbpWB4MXst2xUj84Aom
	 Lna1E9NIycFEDU07pCIzKbYZza7iJCiCCu/l9l8pd0+rQr5E/fBtPKjb1h+7EwXw7/YMm
	 aJAqKBAnyW6uOHWVBGASzWue9HBUDrH0mlL1gVNWM6XYc1kgPulpLdhT1grXqICbFgw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793693408;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=W+rCt5JffqT9igP/FHJlTjxb2JKgyvGadn6kqlftxyg=;
	b=HUoYsqwHlxSQoLh275fOHXnnQzCzEHl8cYjQTtaJTM/H7ZY8olKDLz/IJGKIVu8cqNej
	 oVPIslyCSQwP0LAIiXM8bSpTloBJSlAWrEcEO2ZSIVO9JY6QJ4xeLd9pyl2XdNZlUJbVS
	 n878ZwpO9lS153ATjVYsxNE10+mnzpPgVX4l3A9/KD4pqgl7XYv+YenhV/Qt+3MYg/Tgl
	 zRJGHUNu93LTOy9fq3vSfa83GIaTNN4ojjJgnhtXxxwjjOLEqY6laKDuNoYCk2u+E6IGz
	 2r8oDdaiFMaE18rETTSOYnONSNoXcD/ATkiuLPKvm+0+XVz+/RpVWaGHYXiE1moEVVQ==
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=Go5owOop;
	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 1BFFC606D801;
	Tue,  3 Nov 2026 08:10:07 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C4981F00919;
	Tue,  3 Nov 2026 08:10:07 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793693407;
	bh=W+rCt5JffqT9igP/FHJlTjxb2JKgyvGadn6kqlftxyg=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=Go5owOop+lJsQUqur9qbyUb79jlZHreekfAOVjWqHl5+PJSLH1/IDqLr2vU1qMsTq
	 e/gTUjOte224eNmE672iD7k8DECG4jgF0Gk8pekN/K6BMi2JfOCScPPbnYYeFfwEWu
	 DfSJI/MOhZ6qWKJK6tbrwvjar3Pwvh2VZp8aU4l6AOInYQKoI4MZu4rJSdQwdO0T6F
	 zJ4M7T3o9JXVLoCZooDnbpyFrq2efF0JUPzHn/Jm+7Kt6bCgkU7JtLbiDZnQEVhQ43
	 KsooIqJXse7U6T9Pzv7KTXa2nkNdsJF3T8sgwj1GMLlwXCQdg4DBxONRmMaE5lNVK9
	 dUvRwZ1BZKQHw==
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 7D39A380823A;
	Tue,  3 Nov 2026 08:10:07 +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: <20261030083539.777877-1-almasrymina@google.com>
X-Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
 linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
 dri-devel@lists.freedesktop.org, pabeni@redhat.com, sdf@fomichev.me,
 kaiyuanz@google.com, kuba@kernel.org, bobbyeshleman@meta.com,
 asml.silence@gmail.com, dw@davidwei.uk, ap420073@gmail.com,
 davem@davemloft.net, edumazet@kernel.org, horms@kernel.org, shuah@kernel.org,
 sumit.semwal@linaro.org, christian.koenig@amd.com, phasta@kernel.org,
 andrew+netdev@lunn.ch, sdf.kernel@gmail.com, hawk@kernel.org,
 ilias.apalodimas@linaro.org, daniel@iogearbox.net, razor@blackwall.org,
 tariqt@nvidia.com, kaifengw@google.com, dtatulea@nvidia.com