Xin Long cfe82469a0 ipv6: add exception routes to GC list in rt6_insert_exception
Commit 5eb902b8e719 ("net/ipv6: Remove expired routes with a separated list
of routes.") introduced a separated list for managing route expiration via
the GC timer.

However, it missed adding exception routes (created by ip6_rt_update_pmtu()
and rt6_do_redirect()) to this GC list. As a result, these exceptions were
never considered for expiration and removal, leading to stale entries
persisting in the routing table.

This patch fixes the issue by calling fib6_add_gc_list() in
rt6_insert_exception(), ensuring that exception routes are properly tracked
and garbage collected when expired.

Fixes: 5eb902b8e719 ("net/ipv6: Remove expired routes with a separated list of routes.")
Reported-by: Jianlin Shi <jishi@redhat.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/837e7506ffb63f47faa2b05d9b85481aad28e1a4.1744134377.git.lucien.xin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-04-10 20:09:05 -07:00
..
2025-03-25 08:29:13 -07:00
2025-04-10 08:52:18 -07:00
2024-10-15 18:52:26 -07:00
2025-01-27 15:15:12 -08:00
2025-03-03 17:16:34 -08:00
2024-11-11 10:32:06 -08:00
2025-02-06 16:14:15 -08:00
2025-03-10 13:13:04 -07:00
2025-02-15 09:08:46 -08:00
2024-05-30 18:29:38 -07:00
2023-10-27 10:35:46 +01:00
2025-03-25 10:34:33 -07:00
2025-03-25 09:15:07 -07:00
2023-09-14 16:16:36 +02:00
2025-01-20 07:06:53 +01:00
2024-03-08 10:56:05 +00:00