0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +00:00
bird/proto
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
..
babel Route sources have an explicit owner 2021-11-22 19:05:44 +01:00
bfd Converting the former BFD loop to a universal IO loop and protocol loop. 2021-11-22 19:05:43 +01:00
bgp Route sources have an explicit owner 2021-11-22 19:05:44 +01:00
mrt Route sources have an explicit owner 2021-11-22 19:05:44 +01:00
ospf Route sources have an explicit owner 2021-11-22 19:05:44 +01:00
perf Split route data structure to storage (ro) / manipulation (rw) structures. 2021-11-09 19:20:41 +01:00
pipe Route sources have an explicit owner 2021-11-22 19:05:44 +01:00
radv Split route data structure to storage (ro) / manipulation (rw) structures. 2021-11-09 19:20:41 +01:00
rip Route sources have an explicit owner 2021-11-22 19:05:44 +01:00
rpki Special table hooks rectified. 2021-11-22 19:05:43 +01:00
static Route sources have an explicit owner 2021-11-22 19:05:44 +01:00
Doc Doc: Rename code documentation files back to Doc 2018-12-14 02:03:42 +01:00