Skip to content

Conversation

squeed
Copy link
Contributor

@squeed squeed commented Jul 30, 2025

In the event that a regeneration failed, we re-populated the MapState but forgot to set the rule origin. Unfortunately, the zero value for Handle is not equivalent to nil; we must always set it explicitly.

Fixes: fe165aa

Fixes a bug where the Cilium agent may segfault when starting.

@squeed squeed requested a review from a team as a code owner July 30, 2025 13:33
@squeed squeed requested a review from fristonio July 30, 2025 13:33
@squeed squeed added release-note/bug This PR fixes an issue in a previous release of Cilium. sig/policy Impacts whether traffic is allowed or denied based on user-defined policies. labels Jul 30, 2025
@squeed squeed added release-blocker/1.18 This issue will prevent the release of the next version of Cilium. needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch labels Jul 30, 2025
@kaworu
Copy link
Member

kaworu commented Jul 30, 2025

@squeed thanks for the quick patch! Could you add a corresponding unit test on the way please?

@squeed
Copy link
Contributor Author

squeed commented Jul 30, 2025

Could you add a corresponding unit test on the way please?

@kaworu I'll try; mocking out endpoints is tricky business. But it's a good exercise.

@squeed squeed force-pushed the fix-policy-correlation-segfault branch from e0a689f to e522668 Compare July 30, 2025 14:45
Copy link
Member

@fristonio fristonio left a comment

Choose a reason for hiding this comment

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

🚀

In the event that a regeneration failed, we re-populated the MapState
but forgot to set the rule origin. Unfortunately, the zero value for
Handle is not equivalent to nil; we must always set it explicitly. Use
the constructor instead.

Fixes: fe165aa

Signed-off-by: Casey Callendrello <cdc@isovalent.com>
@squeed squeed force-pushed the fix-policy-correlation-segfault branch from e522668 to dd99031 Compare July 30, 2025 15:27
@squeed
Copy link
Contributor Author

squeed commented Jul 30, 2025

(Added a unit test :-))

@squeed
Copy link
Contributor Author

squeed commented Jul 30, 2025

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 30, 2025
@squeed squeed added this pull request to the merge queue Jul 30, 2025
Merged via the queue into cilium:main with commit 80c5b87 Jul 30, 2025
67 of 68 checks passed
@squeed squeed deleted the fix-policy-correlation-segfault branch July 30, 2025 19:02
@github-project-automation github-project-automation bot moved this from Proposed to Done in Release blockers Jul 30, 2025
@rastislavs rastislavs mentioned this pull request Jul 31, 2025
14 tasks
@rastislavs rastislavs added backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. and removed needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch labels Jul 31, 2025
@github-actions github-actions bot added backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. and removed backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. labels Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-blocker/1.18 This issue will prevent the release of the next version of Cilium. release-note/bug This PR fixes an issue in a previous release of Cilium. sig/policy Impacts whether traffic is allowed or denied based on user-defined policies.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants