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

seize: fix error handling for check_freezer_cgroup #2513

Merged

Conversation

rst0git
Copy link
Member

@rst0git rst0git commented Nov 4, 2024

When check_freezer_cgroup() has non-zero return value, goto err calls return ret. However, the value of ret has been set to 0 in the lines above and CRIU does not handle the error properly.

This problem is related to #2508

@rst0git rst0git requested a review from avagin November 4, 2024 19:34
@rst0git rst0git force-pushed the 2024-11-04-seize-error-handling branch 2 times, most recently from 63dc0f7 to baf6683 Compare November 4, 2024 19:38
@rst0git rst0git marked this pull request as ready for review November 4, 2024 19:40
@rst0git rst0git force-pushed the 2024-11-04-seize-error-handling branch 2 times, most recently from ea03746 to 9537341 Compare November 4, 2024 19:44
criu/seize.c Outdated Show resolved Hide resolved
When `check_freezer_cgroup()` has non-zero return value, `goto err` calls
`return ret`. However, the value of `ret` has been set to `0` in the lines
above and CRIU does not handle the error properly.

This problem is related to checkpoint-restore#2508

Signed-off-by: Radostin Stoyanov <[email protected]>
@rst0git rst0git force-pushed the 2024-11-04-seize-error-handling branch from 9537341 to 3565136 Compare November 4, 2024 21:28
@avagin avagin merged commit 216d804 into checkpoint-restore:criu-dev Nov 6, 2024
38 of 41 checks passed
@avagin
Copy link
Member

avagin commented Nov 6, 2024

Merged. Thanks a lot.

@rst0git rst0git deleted the 2024-11-04-seize-error-handling branch November 7, 2024 10:36
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.

2 participants