diff options
author | Donald Sharp <sharpd@nvidia.com> | 2023-05-19 15:54:05 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2023-05-19 16:02:19 +0200 |
commit | 0eaa6523f6620a8ab2db0df6879e4b64dd27a6fe (patch) | |
tree | fcd501e2cc2d91dc3bbc46102ff5df8413716d16 /grpc/Makefile | |
parent | Merge pull request #13549 from LabNConsulting/chopps/cclsopt (diff) | |
download | frr-0eaa6523f6620a8ab2db0df6879e4b64dd27a6fe.tar.xz frr-0eaa6523f6620a8ab2db0df6879e4b64dd27a6fe.zip |
zebra: Do not allow old FPM to access freed memory after shutdown
On shutdown, the old FPM queues up dests to be sent to
the FPM listener. This is done through the rib_shutdown
hook. Which is called when the table that the routes are
stored in are being deleted. This dest has pointers
to the rnode. The rnode has pointers to the table it
is associated with as well as the table->info pointer for
the zebra data associated with this table.
The FPM after this attempts to tell this to it's listener
via events. Unfortunately the zvrf, table_id and nl_pid
was being grabbed from memory that had been freed! Since
all this can be grabbed from memory that has not been freed
on shutdown let's switch over to using that instead of freed
memory for gathering data.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'grpc/Makefile')
0 files changed, 0 insertions, 0 deletions