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

Paging Implemenation: Don't map page at address zero #851

Open
phil-opp opened this issue Aug 27, 2020 · 3 comments
Open

Paging Implemenation: Don't map page at address zero #851

phil-opp opened this issue Aug 27, 2020 · 3 comments

Comments

@phil-opp
Copy link
Owner

The Rust standard library does not allow writes to address 0, so this can lead to problems. In the post, we don't write to address 0 directly, so this isn't an immediate problem, but it's nonetheless dangerous.

Reported in #570 (comment).

@pitust
Copy link

pitust commented Aug 27, 2020

Idea: We shouldn't map pages to virtual address zero

@phil-opp
Copy link
Owner Author

I think mapping pages to the physical frame at address zero is fine. But we should not map the page at virtual address zero.

@pitust
Copy link

pitust commented Aug 27, 2020

yes, that is what i meant.

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

No branches or pull requests

2 participants