diff options
author | WANG Cong <[email protected]> | 2017-06-21 14:34:58 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-06-22 13:21:44 -0400 |
commit | 60abc0be96e00ca71bac083215ac91ad2e575096 (patch) | |
tree | fe2faac629a89738ba334d92eab198b800101e99 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 8c4354ef590ec8b3b10eb7f29d8c8ae56709b96b (diff) |
ipv6: avoid unregistering inet6_dev for loopback
The per netns loopback_dev->ip6_ptr is unregistered and set to
NULL when its mtu is set to smaller than IPV6_MIN_MTU, this
leads to that we could set rt->rt6i_idev NULL after a
rt6_uncached_list_flush_dev() and then crash after another
call.
In this case we should just bring its inet6_dev down, rather
than unregistering it, at least prior to commit 176c39af29bc
("netns: fix addrconf_ifdown kernel panic") we always
override the case for loopback.
Thanks a lot to Andrey for finding a reliable reproducer.
Fixes: 176c39af29bc ("netns: fix addrconf_ifdown kernel panic")
Reported-by: Andrey Konovalov <[email protected]>
Cc: Andrey Konovalov <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: David Ahern <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Acked-by: David Ahern <[email protected]>
Tested-by: Andrey Konovalov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions