Skip to content

endpoint: execute Endpoint.writeHeaderFile under lockAlive #39429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2025

Conversation

ti-mo
Copy link
Contributor

@ti-mo ti-mo commented May 8, 2025

In af09899, the call to Endpoint.writeHeaderFile was moved out of preCompilationSteps since EndpointHash takes out a read lock, which didn't work since regenerateBPF is already run under a write lock.

This patch puts writeHeaderFile under the endpoint lock once again.

Fixes: #38324

In af09899, the call to Endpoint.writeHeaderFile was moved out of
preCompilationSteps since EndpointHash takes out a read lock, which didn't
work since regenerateBPF is already run under a write lock.

This patch puts writeHeaderFile under the endpoint lock once again.

Fixes: cilium#38324

Signed-off-by: Timo Beckers <timo@isovalent.com>
@ti-mo ti-mo requested a review from a team as a code owner May 8, 2025 10:54
@ti-mo ti-mo requested a review from gandro May 8, 2025 10:54
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label May 8, 2025
@ti-mo ti-mo added the release-note/bug This PR fixes an issue in a previous release of Cilium. label May 8, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label May 8, 2025
@ti-mo
Copy link
Contributor Author

ti-mo commented May 8, 2025

/test

Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Looks fine!

@aanm aanm enabled auto-merge May 8, 2025 11:12
@aanm aanm added this pull request to the merge queue May 8, 2025
@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 May 8, 2025
Merged via the queue into cilium:main with commit 9ac2444 May 8, 2025
72 checks passed
@julianwiedmann
Copy link
Member

@ti-mo From what I can tell this breakage never actually made it into a release, right? Adjusting the release-note accordingly.

@julianwiedmann julianwiedmann added kind/bug This is a bug in the Cilium logic. release-note/misc This PR makes changes that have no direct user impact. and removed release-note/bug This PR fixes an issue in a previous release of Cilium. labels May 9, 2025
@ti-mo
Copy link
Contributor Author

ti-mo commented May 9, 2025

@ti-mo From what I can tell this breakage never actually made it into a release, right? Adjusting the release-note accordingly.

Indeed, wasn't sure how to go about it since a label was required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This is a bug in the Cilium logic. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DATA RACE]: github.com/cilium/cilium/pkg/endpoint.(*Endpoint).toSerializedEndpoint()
4 participants