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

Ensure all page table frames are mapped as writable #444

Merged
merged 1 commit into from
May 29, 2024

Conversation

Wasabi375
Copy link
Contributor

See #443

This is a quick fix, for the issue above. That said I think this can still be improved for example we could use a identity_map_with_table_flags function in the x86 crate.

Also as mentioned in the issue, maybe page table frames should be marked as no_exec.

@Freax13
Copy link
Member

Freax13 commented May 24, 2024

I'm not quite sure that there's a bug here, so let's discuss this in #443 first. I'll convert this PR to a draft for now.

@Freax13 Freax13 marked this pull request as draft May 24, 2024 15:20
@Freax13 Freax13 marked this pull request as ready for review May 24, 2024 18:31
@Freax13
Copy link
Member

Freax13 commented May 24, 2024

Can you please apply the same change here and here?

Also as mentioned in the issue, maybe page table frames should be marked as no_exec.

That's already done here and here.

@Freax13
Copy link
Member

Freax13 commented May 29, 2024

Can you please apply the same change here and here?

@Wasabi375 This still needs to be addressed.

@Wasabi375
Copy link
Contributor Author

Woops. Not sure how I missed your message. I changed those 2 places as well.

Copy link
Member

@Freax13 Freax13 left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@Freax13 Freax13 merged commit e10010e into rust-osdev:main May 29, 2024
9 checks passed
@Freax13 Freax13 mentioned this pull request Nov 1, 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