Eliminating Memory Safety Vulnerabilities at the Source | Google's use of Rust in Android's Linux kernel
Leaflet @ that_leaflet @lemmy.world Posts 261Comments 373Joined 2 yr. ago

Leaflet @ that_leaflet @lemmy.world
Posts
261
Comments
373
Joined
2 yr. ago
Android uses forked versions of the Linux kernel, based on Linux LTS versions. They added in Rust support in 2019 and most new code since then has been written in Rust in order to avoid memory safety vulnerabilities. And memory safety vulnerabilities have been significantly down since 2019.
Now that upstream Linux is adopting Rust, we should hopefully see a similar results. Though likely slower than Google (they went all-in on Rust) while upstream Linux new code will seemingly be mainly C for the foreseeable future.