]> git.puffer.fish Git - mirror/frr.git/commit
pimd: Fix for crash during networking restart 18672/head
authorUtkarsh Srivastava <usrivastava@nvidia.com>
Thu, 10 Apr 2025 05:49:34 +0000 (22:49 -0700)
committerusrivastava-nvidia <usrivastava@nvidia.com>
Wed, 23 Apr 2025 14:03:02 +0000 (14:03 +0000)
commitb88cce233043806129eb6d8c938655b2886ec898
treeb13f68b7f82f8ae5f65cdb1ea6ba12ccffc2ec88
parent42d31854a1037400b1a8e117c058110e1faa5db2
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>
pimd/pim_instance.c
pimd/pim_vxlan.c
pimd/pim_vxlan_instance.h