Skip to content

isisd: Fix memory leaks when the transition of neighbor state from non-UP to DOWN (backport #15716)#18639

Merged
donaldsharp merged 1 commit intostable/9.1from
mergify/bp/stable/9.1/pr-15716
Apr 11, 2025
Merged

isisd: Fix memory leaks when the transition of neighbor state from non-UP to DOWN (backport #15716)#18639
donaldsharp merged 1 commit intostable/9.1from
mergify/bp/stable/9.1/pr-15716

Conversation

@mergify
Copy link
Copy Markdown

@mergify mergify bot commented Apr 10, 2025

When receiving a hello packet, if the neighbor state transitions directly from a non-ISIS_ADJ_UP state (such as ISIS_ADJ_INITIALIZING) to ISIS_ADJ_DOWN state, the neighbor entry cannot be deleted. If the neighbor is removed or the neighbor's System ID changes, it may result in memory leakage in the neighbor entry.

Test Scenario:
LAN link between Router A and Router B is established. Router A does not configure neighbor authentication, while Router B is configured with neighbor authentication. When the neighbor entry on Router B ages out, the neighbor state on Router A transitions to INIT. If Router B is then removed, the neighbor state on Router A transitions to DOWN and persists.

Signed-off-by: zhou-run zhou.run@h3c.com


This is an automatic backport of pull request #15716 done by Mergify.

…n-UP to DOWN

When receiving a hello packet, if the neighbor state transitions directly from a non-ISIS_ADJ_UP state (such as ISIS_ADJ_INITIALIZING) to ISIS_ADJ_DOWN state, the neighbor entry cannot be deleted. If the neighbor is removed or the neighbor's System ID changes, it may result in memory leakage in the neighbor entry.

Test Scenario:
LAN link between Router A and Router B is established. Router A does not configure neighbor authentication, while Router B is configured with neighbor authentication. When the neighbor entry on Router B ages out, the neighbor state on Router A transitions to INIT. If Router B is then removed, the neighbor state on Router A transitions to DOWN and persists.

Signed-off-by: zhou-run <166502045+zhou-run@users.noreply.github.com>

fix frrbot styling issues found.

fix frrbot styling issues found.

Signed-off-by: zhou-run <166502045+zhou-run@users.noreply.github.com>
(cherry picked from commit 5009f75)
@frrbot frrbot bot added the isis label Apr 10, 2025
@donaldsharp donaldsharp merged commit 94203c4 into stable/9.1 Apr 11, 2025
11 of 12 checks passed
@Jafaral Jafaral deleted the mergify/bp/stable/9.1/pr-15716 branch April 16, 2025 14:40
hedrok pushed a commit to hedrok/vyos-build that referenced this pull request Oct 20, 2025
…r state"

This reverts commit b0382c8.
The fix was backported to FRR stable/9.1
FRRouting/frr#18639
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants