- Notifications
You must be signed in to change notification settings - Fork41.6k
kubelet: fix concurrent map write error when creating a pod with empty volume#135174
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Conversation
…y volumes when the LocalStorageCapacityIsolationFSQuotaMonitoring feature-gate is enabled
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are availablehere. If you have questions or suggestions related to my behavior, please file an issue against thekubernetes-sigs/prow repository. |
[APPROVALNOTIFIER] This PR isNOT APPROVED This pull-request has been approved by:carlory The full list of commands accepted by this bot can be foundhere. Needs approval from an approver in each of these files: Approvers can indicate their approval by writing |
carlory commentedNov 6, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
/cc@RobertKrawitz@pacoxu |
@carlory: GitHub didn't allow me to request PR reviews from the following users: RobertKrawitz. Note that onlykubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response tothis: Instructions for interacting with me using PR comments are availablehere. If you have questions or suggestions related to my behavior, please file an issue against thekubernetes-sigs/prow repository. |
/lgtm |
LGTM label has been added. Git tree hash: 1c3afed7c899a32ce1541099a5dbd7a67e2354d0 |
Uh oh!
There was an error while loading.Please reload this page.
What type of PR is this?
/kind bug
What this PR does / why we need it:
The supportsQuotasMap is being accessed with inconsistent locking:
Lines 68-69: The map and its lock are declared:
kubernetes/pkg/volume/util/fsquota/quota_linux.go
Lines 68 to 69 inb07d0f8
Lines 283-286, 303: In SupportsQuotas(), the map is accessed with supportsQuotasLock:
kubernetes/pkg/volume/util/fsquota/quota_linux.go
Lines 283 to 286 inb07d0f8
Lines 433, 470: In ClearQuota(), the map is modified without supportsQuotasLock (only quotaLock is held):
kubernetes/pkg/volume/util/fsquota/quota_linux.go
Line 433 inb07d0f8
kubernetes/pkg/volume/util/fsquota/quota_linux.go
Line 470 inb07d0f8
Which issue(s) this PR is related to:
Fixes#135089
KEP:kubernetes/enhancements#1029
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: