Google throws support behind bringing Rust to the Linux kernel

html code
(Image credit: Pixabay)

After greenlighting plans to use the Rust programming language in Android’s low-level system-code, Google is now throwing its weight behind the move to allow Rust as a supported language for developing the Linux kernel.

Google looks at Rust as a memory-safe language that it hopes will help curb the growing number of memory-based security vulnerabilities in the mobile operating 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

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 had landed in the development stream of 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. 

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

TOPICS
Mayank Sharma

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

Read more
Google Chrome
Linux Foundation brings together top browser makers for more "open" approach
LinuxPDF
First Doom, now Linux: an unnamed high school student runs Linux OS in a PDF doc in Google Chrome so what's next?
ExpressVPN apps running on a laptop and mobile during TechRadar's testing
What's new in Lightway 2.0? Here are the 4 biggest changes I'm excited for
ExpressVPN Lightway protocol in Rust – promo image
ExpressVPN's latest upgrade to Lightway hopes to create "the VPN protocol of the future"
DC-Roma RISC-V Mainboard
The rise of RISC: 2025 will be the year of the first quasi-mainstream RISC-V laptop as confirmed by the CEO of Framework but I don't think it will be ready for primetime
Padlock against circuit board/cybersecurity background
Kali laid bare: the most famous Linux hacking distro of all time
Latest in Pro
Branch office chairs next to a TechRadar-branded badge that reads Big Savings.
This office chair deal wins the Amazon Spring Sale for me and it's so good I don't expect it to last
Saily eSIM by Nord Security
"Much more than just an eSIM service" - I spoke to the CEO of Saily about the future of travel and its impact on secure eSIM technology
NetSuite EVP Evan Goldberg at SuiteConnect London 2025
"It's our job to deliver constant innovation” - NetSuite head on why it wants to be the operating system for your whole business
FlexiSpot office furniture next to a TechRadar-branded badge that reads Big Savings.
Upgrade your home office for under $500 in the Amazon Spring Sale: My top picks and biggest savings
Beelink EQi 12 mini PC
I’ve never seen a PC with an Intel Core i3 CPU, 24GB RAM, 500GB SSD and two Gb LAN ports sell for so cheap
cybersecurity
Chinese government hackers allegedly spent years undetected in foreign phone networks
Latest in News
Open AI
OpenAI unveiled image generation for 4o – here's everything you need to know about the ChatGPT upgrade
Apple WWDC 2025 announced
Apple just announced WWDC 2025 starts on June 9, and we'll all be watching the opening event
Hornet swings their weapon in mid air
Hollow Knight: Silksong gets new Steam metadata changes, convincing everyone and their mother that the game is finally releasing this year
OpenAI logo
OpenAI just launched a free ChatGPT bible that will help you master the AI chatbot and Sora
An aerial view of an Instavolt Superhub for charging electric vehicles
Forget gas stations – EV charging Superhubs are using solar power to solve the most annoying thing about electric motoring
NetSuite EVP Evan Goldberg at SuiteConnect London 2025
"It's our job to deliver constant innovation” - NetSuite head on why it wants to be the operating system for your whole business