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

Incongruent address space mapping between L4 and L5 PT level modes #49

Open
Qix- opened this issue Feb 6, 2025 · 0 comments
Open

Incongruent address space mapping between L4 and L5 PT level modes #49

Qix- opened this issue Feb 6, 2025 · 0 comments
Labels
x86_64 Relates to the x86_64 architecture

Comments

@Qix-
Copy link
Member

Qix- commented Feb 6, 2025

The current system of specifying L4/L5 indices for ranges in the x86 address space is a bit flawed.

For example, let's take the userspace module load segments:

  • On L=4, the PML4 index is 17, meaning the lowest address for module executable code is 17 << (12 + 9 * 3) = 0x88000000000
  • However on L=5, the PML5 index is still 17, meaning the lowest address becomes 17 << (12 + 9 * 4) = 0x11000000000000

This obviously breaks a lot of assumptions, especially when linking modules, and needs to be addressed somehow.

@Qix- Qix- added the x86_64 Relates to the x86_64 architecture label Feb 6, 2025
@Qix- Qix- added this to the v0 (killswitch) milestone Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x86_64 Relates to the x86_64 architecture
Development

No branches or pull requests

1 participant