Xv6 Labs 2025 Page Tables
Permissions:
PTE_Rallows page to be read.PTE_Wallows page to be written.PTE_Uallows page to be accessed by user.PTE_Vleft clear in unused PTEs, which seems to be VALID flag.
Things to remember:
- Set correct and as small as possible permission for memory pages.
I don’t know whether should I add a function to detect which level I had walked to.
This post is licensed under
CC BY 4.0
by the author.