summaryrefslogtreecommitdiffstats
path: root/net/hsr
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2019-07-15 12:00:22 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2019-07-17 10:03:54 +0200
commitc5d1030f23002430c2a336b2b629b9d6f72b3564 (patch)
tree18ae6bb8642ab4a1931cbeb52ea741f9955244f5 /net/hsr
parentxfrm interface: ifname may be wrong in logs (diff)
downloadlinux-c5d1030f23002430c2a336b2b629b9d6f72b3564.tar.xz
linux-c5d1030f23002430c2a336b2b629b9d6f72b3564.zip
xfrm interface: fix list corruption for x-netns
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 corrupted and can later trigger a kernel panic. Fixes: f203b76d7809 ("xfrm: Add virtual xfrm interfaces") Reported-by: Julien Floret <julien.floret@6wind.com> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Tested-by: Julien Floret <julien.floret@6wind.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/hsr')
0 files changed, 0 insertions, 0 deletions