🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5716

Re: [PATCH net v1] net: sit: unlink PRL list before RCU free

#5716
From: Jakub Kicinski
Date: Tue, 20 Oct 2026 20:55
11 lines
8089 bytes
On Wed, 14 Oct 2026 14:08:03 +0800 Binbin Deng wrote:
> Deleting all PRL entries queues the old list for RCU freeing before
> t->prl is cleared. A reader that enters an RCU critical section after
> call_rcu() but before the pointer is cleared can still fetch the old
> list, and that critical section is not guaranteed to be covered by the
> grace period associated with the callback. RTNL does not prevent this
> race: RCU readers do not acquire it and the writer remains preemptible.
> It can lead to use-after-free.

Eric already fixed this
Technical Details
Message-ID: <20261020135543.4e44549f@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-349573-linux-kernel-netdev=dewy.ru
References: <20261014060803.286885-1-18983559317@163.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-349573-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v1] net: sit: unlink PRL list before RCU free
Date: Tue, 20 Oct 2026 13:55:43 -0700
Organization: Usenet Network
Message-ID: <20261020135543.4e44549f@kernel.org>
References: <20261014060803.286885-1-18983559317@163.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3958945"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:qzGH0AGGkdcGrSUsTnxv21htuho= sha256:Z3y049wzFG+goMpxFNaqg0UoACIDR3JYz7BjTYpruAo=
	sha1:Qur5olEUsNWIA4ta8ni2klhJeZo= sha256:hV2XJIoew/A/icOHQlMNc9sHGZJckm0qES1YWaDcbbc=
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 BF2C4110E49; Tue, 20 Oct 2026 23:56:13 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.729
X-Spam-Status: No, score=-3.729 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, 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 XmCc1pQAI6Z3;
	Tue, 20 Oct 2026 23:56:11 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-349573-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 EEC6E110E1A; Tue, 20 Oct 2026 23:56:02 +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 CBFC4351A5; Tue, 20 Oct 2026 20:55:51 +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=1792529749;
	b=VAwc3DBJiUyydNcPyuqLLEnXcuAYaQ8KRVBGrcQDsUOVMxKxdCyQdI/ecq20j4+tGroK
	 98YCDCR/NS6sG2rzrRb05dkOD6nY6jDxP8uW8umbDPO3nsUJvG66mtxVgqifFwG1nL+XJ
	 OTQZcjgT65B6WaJ3aGlImQ+s2NT/XvKizinSS2BSBjrVXmzxMR4S4zbJkGNTN8o3b7BgX
	 bU84BHr2I8dDXoaZhJa+oWLmbRr0rHy2qVcaXLF/2sVtSvoPWukLvrrrbjklrTOZYuOkF
	 FITtO2Gf7Mf4WQl/wahr8IVjZrrT7FUW2kSs7RcAFSfXgnuRHtnw82IvY8H5k8Ptn2A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792529749;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=M1mqdzT9t0ObQ2WW+nnA9+TcUoqeXJABSq60W+bpP+k=;
	b=iFyONpteBV3pwbtLnIAnPxuLoA/4a0n31p1AQZeEzi+VqgmZ6pznAU97CfmfaFKNqdfA
	 emUSRie1tSITpb4yAVzAf5qedCX7w9UJc5pV/2W8Gr0oJjiZK8FE6I0LM63bKUdHAQpQk
	 yTgBkoSS6++hdW8dVfawTjKNs4xvyZhPauSu3/HuG+nGKiuhiKc8sYr7bMPkfyfOtApzv
	 njn74nX/WkO8jDuS08FjD7ywZwMjGmWgNVu0jqN8NPZFH+OFQwDiRiljU1idULQeiXT53
	 t2frUKiakz6NDlvZpN4eztP84H6DNLTWO0OKaeIhC2RsjWJVf/4Jae+D+LyAWVJpyNA==
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=Thdb1MJd;
	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 EE178606A336;
	Tue, 20 Oct 2026 20:55:48 +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=Thdb1MJd
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=1792529745;
	b=WLS7TFXt619Mu/B/S34kyTHaifwURKZFs5celJib2nmsPyVsJ2UUns4woCSGaiHWDu64
	 EASCdiZG6qVDMnrX6xmHdU2H/hB37QAll9LpJo4kDGALqEJDRl/GKiQg8CZsYzVQZ+Q+W
	 IQEVUBENfAmVxI6c84sgI0kYPMMnMLpDvx3Z9JO48wh1utZfOSndH3d70sXHuenGRnNW2
	 /1m2o3j0TN/YGOdIh/ElIDgKjmAvJ8tAAxp1EblM/NSrLPa8Hxp+3IuzbBrY0xBzDRERa
	 yIzYOgTbyd1xCrJQ52siMRhAvvuQsMx9KGkq/0iCZo3s6sVsh+rM7fj7w/3DVoTA+EQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792529745;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=M1mqdzT9t0ObQ2WW+nnA9+TcUoqeXJABSq60W+bpP+k=;
	b=OZlKY0e0YMv5ALHvYv8+wb7ySd0VTl7f5jm21h8+91vfRsgj8wOFNLTkjTWk/rAHwWSi
	 9Lo5yZqRoi+Z/cLJsjSFQOC2RAhUa74etiTG8WJV9LsJtKDTrLxJ6VLkMFAyXRagPvbkU
	 O/Nm0d+dXKiBqlb7vujzjg5yTugeXRfLrrxBAZwT2To24KufGvJKklUhAb1zU9IufboY6
	 ljKJBYnHXvc1PGosVXpPAtv8/v8MMG2eAHvJ4WrBiyXicDsi0zUtia6sBxY1tFVrWasn3
	 6f9B5u1FPT9HIUqWwUjtXv7xB0y7M2HW+8DBEzYFHaGFvPL3qXX+jRp4nCn6MyKHysA==
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=Thdb1MJd;
	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 DD224606A319;
	Tue, 20 Oct 2026 20:55:44 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77DA01F000C9;
	Tue, 20 Oct 2026 20:55:44 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792529744;
	bh=M1mqdzT9t0ObQ2WW+nnA9+TcUoqeXJABSq60W+bpP+k=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=Thdb1MJdWEFF8y0tFIZxmYXypnJbmjkgWZxhKPMt2PqtOVseEaFVCxVQnTF90LgL4
	 lHCQZ+qSE0Pgi2s5GqHJqFWCFhjas/6IMsTlTLfWQmU1z9hOcMhbDX3NrsTzVqIW4T
	 fho4ykIl/M1neRYscDvzfri1gT9lgYkQ+dLz0v+UK1fi0zIfNzAzTI5xAbUwQ9v6e7
	 QFV92ndRYpFnJB7321Ef45CZyqduLvkRU+yb14jWjKW9/+fEmwSbKj1+uHqed8fyhL
	 cvl91LldXL/1sqMSd+5Hen/vrK9+YcKNhVHogXoITH/q82WPyR0pAnY0ZdGoHvUqIb
	 L19Rz05cukXlg==
X-Cc: davem@davemloft.net, edumazet@google.com, pabeni@redhat.com,
 horms@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-In-Reply-To: <20261014060803.286885-1-18983559317@163.com>
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