diff options
author | Sean Tranchetti <stranche@codeaurora.org> | 2021-01-06 03:22:25 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-07 23:03:16 +0300 |
commit | d8f5c29653c3f6995e8979be5623d263e92f6b86 (patch) | |
tree | 63f007f8a8236b3ffef26cdfb0fc7e77db84e8cd /tools | |
parent | c8c748fb83bd052502f35471101d61d8c3648c86 (diff) | |
download | linux-d8f5c29653c3f6995e8979be5623d263e92f6b86.tar.xz |
net: ipv6: fib: flush exceptions when purging route
Route removal is handled by two code paths. The main removal path is via
fib6_del_route() which will handle purging any PMTU exceptions from the
cache, removing all per-cpu copies of the DST entry used by the route, and
releasing the fib6_info struct.
The second removal location is during fib6_add_rt2node() during a route
replacement operation. This path also calls fib6_purge_rt() to handle
cleaning up the per-cpu copies of the DST entries and releasing the
fib6_info associated with the older route, but it does not flush any PMTU
exceptions that the older route had. Since the older route is removed from
the tree during the replacement, we lose any way of accessing it again.
As these lingering DSTs and the fib6_info struct are holding references to
the underlying netdevice struct as well, unregistering that device from the
kernel can never complete.
Fixes: 2b760fcf5cfb3 ("ipv6: hook up exception table to store dst cache")
Signed-off-by: Sean Tranchetti <stranche@codeaurora.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/1609892546-11389-1-git-send-email-stranche@quicinc.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions