]> git.dujemihanovic.xyz Git - linux.git/commit
net/ipv6: Revert remove expired routes with a separated list of routes
authorDavid Ahern <dsahern@kernel.org>
Tue, 19 Dec 2023 03:02:43 +0000 (20:02 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 21 Dec 2023 08:01:30 +0000 (09:01 +0100)
commitdade3f6a1e4e35a5ae916d5e78b3229ec34c78ec
tree3c9e907295834f60ddcabd8d446786fe4ac13ff2
parentb414020fed42b274946aae28becf45ff156bbd2e
net/ipv6: Revert remove expired routes with a separated list of routes

This reverts commit 3dec89b14d37ee635e772636dad3f09f78f1ab87.

The commit has some race conditions given how expires is managed on a
fib6_info in relation to gc start, adding the entry to the gc list and
setting the timer value leading to UAF. Revert the commit and try again
in a later release.

Fixes: 3dec89b14d37 ("net/ipv6: Remove expired routes with a separated list of routes")
Cc: Kui-Feng Lee <thinker.li@gmail.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20231219030243.25687-1-dsahern@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/ip6_fib.h
net/ipv6/ip6_fib.c
net/ipv6/route.c