mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-10 13:18:42 +00:00
f0507f05ce
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. |
||
---|---|---|
.. | ||
config.Y | ||
data.c | ||
data.h | ||
decl.m4 | ||
Doc | ||
f-inst.c | ||
f-inst.h | ||
f-util.c | ||
filter_test.c | ||
filter.c | ||
filter.h | ||
Makefile | ||
test-reconf-begin.conf | ||
test-reconf-end.conf | ||
test.conf | ||
test.conf2 | ||
test.conf.inc | ||
tree_test.c | ||
tree.c | ||
trie_test.c | ||
trie.c |