How does this compare to testing with address sanitizers?
Arm releases experimental CHERI-enabled Morello board
21–30 of 84 posts
Re: Arm releases experimental CHERI-enabled Morello board
#22Earlier quoted context omitted.
Nobody's claiming it's "hack-proof", that would be foolish, just that it removes certain classes of vulnerabilities that are the majority of CVEs for code written in memory-unsafe languages, thereby reducing the attack surface. Independent analysis by both Microsoft and Google has shown that's around 70% of vulnerabilities, which still leaves around 30%, but is a big step forward.
Not OP, but that's not how I interpreted their comment. I interepreted it as the 70% they hope to have fixed will end up having edge cases not yet considered, and the protections will end up weaker than desired. No-one designed a processor to be susceptable to spectre and meltdown, once something moves into production there is significantly more incentive to investigate and find these flaws.
Re: Arm releases experimental CHERI-enabled Morello board
#23Re: Arm releases experimental CHERI-enabled Morello board
#24What about RISC-V?
We also have a CHERI-RISC-V specification ( https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-951.pdf ), with support in CHERI LLVM, CHERI QEMU and CheriBSD, plus three open-source FPGA implementations ( https://github.com/CTSRD-CHERI/Piccolo , https://github.com/CTSRD-CHERI/Flute , https://github.com/CTSRD-CHERI/Toooba ) that span various parts of the microarchitecture design space, and it is the platform we use for o…
Re: Arm releases experimental CHERI-enabled Morello board
#25> The CHERI memory-protection features allow historically memory-unsafe programming languages such as C and C++ to be adapted to provide strong, compatible, and efficient protection against many currently widely exploited vulnerabilities. https://www.cl.cam.ac.uk/research/security/ctsrd/cheri/
The experience then I would guess is that software will crash rather than, for example, read bad data from the wrong address space. A feature user space apps get from virtual memory (if it’s outside their processes memory space that is).
Did I get this right? Also, it should help Rust just as much, especially in unsafe code regions.
Re: Arm releases experimental CHERI-enabled Morello board
#26Earlier quoted context omitted.
There are no CVEs related to Solaris SPARC Application Data Integrity, or Unisys ClearPath MCP. Either they aren't interesting for hackers, or they actually did a good job with hardware memory tagging.
I might imagine the former over latter
Re: Arm releases experimental CHERI-enabled Morello board
#27Earlier quoted context omitted.
We also have a CHERI-RISC-V specification ( https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-951.pdf ), with support in CHERI LLVM, CHERI QEMU and CheriBSD, plus three open-source FPGA implementations ( https://github.com/CTSRD-CHERI/Piccolo , https://github.com/CTSRD-CHERI/Flute , https://github.com/CTSRD-CHERI/Toooba ) that span various parts of the microarchitecture design space, and it is the platform we use for o…
Then the HN title is inaccurate.
Re: Arm releases experimental CHERI-enabled Morello board
#28Earlier quoted context omitted.
We also have a CHERI-RISC-V specification ( https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-951.pdf ), with support in CHERI LLVM, CHERI QEMU and CheriBSD, plus three open-source FPGA implementations ( https://github.com/CTSRD-CHERI/Piccolo , https://github.com/CTSRD-CHERI/Flute , https://github.com/CTSRD-CHERI/Toooba ) that span various parts of the microarchitecture design space, and it is the platform we use for o…
Then the HN title is inaccurate.
Re: Arm releases experimental CHERI-enabled Morello board
#29Re: Arm releases experimental CHERI-enabled Morello board
#30> The CHERI memory-protection features allow historically memory-unsafe programming languages such as C and C++ to be adapted to provide strong, compatible, and efficient protection against many currently widely exploited vulnerabilities. https://www.cl.cam.ac.uk/research/security/ctsrd/cheri/
My reading of that linked article on CHERI is two things. First that software needs to adopt the instructions in order to use it. It then raises a question of what is the benefit. What is the experience compared to today, and it should be that embedded software can gain some of the features that are generally reserved for user space. That’s virtual memory protection. The experience then I would guess is that software…
Yes, if you attempt to access outside the bounds of a capability you will deterministically crash. This is true even if you do have virtual memory and there is memory there.
Yes, the use of CHERI to protect unsafe code in memory-safe languages like Rust is of interest to us. There is also the possibility of being able to remove some of the compiler-generated bounds checks by using the capability bounds instead, though some care is needed to preserve the precise semantics (but some may also be happy to slightly change the semantics if it means they can all be removed and potentially improve performance).