Re: [PATCH net] ip6_gre: fix tunnel list corruption for x-netns

2019-01-15 Thread David Miller
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

[PATCH net] ip6_gre: fix tunnel list corruption for x-netns

2019-01-09 Thread Olivier Matz
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