News for hackers. Stuff that matters.
Re:An introduction to virtual memory by Koshkin on Thursday May 07, 2020 @08:55PM (#23110230)
Curiously, you do not need memory virtualization if all you want is memory protection and process isolation: this can be achieved by a simpler piece of hardware that just ensures that a range of the upper bits of the memory address used by the process matches a certain pattern, or tag. This effectively partitions the physical RAM.
Re:An introduction to virtual memory by fuklief on Friday May 08, 2020 @03:49AM (#23112407)
That sounds like a capability machine e.g., CHERI[1] It seems those might become relatively mainstream in a few years, as ARM seems to be jumping on board [2]

[1]: https://www.cl.cam.ac.uk/research/security/ctsrd/cheri/ [2]: https://www.cl.cam.ac.uk/research/security/ctsrd/cheri/cheri...

Re:An introduction to virtual memory by monocasa on Thursday May 07, 2020 @09:38PM (#23110482)
If anyone wants to play with this idea, you can use the base and bounds registers in the ARM-M and ARM-R specs to do this for one example.
Re:An introduction to virtual memory by t0350 on Friday May 08, 2020 @01:48AM (#23111771)
You could also implement something likes software isolated process to have memory safety. However, the idea of virtual memory really fascinates me. Such an elegant layer and it brings you many other merits besides memory safety.