]> git.ipfire.org Git - thirdparty/bird.git/commit
Better profylaction recursive route loops
authorMaria Matejka <mq@ucw.cz>
Fri, 22 Oct 2021 17:43:55 +0000 (19:43 +0200)
committerMaria Matejka <mq@ucw.cz>
Mon, 22 Nov 2021 18:05:43 +0000 (19:05 +0100)
commitf18968f52f461946b64aaea6c4a0e88c5235fb07
tree783241f77cdaa776e757f01d72ec6a9f8f56eaa6
parent44f26c49f966ca842ff9af55468de0b98c44b73e
Better profylaction recursive route loops

In some specific configurations, it was possible to send BIRD into an
infinite loop of recursive next hop resolution. This was caused by route
priority inversion.

To prevent priority inversions affecting other next hops, we simply
refuse to resolve any next hop if the best route for the matching prefix
is recursive or any other route with the same preference is recursive.

Next hop resolution doesn't change route priority, therefore it is
perfectly OK to resolve BGP next hops e.g. by an OSPF route, yet if the
same (or covering) prefix is also announced by iBGP, by retraction of
the OSPF route we would get a possible priority inversion.
nest/rt-table.c