From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EA4426B0A9; Tue, 16 Jun 2026 15:22:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781623355; cv=none; b=fFGlMJZwYgGQ9mz5EXK66+MOLSCFQnbNYLqErAAYYqrwH1XHjp6E9+KjjJRQK/8/p60s+77o2ddNVQbLLra+m2Zj7G7g7T9wwCzjCZKTfyHND4ks6TZc1JYuF3Z391dZ6lAwDPJhm0atFoQq31TEKGWUd3aNiuHIZF81xf/EN5c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781623355; c=relaxed/simple; bh=A9V3m0wil2NNibyOYcqMDRbtKjapCDIDe2iVMb9yvSI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QPidsWexy4CDkxuu913nGut1ep+hmcqrtROIQ7CSHnXhJ5DqrySHgV/rTubwVcZ0MeqoSxTCejMXYtUuvDl0g/AHp55tGSwXY244/oYlMQaQxQFIqliY7SRGDzWJlP4chXy/AXBod6heBtEFPnDrQCoLUxDVKILFQqxkbKbVgpk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dXFOGC88; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="dXFOGC88" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E1731F000E9; Tue, 16 Jun 2026 15:22:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1781623354; bh=ByHo3awRnJW+Uu9y5Kb9qwtB9epjKuDFEDeuWx9H8DU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=dXFOGC888b9m9vf2Wdl1/HWlU0Y2KilOdLVMU0owkE6o0GjIzycGDKpSljEjLs+4f 4aye2Csu6AM6QCFjCS8nBMuxIPqE5lK36CC8o3p2A6RU47/pZO1E7SAhexlhKi5jP6 WdKjyVaN162d5EGa38D98/XMJ90945Cq2CwKpoEs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Noam Rathaus , Eric Dumazet , Steffen Klassert , Nicolas Dichtel , Jakub Kicinski , Sasha Levin Subject: [PATCH 7.0 132/378] ip6_vti: set netns_immutable on the fallback device. Date: Tue, 16 Jun 2026 20:26:03 +0530 Message-ID: <20260616145117.258480602@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260616145109.744539446@linuxfoundation.org> References: <20260616145109.744539446@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Eric Dumazet [ Upstream commit d289d5307762d1838aaece22c6b6fcad9e8865f9 ] john1988 and Noam Rathaus reported that vti6_init_net() does not set the netns_immutable flag on the per-netns fallback tunnel device (ip6_vti0). Other similar tunnel drivers (like ip6_tunnel, sit, ip6_gre, and ip_tunnel) correctly set this flag during their fallback device initialization to prevent them from being moved to another network namespace. Fixes: 61220ab34948 ("vti6: Enable namespace changing") Reported-by: Noam Rathaus Signed-off-by: Eric Dumazet Cc: Steffen Klassert Reviewed-by: Nicolas Dichtel Link: https://patch.msgid.link/20260608155918.787644-1-edumazet@google.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- net/ipv6/ip6_vti.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/ip6_vti.c b/net/ipv6/ip6_vti.c index df793c8bfffb0a..d2b74a6f2cf62d 100644 --- a/net/ipv6/ip6_vti.c +++ b/net/ipv6/ip6_vti.c @@ -1159,6 +1159,7 @@ static int __net_init vti6_init_net(struct net *net) goto err_alloc_dev; dev_net_set(ip6n->fb_tnl_dev, net); ip6n->fb_tnl_dev->rtnl_link_ops = &vti6_link_ops; + ip6n->fb_tnl_dev->netns_immutable = true; err = vti6_fb_tnl_dev_init(ip6n->fb_tnl_dev); if (err < 0) -- 2.53.0