checkpoint-restore / criu

Checkpoint/Restore tool
criu.org
Other
2.76k stars 560 forks source link

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

Closed AT120 closed 3 months ago

AT120 commented 3 months ago

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

codecov-commenter commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

:exclamation: 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 ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.