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

[v0.11 backport] Prevent overflow of runc exit code. #3902

Closed
wants to merge 1 commit into from

Conversation

thaJeztah
Copy link
Member

It's possible for the Status field of runc.ExitError to be set to -1, in which case conversion to uint32 results in the error message to say that the container exited with code 4294967295 (2^32-1).

(cherry picked from commit 9b0bdb6)

It's possible for the Status field of runc.ExitError to be set to -1, in
which case conversion to uint32 results in the error message to say that
the container exited with code 4294967295 (2^32-1).

Signed-off-by: Erik Sipsma <erik@sipsma.dev>
(cherry picked from commit 9b0bdb6)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added this to the v0.11.7 milestone May 25, 2023
@thaJeztah
Copy link
Member Author

don't merge (yet); there was some discussion on this whether it's good to "hide the problem", without addressing the root-cause (second part of the linked PR)

Copy link
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

The fix is in the other commit (if we think it is safe to backport it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants