Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[202012][vnetorch] fix use-after-free in removeBfdSession() #2366

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

Yakiv-Huryk
Copy link
Contributor

Fixed the following memory usage issue:

  • [vnetorch] removeBfdSession(): the monitor_addr is invalid after the "nexthop_info_[vnet].erase(endpoint_addr)"

What I did
Cherry-pick of #2352
Only 1 out of 2 fixes is applicable to 202012
Why I did it
To fix memory usage issue
How I verified it

Details if related

* using a copy of monitor ip instead of a reference since the reference gets
invalidated after the endpoint is erased

Signed-off-by: Yakiv Huryk <[email protected]>
@prsunny prsunny merged commit e84a901 into sonic-net:202012 Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants