Eliminating Memory Safety Vulnerabilities at the Source | Google's use of Rust in Android's Linux kernel (security.googleblog.com)
from that_leaflet@lemmy.world to linux@lemmy.ml on 26 Sep 2024 11:52
https://lemmy.world/post/20204477

#linux

threaded - newest

lily33@lemm.ee on 26 Sep 2024 12:40 collapse

I’m not sure where the Linux kernel part comes from, but if I open the article and search for “linux” or “kernel”, there are no matches…

that_leaflet@lemmy.world on 26 Sep 2024 13:03 collapse

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.

sun_is_ra@sh.itjust.works on 26 Sep 2024 13:51 collapse

Now that upstream Linux is adopting Rust,

is it? From what I read the old kernel developers are really opposing it

that_leaflet@lemmy.world on 26 Sep 2024 13:59 collapse

Linux support is definitely moving slower than the Rust team wants, but the team and Linus are still optimistic.