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

Fix migration of fds to ELF files #2283

Merged
merged 3 commits into from
Oct 12, 2023
Merged

Conversation

mclapinski
Copy link
Contributor

9191f87 ("criu/files-reg.c: add build-id validation functionality") added a feature to verify build-id of ELF files. Unfortunately it also broke the offset migration of such files due to a read after lseek. This PR fixes that.

criu/files-reg.c Outdated Show resolved Hide resolved
At this point the correct position is already restored, so reading from
the fd results in the position being moved forward by 5 bytes.

Fixes: 9191f87 ("criu/files-reg.c: add build-id validation functionality")
Signed-off-by: Michal Clapinski <mclapinski@google.com>
Signed-off-by: Michal Clapinski <mclapinski@google.com>
Signed-off-by: Michal Clapinski <mclapinski@google.com>
@avagin avagin merged commit 42c1c84 into checkpoint-restore:criu-dev Oct 12, 2023
33 of 37 checks passed
@mclapinski mclapinski deleted the elf branch October 12, 2023 11:25
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.

4 participants