]> git.puffer.fish Git - mirror/frr.git/commit
pimd: Fix for crash during networking restart 18714/head
authorUtkarsh Srivastava <usrivastava@nvidia.com>
Thu, 10 Apr 2025 05:49:34 +0000 (22:49 -0700)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 24 Apr 2025 04:18:04 +0000 (04:18 +0000)
commitba720c16d6a78bc6fd4045901a69f371c9617fe1
tree2646d2d851cbbfa069c6c38134763f68fb1d046c
parent8efa737e7992b5fe48803911951855dc6a853208
pimd: Fix for crash during networking restart

During vrf delete, the vxlan_info.work_list
linked list was deleted which is a global list
containing the SGs for all the VRFs.

If two vrfs are configured, vrf a and vrf b and
both has SGs assocaited with them which are
inserted in the vxlan_info.work_list. Now if
vrf a is deleted, it deletes the work_list also.
Due to this when any SG add or del comes for vrf b
it tries to access the work_list and crashes.

Fix
Delete the vxlan_info.work_list only when all the
VRFs are terminated and unset the vxlan_info.flags
so if new add cmd comes it re-allocates the work_list.

Signed-off-by: usrivastava-nvidia <usrivastava@nvidia.com>
(cherry picked from commit b88cce233043806129eb6d8c938655b2886ec898)
pimd/pim_instance.c
pimd/pim_vxlan.c
pimd/pim_vxlan_instance.h