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

Possible reachable assertion when updating PTEs #711

Open
Timmmm opened this issue Feb 5, 2025 · 0 comments
Open

Possible reachable assertion when updating PTEs #711

Timmmm opened this issue Feb 5, 2025 · 0 comments

Comments

@Timmmm
Copy link
Collaborator

Timmmm commented Feb 5, 2025

The virtual memory code has an assertion "invalid physical address in TLB" that happens when you have a TLB hit, and the PTE A/D bits need to be updated, and the write fails (e.g. due to PMA/PMP).

I don't think that's correct, because that path is easily reachable. Just map a page, access it so it's in the TLB, then set up PMP so that the PTE is inaccessible, and the write to the page.

I am working on a unit test for this to demonstrate it, and a fix.

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

1 participant