-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[1.0] Make cgroup freezer only care about current control group #3085
Merged
cyphar
merged 2 commits into
opencontainers:release-1.0
from
kolyshkin:1.0-backport-3081
Jul 14, 2021
Merged
[1.0] Make cgroup freezer only care about current control group #3085
cyphar
merged 2 commits into
opencontainers:release-1.0
from
kolyshkin:1.0-backport-3081
Jul 14, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kolyshkin
changed the title
[1.0]
[1.0] Make cgroup freezer only care about current control group
Jul 12, 2021
If a control group is frozen, all its descendants will report FROZEN in freezer.state cgroup file. OTOH cgroup v2 cgroup.freeze is not reporting the cgroup as frozen unless it is frozen directly (i.e. not via an ancestor). Fix the discrepancy between v1 and v2 drivers behavior by looking into freezer.self_freezing cgroup file, which, according to kernel documentation, will show 1 iff the cgroup was frozen directly. Co-authored-by: Kir Kolyshkin <[email protected]> Signed-off-by: Odin Ugedal <[email protected]> Signed-off-by: Kir Kolyshkin <[email protected]> (cherry picked from commit 294c486) Signed-off-by: Kir Kolyshkin <[email protected]>
This test the issues fixed by the two preceding commits. Co-Authored-By: Kir Kolyshkin <[email protected]> Signed-off-by: Odin Ugedal <[email protected]> Signed-off-by: Kir Kolyshkin <[email protected]> (cherry picked from commit 3e5c199) Signed-off-by: Kir Kolyshkin <[email protected]>
Closed
AkihiroSuda
approved these changes
Jul 12, 2021
Ah, we need to add the 2-LGTM require rule to |
cyphar
approved these changes
Jul 14, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
breakings
added a commit
to breakings/packages
that referenced
this pull request
Aug 8, 2021
This is the first stable release in the 1.0 branch, fixing a few medium and high priority issues with runc 1.0.0, including a few that affect Kubernetes' usage of libcontainer. Bugfixes: - Fixed occasional runc exec/run failure ("interrupted system call") on an Azure volume. ([#3074](opencontainers/runc#3074)) - Fixed "unable to find groups ... token too long" error with /etc/group containing lines longer than 64K characters. ([#3079](opencontainers/runc#3079)) - cgroup/systemd/v1: fix leaving cgroup frozen after Set if a parent cgroup is frozen. This is a regression in 1.0.0, not affecting runc itself but some of libcontainer users (e.g Kubernetes). ([#3085](opencontainers/runc#3085)) - cgroupv2: bpf: Ignore inaccessible existing programs in case of permission error when handling replacement of existing bpf cgroup programs. This fixes a regression in 1.0.0, where some SELinux policies would block runc from being able to run entirely. ([#3087](opencontainers/runc#3087)) - cgroup/systemd/v2: don't freeze cgroup on Set. ([#3092](opencontainers/runc#3092)) - cgroup/systemd/v1: avoid unnecessary freeze on Set. ([#3093](opencontainers/runc#3093))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a backport of PR #3081 to 1.0.
Fixes the issue (frozen containers) that led to runc bump to 1.0.0 reverted in kubernetes.
See also: #3065.
Changelog entry