Re: [PATCH ipsec] xfrm interface: fix list corruption for x-netns

2019-07-15 Thread Nicolas Dichtel
Le 10/07/2019 à 15:11, Nicolas Dichtel a écrit : > dev_net(dev) is the netns of the device and xi->net is the link netns, > where the device has been linked. > changelink() must operate in the link netns to avoid a corruption of > the xfrm lists. > > Note that xi->net and dev_net(xi->physdev) are

[PATCH ipsec] xfrm interface: fix list corruption for x-netns

2019-07-10 Thread Nicolas Dichtel
dev_net(dev) is the netns of the device and xi->net is the link netns, where the device has been linked. changelink() must operate in the link netns to avoid a corruption of the xfrm lists. Note that xi->net and dev_net(xi->physdev) are always the same. Before the patch, the xfrmi lists may be co