News for hackers. Stuff that matters.
Re:Two Stories for "What Is CHERI?" by saagarjha on Friday October 13, 2023 @08:08AM (#37869690)
CHERI is primarily targeted at providing safety for codebases that would benefit from moving spatial safety into hardware. Since most C(++) code has none of these checks at all, using CHERI allows you to retrofit the code to make it more secure. Rust and other safe languages currently reliably emit these checks in software which means it’s not as necessary for a hardware implementation of these things, but such code running in these systems could drop some of the software checks and rely on the CHERI primitives instead.
Re:Two Stories for "What Is CHERI?" by __s on Friday October 13, 2023 @09:41AM (#37870503)
Rust would still benefit from this with unsafe code. & on that front they need to do some changes since Rust code assumes pointers can be converted to/from usize/isize

https://faultlore.com/blah/fix-rust-pointers

Re:Two Stories for "What Is CHERI?" by IshKebab on Friday October 13, 2023 @04:24PM (#37875199)
Part of CHERI can also be used for software compartmentalisation which Rust has no support for.