]> git.puffer.fish Git - mirror/frr.git/commit
pimd: Fix for crash during networking restart 18715/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:07 +0000 (04:18 +0000)
commit45e35fc663969bf21358e3286e5b2082cfd018bf
treeefe1945c960ba1dc2b174b74dfc6fd16c2f24866
parent95128a75f79474c36e1fb9b8d742d4d7ca5049aa
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