diff options
| author | Olivier Matz <[email protected]> | 2019-01-09 10:57:21 +0100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-01-15 13:33:44 -0800 |
| commit | ab5098fa25b91cb6fe0a0676f17abb64f2bbf024 (patch) | |
| tree | 6969657e2083eb18c07b8e17dc3188bae206da03 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | |
| parent | 72f6d4d14c2e23c8ad416ccbe5cfc744ba703d0a (diff) | |
ip6_gre: fix tunnel list corruption for x-netns
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 the netns from device private area.
Fixes: c8632fc30bb0 ("net: ip6_gre: Split up ip6gre_changelink()")
Cc: Petr Machata <[email protected]>
Signed-off-by: Olivier Matz <[email protected]>
Acked-by: Nicolas Dichtel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions