0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-09-20 12:25:20 +00:00
bird/proto/rip
Maria Matejka f0507f05ce Route sources have an explicit owner
This commit prevents use-after-free of routes belonging to protocols
which have been already destroyed, delaying also all the protocols'
shutdown until all of their routes have been finally propagated through
all the pipes down to the appropriate exports.

The use-after-free was somehow hypothetic yet theoretically possible in
rare conditions, when one BGP protocol authors a lot of routes and the
user deletes that protocol by reconfiguring in the same time as next hop
update is requested, causing rte_better() to be called on a
not-yet-pruned network prefix while the owner protocol has been already
freed.

In parallel execution environments, this would happen an inter-thread
use-after-free, causing possible heisenbugs or other nasty problems.
2021-11-22 19:05:44 +01:00
..
config.Y Minor fixes for restricted builds 2021-03-17 15:56:12 +01:00
Doc Doc: Rename code documentation files back to Doc 2018-12-14 02:03:42 +01:00
Makefile Unit Testing for BIRD 2016-11-09 16:36:34 +01:00
packets.c RIP: Improvements to demand circuit mode 2020-03-14 17:04:49 +01:00
rip.c Route sources have an explicit owner 2021-11-22 19:05:44 +01:00
rip.h RIP: convert the rte-local attributes to extended attributes 2021-10-13 19:09:04 +02:00