Skip to content
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

cgutil: handle panic from runc helper method #16180

Merged
merged 1 commit into from
Feb 14, 2023
Merged

cgutil: handle panic from runc helper method #16180

merged 1 commit into from
Feb 14, 2023

Conversation

shoenig
Copy link
Member

@shoenig shoenig commented Feb 14, 2023

This PR wraps the cgroups.IsCgroup2UnifiedMode() helper method from
runc in a defer/recover block because it might panic in some cases.

Upstream fix in: opencontainers/runc#3745

Closes #16179

Backports as far back as 1.3.x, when support for cgv2 was added.

This PR wraps the cgroups.IsCgroup2UnifiedMode() helper method from
runc in a defer/recover block because it might panic in some cases.

Upstream fix in: opencontainers/runc#3745

Closes #16179
@shoenig shoenig added this to the 1.5.0 milestone Feb 14, 2023
@shoenig shoenig added backport/1.3.x backport to 1.3.x release line backport/1.4.x backport to 1.4.x release line labels Feb 14, 2023
@shoenig shoenig marked this pull request as ready for review February 14, 2023 20:02
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.3.x backport to 1.3.x release line backport/1.4.x backport to 1.4.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nomad panic during RPM post install script execution.
2 participants