3 ms·
But that wouldn't protect against out-of boundary access (which is the whole point of segments), would it?
by tliltocatl 10mo ago
But that wouldn't protect against out-of boundary access (which is the whole point of segments), would it?
- convolvatron 10mo agothats enforced by the VM hardware - we just shuffle the PTEs around to match the appropriate segment view
- rep_lodsb 10mo agoAs 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 10mo agobut 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