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

align allocator's base address and length to BLOCK_SIZE #51

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

naoki9911
Copy link
Contributor

@naoki9911 naoki9911 commented Feb 18, 2024

Base address and length must be aligned to BLOCK_SIZE, but currently aligned to PAGE_SIZE.
This causes General Protection Exception in some cases.

This patch fixes wrong alignment.

Base address and length must be aligned to BLOCK_SIZE,
but currently aligned to PAGE_SIZE.
This causes General Protection Exception in some cases.

This patch fixes wrong alignment.

Signed-off-by: Naoki MATSUMOTO <[email protected]>
@ainozaki ainozaki requested a review from saza-ku February 20, 2024 01:10
Copy link
Contributor

@saza-ku saza-ku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for late review!

Thanks for a great fix!

@saza-ku saza-ku merged commit 1c0ea8a into mewz-project:main Feb 23, 2024
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