Skip to content

Fix mremap#807

Open
CvvT wants to merge 2 commits intomainfrom
weiteng/fix_mremap
Open

Fix mremap#807
CvvT wants to merge 2 commits intomainfrom
weiteng/fix_mremap

Conversation

@CvvT
Copy link
Copy Markdown
Contributor

@CvvT CvvT commented Apr 24, 2026

This PR fixes three issues in mremap found by AI.

  1. old_size and new_size are rounded down to page boundary instead of up (Linux expects round-up).
  2. The default impl of remap_pages copies wrong chunk size, reading out-of-bounds on multi-page remaps.
  3. Fix overlap check in kernel platform.

@CvvT
Copy link
Copy Markdown
Contributor Author

CvvT commented Apr 24, 2026

The second issue is also fixed in #754, but I feel it might be better to include it in this PR.

@github-actions
Copy link
Copy Markdown

🤖 SemverChecks 🤖 No breaking API changes detected

Note: this does not mean API is unchanged, or even that there are no breaking changes; simply, none of the detections triggered.

@CvvT CvvT marked this pull request as ready for review April 24, 2026 22:15
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.

1 participant