News for hackers. Stuff that matters.
Re:Pointer Authentication by EddieCPU on Sunday December 15, 2019 @02:20PM (#21798301)
Is it technically possible to design a MMU that prevents a process reading or writing to a region of memory that don't belong to it?
Re:Pointer Authentication by aseipp on Sunday December 15, 2019 @02:27PM (#21798351)
Yes, absolutely. There are a lot of possible approaches in this design space, but recent CPUs from ARM can do this using memory tagging at a much finer granularity than process-wide. I don't think any silicon is actually shipping with this feature yet, unfortunately.
Re:Pointer Authentication by pdkl95 on Sunday December 15, 2019 @10:45PM (#21800647)
yes: http://millcomputing.com/wiki/Protection

Regarding ROP, that entire class of attack isn't possible if return addresses are stored in hardware that isn't accessible to the program.

> "[Stacks on the Mill architecture] contain no control flow information. In particular, no return addresses. The control stacks are maintained entirely within the hardware, inaccessible from programs. They get saved and restored by the Spiller as needed. This makes several classes of common security exploits simply impossible."

Re:Pointer Authentication by kjs3 on Monday December 16, 2019 @08:55PM (#21809744)
Yes; you're looking for 'capability based MMU'. The Intel i960MX/MC MMU had one, and development tools to support it (mostly in Ada). Unfortunately, Intel stripped/disabled the MMU in the vast majority of i960s it shipped and really only sold the MMU version in the military market.
Re:Pointer Authentication by moonbug on Sunday December 15, 2019 @02:21PM (#21798306)
that is exactly what an MMU is for.
Re:Pointer Authentication by saagarjha on Sunday December 15, 2019 @02:23PM (#21798317)
MMUs work on much larger regions than what is useful for many classes of memory safety issues. Luckily, ARMv8.5 adds support for memory tagging at a more granular level.
Re:Pointer Authentication by twic on Sunday December 15, 2019 @02:44PM (#21798463)
Aha, a chance to mention my favourite dead processor design, the 432, which had an MMU designed to work at much finer, object-sized, granularity:

https://en.wikipedia.org/wiki/Intel_iAPX_432#Object-oriented...

Re:Pointer Authentication by tyingq on Sunday December 15, 2019 @10:30PM (#21800607)
Here's a presentation from lowrisc.org on their plans for tagged memory on a RISCV chip: https://riscv.org/wp-content/uploads/2017/05/Wed0930riscv201...
Re:Pointer Authentication by gpderetta on Sunday December 15, 2019 @08:09PM (#21800126)
Let's resurrect segments!