🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21224

Re: [RFC net-next 0/6] ipv6: validate dsts against the netns route generation

#21224
From: David Ahern
Date: Mon, 23 Nov 2026 18:36
25 lines
9183 bytes
On 11/23/26 5:38 AM, Ralf Lici wrote:
> On Sun, 22 Nov 2026 15:30:29 -0700, David Ahern <dsahern@kernel.org> wrote:
>> Ralf: This aligns with the direction I meant in my reply on October 13.
>>
> 
> I see, but the concerns from my October 20 reply [1] still hold. There I
> noted that a stamp stored in the dst would have to stay immutable, and
> that reusable per-CPU and exception dsts would have to be replaced when
> the generation changes, rather than updated. That is the problem I
> describe in my reply to the cover letter.
> 
> For anyone following this, the analysis of the race and the series
> addressing it, now at v4, are in [2] and [3]. I would have welcomed an
> answer to my October 20 question before a second series for the same
> problem, but now that both are on the list, how would you like to
> proceed?

My goal here is to better align ipv6 dst handling with ipv4 and not grow
apis for the validation in some parts of the stack or expose internal
details outside of the routing layer.

That said, I have very limited time to work on a proposal. If this set
cannot converge on an acceptable solution in a few days, then I will
have to move on.
Technical Details
Message-ID: <2354d63e-1ba5-4655-8cea-2918fa0ee51f@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369671-linux-kernel-netdev=dewy.ru
References: <20261122222717.126333-1-dsahern@kernel.org> <20261122222717.126333-2-dsahern@kernel.org> <a31eccac-79fb-4fcd-81ea-243592f20c58@kernel.org> <20261123123800.406950-1-ralf@mandelbit.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369671-linux-kernel-netdev=dewy.ru
From: dsahern@kernel.org (David Ahern)
Newsgroups: linux.kernel.netdev
Subject: Re: [RFC net-next 0/6] ipv6: validate dsts against the netns route
 generation
Date: Mon, 23 Nov 2026 11:36:43 -0700
Organization: Usenet Network
Message-ID: <2354d63e-1ba5-4655-8cea-2918fa0ee51f@kernel.org>
References: <20261122222717.126333-1-dsahern@kernel.org>
 <20261122222717.126333-2-dsahern@kernel.org>
 <a31eccac-79fb-4fcd-81ea-243592f20c58@kernel.org>
 <20261123123800.406950-1-ralf@mandelbit.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3954406"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:6IUcfJoC8BSl8WUB5EgM5A27aXs= sha256:bmP9ojoPhkwVDPNF+rkHzb93jX5lfE4Nv9VbVe41Vx0=
	sha1:d5pR+ZLtewqEZcwAvYftSAvGEBQ= sha256:3MdFFOH98zIFuRhtsRNjZrCGtAlfDxERspTsfX6/tcM=
Content-Language: en-US
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 99974125DB9; Mon, 23 Nov 2026 21:37:02 +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 zcwRIZZdAhgx;
	Mon, 23 Nov 2026 21:36:59 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-369671-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 C0895125DC1; Mon, 23 Nov 2026 21:36:50 +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 C69312655C; Mon, 23 Nov 2026 18:36:48 +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=1795459006;
	b=kPsR+0muyC/o3XkvLODOkDO9R9K2UGa6un2pdVjmq4CbrJbadO7F2HCGnSxlUiZeGcmr
	 B5lLTOJEDZQcQdOf2JLwl05G6CrRBG76SPb6Yrm3RmHciBzkFrJLs9GzERlPqbZ7Muy2d
	 VBtE607CTA9Z8SkTRN8bcNY0gd35c1Lh6/s6pKN52njdoyrv9xpeWxyVx2KElQcSzL1ef
	 +Hdop9+Y0y061mAj2z0yGoB2fYpgzldcQXiWvqvPIysc6MmOZIP8QAs+DK3HyBCDKFjVP
	 BgqAzXb0mWbkKACWKuMezoVZGM64PnYtEVAer6yIqhOPQ64T7JLD63U1BM7maVjh5og==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795459006;
	h=X-Original-To:Received:Received:DKIM-Signature:Message-ID:Date:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent:
	 Subject:Content-Language:To:Cc:References:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=7r7GnRZECH1M6EHRn/jHaAV4CIG5khxbrEbhVI2U8g0=;
	b=tZT83vkR7RMBQhINWucKoMd/FLhB3LMw+1doh0DQsNvaCr2rnIBxyTPRGXTXBaOdkyCW
	 gxO02c3JOaZaD33K7YFuvZitWwXdAd9Vczdz+SXmpdZA+ynFwkYyB03yac9X1TvnYjASr
	 qK//wwh456uOy2dEtI7Xbm9j4BN2yQ4sAEE+soz/PV34resEWvbr21vl4JT9ReADIoTQV
	 eVYfNWYpJCrElFMXyfGC88v4mAtgQMMXDvcWpkqvmG4X04RX+arsrsQ3I7ofYenaA9HgS
	 uj6Z3wexV3acW4Fg6e/LVLKRqZcxGk3q8i2NK7BrD9g3dmA13nj/xypmQLqs6Gtcs2g==
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=UaAVT1Jn;
	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 B68D4606A32C;
	Mon, 23 Nov 2026 18:36:46 +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=UaAVT1Jn
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=1795459005;
	b=QhEeot1I7gCXQPj1oOprd3V83fIkFw0cnPNzcGbuL9xce7MxGz6l+fb6NC+18LFdixg/
	 8hFpsvTxg5ck3doHvw1c/QOs15pgcYhvtofDBiu3lHS9x+YZ2k5Osmen6+i4fR2fW42k7
	 7rShAWxaJNX3oda4hhSfmM646p5LYtn/+zE1mtX8Mxo4vZ2C26xZN2EeL+rASwnjIsE32
	 efKHekVtSb6CI9M7boqKkSQAFNUGaYIuM2kbz0ZwzI7Hh1anQJNP6V3Q1fIgZ1cSjtMCo
	 ecLlfkWMt0j2Jp1y+V1BMaRoUTUcib8XXFSCqn6oNJjkfjfiI/odPlGhPIPr8HWbN2A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795459005;
	h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent:
	 Subject:Content-Language:To:Cc:References:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=7r7GnRZECH1M6EHRn/jHaAV4CIG5khxbrEbhVI2U8g0=;
	b=AG3FFLvM+7qhshyEM2nBUeri5ZR69WGSrUZ+ZdNcOa/EVJlhkW9GPwvc2iDdcxiTEHwB
	 67jlT0qI5fYm/IuKAlNCrKIUpaWH4kpUm9jEN8pmoKqzX71GjcC8QNoVoIHMFKoozw9rz
	 zIdXUkQHakqMqMuRpFsO6ae4mEpi2NHaTfsVZT9f5fzHAMRMrqVC0K5g2tM54rCINyHtE
	 l+vjw/SVIF3Tpe0Hvgm0j3sw6GfPrrUZv98iznXJ1R6Wj2lPZFwMsrlKPfmOCIiQrNL45
	 yQZiB3/AmA9tWBI8TAohbb+NUnmuBgKeXE1n6bM/71jq32oU9TxxC3/1Wum1i/YpHbQ==
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=UaAVT1Jn;
	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 D1FC5606A31A
	for <netdev@vger.kernel.org>; Mon, 23 Nov 2026 18:36:45 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 014DE1F000C0;
	Mon, 23 Nov 2026 18:36:44 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795459005;
	bh=7r7GnRZECH1M6EHRn/jHaAV4CIG5khxbrEbhVI2U8g0=;
	h=Date:Subject:To:Cc:References:From:In-Reply-To;
	b=UaAVT1JnsQUx9xfuaMVRnBZGJjojY+KgMuXO0OOa2DjLNfov8JgfZIlCVoUTrSpcW
	 k2ApTDZFmoSJ33mI9Nt1vy6OBJzrG5phXMOLykCUBSQconR/RCq7ViPZ0en3GASkHe
	 S79Jf0atu0Kyett+ghwpmlkpsSoKCZZtwIXQtk2fAsaBqfn8X49PLx5N8kX+7aaCih
	 kXEPDlaqslXVbl9+vyZfWTtEHLpZJ1DIZ3xC+6LDuaWYrJmxEJFBv4MkQb2hhx1SRI
	 TU5tvlT99JscmohamA9s45FubgnJBtFo/U0IWFEhuPPP7WwwYWi8+0vZ6jlXdf2gkQ
	 s+9pGg68R0bZQ==
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-User-Agent: Mozilla Thunderbird
X-Cc: netdev@vger.kernel.org, David Ahern <dahern@nvidia.com>,
 Ido Schimmel <idosch@nvidia.com>, "David S . Miller" <davem@davemloft.net>,
 Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>,
 Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>
X-In-Reply-To: <20261123123800.406950-1-ralf@mandelbit.com>