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

mem: fix some VMAs being incorrectly mapped wtih PROT_WRITE #2370

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

AT120
Copy link
Contributor

@AT120 AT120 commented Mar 24, 2024

A memory interval is a half-open interval, so the condition when pr->pe->vaddr == vma->e->end should not be interpreted as an intersection and should cause vma to be marked with VMA_NO_PROT_WRITE.

Fixes: #2364

A memory interval is a half-open interval, so the condition
when pr->pe->vaddr == vma->e->end should not be interpreted
as an intersection and should cause vma to be marked with VMA_NO_PROT_WRITE.

Fixes: checkpoint-restore#2364

Signed-off-by: Artem Trushkin <at.120@ya.ru>
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.71%. Comparing base (cb39c62) to head (27957ac).

❗ Current head 27957ac differs from pull request most recent head 08f6f2e. Consider uploading reports for the commit 08f6f2e to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##           criu-dev    #2370      +/-   ##
============================================
+ Coverage     70.21%   70.71%   +0.50%     
============================================
  Files           132      135       +3     
  Lines         34372    32912    -1460     
============================================
- Hits          24134    23275     -859     
+ Misses        10238     9637     -601     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@avagin avagin merged commit 06c1016 into checkpoint-restore:criu-dev Mar 25, 2024
37 of 39 checks passed
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.

ENOMEM when restoring big mappings with PROT_NONE
3 participants