Skip to content

Conversation

@tonistiigi
Copy link
Member

As the same instance of a map is used in context and mutated directly, this leads toa situation where:

  • Calling WithMediaTypeKeyPrefix from parallel goroutines where the context was based on the same base context can trigger a panic.
  • A subcontext calling WithMediaTypeKeyPrefix changes the value for another context when they both originate from the same base context.

@dmcgowan @cpuguy83 @AkihiroSuda

As the same instance of a map is used in context and mutated
directly, this leads to a  situation where:
- Calling WithMediaTypeKeyPrefix from parallel goroutines where
  the context was based on the same base context can trigger a panic.
- A subcontext calling WithMediaTypeKeyPrefix changes the value for
  another context when they both originate from the same base context.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@github-project-automation github-project-automation bot moved this from Needs Triage to Review In Progress in Pull Request Review Nov 14, 2025
@thaJeztah thaJeztah added the cherry-pick/2.2.x Change to be cherry picked to release/2.2 branch label Nov 14, 2025
@dmcgowan dmcgowan added this pull request to the merge queue Nov 14, 2025
Merged via the queue into containerd:main with commit 97f97a9 Nov 14, 2025
89 of 92 checks passed
@github-project-automation github-project-automation bot moved this from Review In Progress to Done in Pull Request Review Nov 14, 2025
@dmcgowan
Copy link
Member

/cherry-pick release/2.2

@k8s-infra-cherrypick-robot

@dmcgowan: new pull request created: #12516

Details

In response to this:

/cherry-pick release/2.2

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/distribution Image Distribution cherry-picked/2.2.x PR commits are cherry-picked into release/2.2 branch kind/bug size/XS

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants