From: Olivier Matz
Date: Wed, 9 Jan 2019 10:57:21 +0100
> In changelink ops, the ip6gre_net pointer is retrieved from
> dev_net(dev), which is wrong in case of x-netns. Thus, the tunnel is not
> unlinked from its current list and is relinked into another net
> namespace. This corrupts the tunnel
In changelink ops, the ip6gre_net pointer is retrieved from
dev_net(dev), which is wrong in case of x-netns. Thus, the tunnel is not
unlinked from its current list and is relinked into another net
namespace. This corrupts the tunnel lists and can later trigger a kernel
oops.
Fix this by retrieving