Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
tliltocatl
4mo ago
0 comments
Share
But that wouldn't protect against out-of boundary access (which is the whole point of segments), would it?
0 comments
default
newest
oldest
convolvatron
4mo ago
thats enforced by the VM hardware - we just shuffle the PTEs around to match the appropriate segment view
rep_lodsb
4mo ago
As long as it's a linear address space, adding/subtracting a large enough value to a pointer (array, stack) could still cross into another "segment".
convolvatron
4mo ago
but those wouldn't be mapped unless you have crossed a call gate that enabled them. the kernel call gate implementation changes the VM map (region visibility) accordingly
j
/
k
navigate · click thread line to collapse