Fix RMR routing statistic data printout crash 66/7566/2 4.8.2
authorAlexandre Huff <alexandrehuff@utfpr.edu.br>
Mon, 17 Jan 2022 22:59:22 +0000 (19:59 -0300)
committerAlexandre Huff <alexandrehuff@utfpr.edu.br>
Fri, 11 Feb 2022 09:31:12 +0000 (06:31 -0300)
commit817516b6d7d3ffd874192c3a5342ead4c5da498b
treebbc40362120ef7a733dc76019ddd47a72a69eca1
parent2d180c17c4786fa845d61c1f440bd8d617a4f808
Fix RMR routing statistic data printout crash

If a routing table update happens while traversing entries to print
routing statistics, then it will cause RMR to crash. This
crash is generated due to an unsafe reference used to print
the rt statistics. This change fixes this routing statistic
printout crash.

This change also fixes a related problem of read-access to ref count
in routing table that is not protected by a mutex.

Issue-ID: RIC-872

Signed-off-by: Alexandre Huff <alexandrehuff@utfpr.edu.br>
Change-Id: I03b0cb79a62e7fbdb1eb08c2006894fab4ebf5cd
Signed-off-by: Alexandre Huff <alexandrehuff@utfpr.edu.br>
CHANGES_CORE.txt
CMakeLists.txt
docs/rel-notes.rst
src/rmr/common/src/rt_generic_static.c
src/rmr/common/src/rtc_static.c