Skip to content

Conversation

@jrajahalme
Copy link
Member

A shared_ptr policy_resolver_ holds on to the passed BpfMetadata::Config, which owns the policy map reference. This could keep the the policy map alive when the listeners are destructed, leading to the destruction of the policy map from a worker thread. Change policy_resolver_ to a weak pointer to resolve this.

@jrajahalme jrajahalme added bug Something isn't working needs-backport/1.30 labels Nov 29, 2024
@jrajahalme jrajahalme requested a review from a team as a code owner November 29, 2024 17:39
@jrajahalme jrajahalme requested review from mhofstetter and removed request for a team November 29, 2024 17:39
A shared_ptr policy_resolver_ holds on to the passed BpfMetadata::Config,
which owns the policy map reference. This could keep the the policy map
alive when the listeners are destructed, leading to the destruction of
the policy map from a worker thread. Change policy_resolver_ to a weak
pointer to resolve this.

Signed-off-by: Jarno Rajahalme <[email protected]>
@sayboras sayboras added this pull request to the merge queue Dec 1, 2024
Merged via the queue into main with commit bf278e0 Dec 1, 2024
5 checks passed
@sayboras sayboras deleted the weak-policy-resolver branch December 1, 2024 04:24
sayboras added a commit to cilium/cilium that referenced this pull request Dec 2, 2024
Main goal is to include the below fix.

Relates: cilium/proxy#1016
Signed-off-by: Tam Mach <[email protected]>
giorio94 pushed a commit to cilium/cilium that referenced this pull request Dec 2, 2024
Main goal is to include the below fix.

Relates: cilium/proxy#1016
Signed-off-by: Tam Mach <[email protected]>
github-merge-queue bot pushed a commit to cilium/cilium that referenced this pull request Dec 2, 2024
Main goal is to include the below fix.

Relates: cilium/proxy#1016
Signed-off-by: Tam Mach <[email protected]>
@sayboras sayboras mentioned this pull request Dec 3, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-pending/1.30 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants