Skip to content

Conversation

hedibouattour
Copy link
Collaborator

@hedibouattour hedibouattour commented Oct 22, 2025

…L2 mode

When using PBL (two interfaces with the same IP) in L2 mode with static neighbors, deleting an interface could crash due to conflicting neighbor entries.

This commit ensures that all static neighbors are removed before the interface is deleted, avoiding the use-after-free in the neighbor database.

This addresses an issue introduced by #737

…L2 mode

When using PBL (two interfaces with the same IP) in L2 mode with static neighbors,
deleting an interface could crash due to conflicting neighbor entries.

This commit ensures that all static neighbors are removed before the interface is deleted,
avoiding the use-after-free in the neighbor database.
@hedibouattour hedibouattour requested a review from sknat October 22, 2025 15:29
@hedibouattour hedibouattour changed the title fix(ip-neighbor): prevent crash when deleting interfaces with PBL in … fix: prevent crash when deleting interfaces with PBL in … Oct 22, 2025
Copy link
Collaborator

@sknat sknat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks !

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