r/linux • • Apr 15 '21

Kernel Rust in the Linux kernel

https://security.googleblog.com/2021/04/rust-in-linux-kernel.html
103 Upvotes

66 comments sorted by

View all comments

Show parent comments

-16

u/[deleted] Apr 15 '21

[removed] — view removed comment

12

u/ssokolow Apr 15 '21 edited Apr 15 '21

This entire language is trivial code generation and stdlib restricted into oblivion. You can implement 95% of this in C, and the rest will never be used in kernel anyway.

Then I'm surprised Microsoft, Apple, Google, Mozilla, and Canonical all chose to live with 65-90% of their CVEs being memory vulnerabilities, given the amount of money and/or developer effort they throw at other things.

What science can tell us about C and C++'s security - Alex Gaynor

-7

u/[deleted] Apr 15 '21

[removed] — view removed comment

10

u/ssokolow Apr 15 '21

You clearly missed my sarcasm.

The reason they're interested in Rust is because they tried and found that it wasn't practical. (i.e. That annotating C or C++ with the amount of information necessary for comparable static analysis would have made them worse than Rust to work in.)

Also, if you don't want a kernel with Rust in it, don't use one. Google has been making Android kernels for ages, and this is comparable to complaining about the nVidia binary driver getting upstreamed when you only run AMD hardware.