You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What I did
I am allocating memory after deletion of previous profile. Why I did it
Macsec profile replace -> enableMacsec -> disableMacsec[ deletes key in macsec_ports ] -> accessing dangling reference data -> memory corruption -> crash in macsecmgrd How I verified it
After this fix, I am not seeing crashes in macsec docker container Details if related
Valgrind traces are added in #3610
Hi @prsunny,
SA checks are failing at step "install libnl3, sonic swss common and sairedis".
How to resolve it ?
is it due to any change in the PR ?
Thanks !!
@sivanuka could you share the exact steps you tried to reproduce this issue ? were you using sonic CLI's ? or was it done via sonic_db_cli or other tools ?
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixing macsecmgrd memory corruption
Fixes : #3610
What I did
I am allocating memory after deletion of previous profile.
Why I did it
Macsec profile replace -> enableMacsec -> disableMacsec[ deletes key in macsec_ports ] -> accessing dangling reference data -> memory corruption -> crash in macsecmgrd
How I verified it
After this fix, I am not seeing crashes in macsec docker container
Details if related
Valgrind traces are added in #3610