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

-25

u/[deleted] Apr 15 '21

[removed] — view removed comment

14

u/eXoRainbow Apr 15 '21

Its a slow transition without changing everything and breaking everything. This possibility is also a feature and goal of Rust developers. From that point, they can start using other Rust features and go upwards. The doc-comments are not the reason for the switch, but one advantage they can use right away in their code base.

Not sure why you mark this quote as a gem, as this is a very common tactic when big changes are done. Go step by step.

-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

8

u/ffscc Apr 15 '21

But now they want to impose their crappy "solutions" onto everyone else, and this is not OK

This is just scaffolding for driver code. Honestly what's the big deal? Core kernel functionality is going to be pure C for a long time to come.