Please backport d289d5307762 ("ip6_vti: set netns_immutable on the fallback device.") to 6.6.y and older
Subsystems (4)
Hi
d289d5307762 ("ip6_vti: set netns_immutable on the fallback device.") was already queued for 7.0.13-rc1 and 6.18.36-rc1:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
but not for the older series as needed.
A backport for 6.12.y was added in
https://lore.kernel.org/stable/[email protected]/ .
Here is the backport for 6.6.y and older for versions which do not have netns_local.
Does that look ok?
Regards,
Salvatore
From baba4cc5ae46577aa7fc4f163c0dc44833298d9d Mon Sep 17 00:00:00 2001
From: Eric Dumazet <[email protected]>
Date: Mon, 8 Jun 2026 15:59:18 +0000
Subject: [PATCH] ip6_vti: set netns_immutable on the fallback device.
[ 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.
[Salvatore Bonaccorso: Backport for version without 0c493da86374 ("net:
rename netns_local to netns_immutable") in v6.15-rc1 and without 05c1280a2bcf ("netdev_features: convert NETIF_F_NETNS_LOCAL to dev->netns_local") in v6.12-rc1 and use NETIF_F_NETNS_LOCAL device feature.]
--- net/ipv6/ip6_vti.c | 1 + 1 file changed, 1 insertion(+)
net/ipv6/ip6_vti.c +1 -0
@@ -1155,6 +1155,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->features |=NETIF_F_NETNS_LOCAL ; err =vti6_fb_tnl_dev_init (ip6n->fb_tnl_dev);if (err <0 )
Signature · 1 line
2.53.0
Quoted 1 line
Please backport
d289d5307762("ip6_vti: setnetns_immutableon the fallback device.") to 6.6.y and older
Queued for 6.6, 6.1, 5.15 and 5.10, thanks.
Signature · 2 lines
Thanks, Sasha
Hi,
Quoted 3 lines · Sasha Levin
Quoted 1 line
Please backport
d289d5307762("ip6_vti: setnetns_immutableon the fallback device.") to 6.6.y and olderQueued for 6.6, 6.1, 5.15 and 5.10, thanks.
Thanks. Can you please queue up as well the one for 6.12.y?
https://lore.kernel.org/stable/[email protected]/
Regards,
Salvatore