Skip to content

ip6_vti: vti6_changelink and vti6_siocdevprivate netns fixes

Maoyi Xie lkml netdev stable 3 versions – Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 0 repliesApplied 2/2
  2. v32 patches 4 repliesSuperseded
  3. v12 patches 11 repliesSuperseded

Changes in v4 from the cover letter

- Update Fixes tag on both patches to commit 61220ab34948 ("vti6: Enable namespace changing"). Xiao noted the old tag 5e72ce3e3980 is not the introducing commit. dev_net(dev) and t->net first diverge when 61220ab34948 dropped NETIF_F_NETNS_LOCAL and made vti6 devices movable through IFLA_NET_NS_FD. Same Fixes shape Jakub took for the sibling fix 1d324c2f43f7.

- 2/2 adds ns_capable(self->net->user_ns, CAP_NET_ADMIN) inside the non fallback SIOCCHGTUNNEL branch. The check at the top of the case is against dev_net(dev)->user_ns only. A caller in the migrated netns can pick params absent from self->net, the lookup returns NULL, t becomes self, and vti6_update() inserts the device into self->net's hash. v3 did not close that path.

Patches in v4 All 2 applied

#Subject and filesSizeRepliesApplied
1/2ip6: vti: Use ip6_tnl.net in vti6_changelink().net/ipv6/ip6_vti.c+7 -50 repliesApplied
2/2ip6: vti: Use ip6_tnl.net in vti6_siocdevprivate().net/ipv6/ip6_vti.c+9 -20 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchEric Dumazet
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH net v4 0/2] ip6_vti: vti6_changelink and vti6_siocdevprivate netns fixes

v3 -> v4

- Update Fixes tag on both patches to commit 61220ab34948 ("vti6: Enable namespace changing"). Xiao noted the old tag 5e72ce3e3980 is not the introducing commit. dev_net(dev) and t->net first diverge when 61220ab34948 dropped NETIF_F_NETNS_LOCAL and made vti6 devices movable through IFLA_NET_NS_FD. Same Fixes shape Jakub took for the sibling fix 1d324c2f43f7.

- 2/2 adds ns_capable(self->net->user_ns, CAP_NET_ADMIN) inside the non fallback SIOCCHGTUNNEL branch. The check at the top of the case is against dev_net(dev)->user_ns only. A caller in the migrated netns can pick params absent from self->net, the lookup returns NULL, t becomes self, and vti6_update() inserts the device into self->net's hash. v3 did not close that path.

1/2 carries forward Eric Dumazet's Reviewed-by. Only the Fixes tag changes there. 2/2 changes the Fixes tag and adds the ns_capable hunk.

Kuniyuki Iwashima (1):
ip6: vti: Use ip6_tnl.net in vti6_changelink().

Maoyi Xie (1):
ip6: vti: Use ip6_tnl.net in vti6_siocdevprivate().

 net/ipv6/ip6_vti.c | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

--
2.34.1