aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorNicolas Dichtel <[email protected]>2019-07-15 12:00:22 +0200
committerSteffen Klassert <[email protected]>2019-07-17 10:03:54 +0200
commitc5d1030f23002430c2a336b2b629b9d6f72b3564 (patch)
tree18ae6bb8642ab4a1931cbeb52ea741f9955244f5 /scripts/gcc-plugins/cyc_complexity_plugin.c
parente0aaa332e6a97dae57ad59cdb19e21f83c3d081c (diff)
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 <[email protected]> Signed-off-by: Nicolas Dichtel <[email protected]> Tested-by: Julien Floret <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions