Skip to content

Conversation

odd22
Copy link
Member

@odd22 odd22 commented Mar 3, 2025

Edges are not correctly linked to Vertices during LSP processing. In function lsp_to_edge_cb(), once edge created or updated from the LSP TLVs, the code try to link the edge to destination vertices. In case the revert edge is not found, the code try to found a destination vertex to link to. But, the sys_id used for this operation corresponds to the source vertex. As a result, the edge is attached as source and destination of the vertex. When Traffic Engineering is stopped, TED is deleted which result into a double free of the edge attributes. This cause a crash when attempt to free extended admin groupi the second time.

This patch removed wrong code which link twice the edge to the source vertex.

Edges are not correctly linked to Vertices during LSP processing. In function
lsp_to_edge_cb(), once edge created or updated from the LSP TLVs, the code try
to link the edge to destination vertices. In case the revert edge is not found,
the code try to found a destination vertex to link to. But, the sys_id used
for this operation corresponds to the source vertex. As a result, the edge is
attached as source and destination of the vertex. When Traffic Engineering is
stopped, TED is deleted which result into a double free of the edge attributes.
This cause a crash when attempt to free extended admin groupi the second time.

This patch removed wrong code which link twice the edge to the source vertex.

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
@donaldsharp
Copy link
Member

This fixes the problem for me.

@donaldsharp
Copy link
Member

@Mergifyio backport dev/10.3 stable/10.0 stable/10.1 stable/10.2

@donaldsharp donaldsharp merged commit 21a8f52 into FRRouting:master Mar 3, 2025
16 checks passed
Copy link

mergify bot commented Mar 3, 2025

backport dev/10.3 stable/10.0 stable/10.1 stable/10.2

✅ Backports have been created

donaldsharp added a commit that referenced this pull request Mar 3, 2025
isisd: Correct edge insertion into TED (backport #18294)
donaldsharp added a commit that referenced this pull request Mar 3, 2025
isisd: Correct edge insertion into TED (backport #18294)
donaldsharp added a commit that referenced this pull request Mar 3, 2025
isisd: Correct edge insertion into TED (backport #18294)
riw777 added a commit that referenced this pull request Mar 4, 2025
isisd: Correct edge insertion into TED (backport #18294)
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