Google throws support behind bringing Rust to the Linux kernel

Support for Rust has already landed in the low-level code of Android

When you purchase through links on our site, we may earn an affiliate commission.Here’s how it works.

After greenlighting plans to use theRustprogramming language inAndroid’s low-level system-code,Googleis now throwing its weight behind the move to allow Rust as a supported language for developing theLinuxkernel.

Google looks at Rustas a memory-safe language that it hopes will help curb the growing number of memory-based security vulnerabilities in the mobileoperating system. It believes the Linux kernel should use Rust for the same reasons.

“We feel that Rust is now ready to join C as a practical language for implementing the kernel. It can help us reduce the number of potential bugs and security vulnerabilities in privileged code while playing nicely with the core kernel and preserving its performance characteristics,” wrote Wedson Almeida Filho from Google’s Android Team.

Writing in Google’s Security Blog, Filho details a prototype of a Binder driver for inter-process communication in Rust, in order for developers to compare its safety and performance characteristics with the existing version written in C.

Second language

Second language

The move to add Rust to the Linux kernel is spearheaded by kernel developer Miguel Ojeda, who has set up the Rust for Linux group, of which Google’s Android Team is also a member.

Ojeda last month shared news that initial infrastructure for Rust to be used within the Linux kernel hadlanded in the development streamof the kernel named Linux-Next.

Earlier this week he put out a request for comments (RFC) to the kernel mailing list detailing the advantages of adding Rust code to the mainline kernel.

Are you a pro? Subscribe to our newsletter

Are you a pro? Subscribe to our newsletter

Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!

From the initial responses there doesn’t seem to be an overwhelming opposition to the idea. Even Linux Torvalds, the final authority of what goes in the mainline kernel, isn’t totally opposed to the idea, though he does have some technical reservations about it, but is willing to participate in the discussions.

From Filho’s post it appears Google has a lot more Rust code than the Binder driver, which was just meant to give a glimpse of the benefits of Rust to the kernel.

“This is an exciting time and a rare opportunity to potentially influence how the Linux kernel is developed, as well as inform the evolution of the Rust language,” concludes Filho.

Via:ZDNet

With almost two decades of writing and reporting on Linux, Mayank Sharma would like everyone to think he’sTechRadar Pro’sexpert on the topic. Of course, he’s just as interested in other computing topics, particularly cybersecurity, cloud, containers, and coding.

Adobe’s decision to eliminate perpetual licensing for its Elements software has stirred controversy among consumers

VIPRE Security Group says its new endpoint protection tools can stamp out even the latest cybersecurity threats

Huge Black Friday Samsung sale: save up to $1,900 on QLED, OLED TVs, and more