🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26985

Re: [PATCH net] net: pktgen: hold if_lock across pktgen_find_dev() in __pktgen_NN_threads()

#26985
From: patchwork-bot+netdevbpf
Date: Fri, 04 Dec 2026 14:40
24 lines
8719 bytes
Hello:

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

On Thu, 26 Nov 2026 17:04:45 +0800 you wrote:
> In __pktgen_NN_threads(), pktgen_find_dev() looks up a pktgen_dev on
> t->if_list under rcu_read_lock(), drops rcu_read_unlock(), and returns
> the raw pkt_dev pointer without holding t->if_lock. When called from
> pktgen_mark_device() on NETDEV_UNREGISTER, __pktgen_NN_threads() holds
> pktgen_thread_lock and writes pkt_dev->removal_mark = 1 outside both
> RCU and t->if_lock.
> 
> [...]

Here is the summary with links:
  - [net] net: pktgen: hold if_lock across pktgen_find_dev() in __pktgen_NN_threads()
    https://git.kernel.org/netdev/net-next/c/d5cf954cebe4

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179639520465.1200467.16958990561986403801.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377422-linux-kernel-netdev=dewy.ru
References: <20261126090445.1523-1-luob87709@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377422-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: pktgen: hold if_lock across pktgen_find_dev() in
 __pktgen_NN_threads()
Date: Fri, 04 Dec 2026 14:40:04 +0000
Organization: Usenet Network
Message-ID: <179639520465.1200467.16958990561986403801.git-patchwork-notify@kernel.org>
References: <20261126090445.1523-1-luob87709@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2786808"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:LyC7kPeADe8zbVnU4GP2+DKBD3w= sha256:APTZiQCQgo/XLRrNbzDXqBlC9F5y9hdAMTa2SUboJtg=
	sha1:JWysi607LwxitGZah68ZgIE28kc= sha256:Tr4bpH7ix1Xb/9Gny2UmfhfCloU0c66v+KsMkHbw9bs=
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 A2E57117C39; Fri,  4 Dec 2026 17:40:21 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.542
X-Spam-Status: No, score=-3.542 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.142, 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 uvubsYOJoFvR;
	Fri,  4 Dec 2026 17:40:18 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-377422-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 9D324117C13; Fri,  4 Dec 2026 17:40:09 +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 6B782680DB; Fri,  4 Dec 2026 14:40:07 +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=1796395207;
	b=zqcD9Vte8m0VP1uTT/h5FZGyM3rkr1ILwfY4jik+bwrXQ1bRgnf0F/xco9M/pD8lL7jS
	 bZzXFo+EMQ/uTW5TUptv4fzqhz+zwtLsXQHgTGUU2LZjVZUUTJVSoYRBZ+boQ6oR41tRR
	 +aAkKj87bLTIr4YUFOYXmFHSmv1FPLZKBAKEq3I6fIujQ3xiIcRiOwwUf4p7BK5S7NxYO
	 HIKVjQOR39+WD8biJMuWTsJlXdA47bGM2bn3Y5rqO4n8ylQxUgJTsex1XzM+hOd+2k6AH
	 8vaG7Rxskbp6F7bqxWXOqXOW+ilYyBJ+Hy0n0kSi4pz8Q8XDayN1FOk/j7jhzpdnh/Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796395207;
	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=u1vRXZ3Qoj5pdlpDf3APMU/nRV5+yOPikXQsACn4tOI=;
	b=z19Zb5m994Bh/vsnjjPYHJBCp+9dO5bTeTs7/Ld8RISfE1oKa+YxQxLRE/2ZxI6a9d5R
	 YdTwmI6jQRD2+TeICh6UsDe4sTwjvHqvipVS7CQEkXoht1xhpvke4K8K26VftQq9sx0sF
	 G2viUGwjnEOEgPBS2h0QVGTnIOVfLcJwKQXF002aC/vqWBTMXRw89AzUFH4fLlEsUP5hb
	 PCOL9kaMOXkLgb6U9RBBlEoOa4VOTgXnUUvM0j/69IVInCFbKrJfHiRzt9xggIQg9Qxew
	 00OVlMmCixqz1LjxfK/HiYKUxtoMDm1R7eP6U48Mk+PCwekSJ9Xafmt4moaCcGA07sg==
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=iPnlscJm;
	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 2A8CA606A33A;
	Fri,  4 Dec 2026 14:40:07 +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=iPnlscJm
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=1796395206;
	b=BazONGNn/fUL/svOg2OKimCJ90BlsHBBJz8uRjZrIykaT7CROLUkA/QgkbY4MBGsXs1h
	 i9xQI08hln6++nNOnN5ISrxW+en+SLxjStsA00eiBeTPrUu4sB7ENLZZiSh1OXOYPf3/X
	 KEBjCd2NPYEKPFYFyeW/m7g6Nfl1BgtUKofXkDpGfyEA1IQeFbcF3fDHS1jzyhY1t/urf
	 D/7FTWMb3VVAVT66M0vDP2pw3eFd+reJXhFUeomTP6X86/j1dzXLEt8cUGVlXhBPYdQCW
	 ROIp7U4RDlI2wW64gbSX2kZlif2k94BF0BM85HkicOuDsJLGQ3ZlgPAejpnrrtm/0WQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796395206;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=u1vRXZ3Qoj5pdlpDf3APMU/nRV5+yOPikXQsACn4tOI=;
	b=xUvlwuKSPIwmXWCDDXP2vcdij/wfWv06PL1m7sjmaPn2+BlCf4jepxMJZV5V5VGQg+BJ
	 yBH8Xr/aFniRPryDWBj7fBAjTdz8H+WsbxEqHyk0DfRxHU27eStgpKwhFuVOO1u5N2QS3
	 jFATNqLgMKwxtjQiwyNHtsJAs/czm4Ci2aXD+1jDTcfzQjy2BImtaPb4w74LKRKsE6+Nw
	 SrA54Zv3g1pKLsBgD7fEDwK2+K5HvIH84j4SZ8OASbYRzs5mwejqgJB4nGfp+ZuR30CrS
	 hlZLSSxrjjsFZPrkH36sambbbuLn+GvvNTT1ZjMBn14P01WTwX5CTosEpJAqocJoG/w==
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=iPnlscJm;
	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 484D3606A322;
	Fri,  4 Dec 2026 14:40:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDEF41F000CE;
	Fri,  4 Dec 2026 14:40:05 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796395205;
	bh=u1vRXZ3Qoj5pdlpDf3APMU/nRV5+yOPikXQsACn4tOI=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=iPnlscJmeCdBOltjfUTLCASxOPkWdEZKvqzzDQ9EVnv7fm9gmBAObH9YV1BkJrn8q
	 k8RU4rya9LqMpsKuYr6XCH7hJEj4R7L5AV58OrL/nktYeafE3Wc04PzbR8tfoZC+9+
	 sxnTrOm6569TUCI+9FjWFa9+Fo6Kb2lziHQ8lyHv+jXisr/MaumIDqLLLTq+/jQxWj
	 m7O3eK3OcxNb582TQak+/zfXrZVb40VY45UoLc9/8uXqOTL1VWYhH9/yf93dCXZ6JB
	 tpjv0jwlqQL8xOeXOMOJXpqmv0lxUapd13H+3FAC04OdO96I1r7CII1Zh3lW/8t3MK
	 BBSpA182BvO7g==
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 D3BF73808236;
	Fri,  4 Dec 2026 14:40:05 +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: <20261126090445.1523-1-luob87709@gmail.com>
X-Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
 pabeni@redhat.com, horms@kernel.org, netdev@vger.kernel.org,
 linux-kernel@vger.kernel.org