[Devel] [PATCH hci-8.1 4/6] ms/ip6: vti: Use ip6_tnl.net in vti6_siocdevprivate().
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Tue Nov 10 19:41:03 MSK 2026
> From: Maoyi Xie <maoyixie.tju at gmail.com>
>
> After patch 1/2 in this series, vti6_update() unlinks and relinks
> the tunnel through t->net. vti6_siocdevprivate() still uses
> dev_net(dev) for the collision lookup. For a tunnel moved through
> IFLA_NET_NS_FD, dev_net(dev) is the new netns, not t->net.
>
> SIOCCHGTUNNEL on a migrated tunnel then runs:
>
> net = dev_net(dev) /* migrated netns */
> t = vti6_locate(net, &p1, false) /* misses target in t->net */
> ...
> t = netdev_priv(dev)
> vti6_update(t, &p1, false) /* mutates t->net's hash */
>
> [ ... ]
>
> https://virtuozzo.atlassian.net/browse/VSTOR-154348
>
> Feature: fix ms/net
> Signed-off-by: Denis V. Lunev <den at openvz.org>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261110163130.2776687-1-den@openvz.org?part=4
More information about the Devel
mailing list