Linux kernel 6.1: Rusty release could be a game-changer (2024)

Opinion Linus Torvalds is happy to tell you that Linux release numbers aren't a big deal.

As the Linux supremo said of the 6.0 release: "Despite the major number change, there's nothing fundamentally different about this release – I've long eschewed the notion that major numbers are meaningful, and the only reason for a 'hierarchical' numbering system is to make the numbers easier to remember and distinguish."

With 6.1, however, there is something fundamentally different. For the first time in Linux's history, in addition to C, you'll be able to use another language, Rust, for kernel development.

Why? As Wedson Almeida Filho of Google's Android Team said, "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."

Specifically, as Alex Gaynor and Geoffrey Thomas explained at the 2019 Linux Security Summit, almost two-thirds of Linux kernel security holes [PDF] come from memory safety issues. And where do they originate? Inherent weaknesses in C and C++. Rust, on the other hand, dodges these issues by using far safer application programming interfaces (APIs). Rust is simply safer than C.

Recently, the US National Security Agency (NSA), which is in charge of securing code as well as breaking it, suggested that one of the best things you can do for your program's security is to use memory-safe languages such as Rust instead of C. Of course, there are other such languages, such as Swift, Go, or C#, but they don't lend themselves for the kind of low-level programming needed for an operating system.

This isn't just a theory. It works. Google, for example, is now using Rust extensively in Android. There the "goal is not to convert existing C/C++ to Rust, but rather to shift development of new code to memory-safe languages over time"

  • How do you solve the problem that is Twitter?
  • GitHub's Copilot flies into its first open source copyright lawsuit
  • Is it time to retire C and C++ for Rust in new programs?
  • Why the Linux desktop is the best desktop

The result? "As the amount of new memory-unsafe code entering Android has decreased, so too has the number of memory safety vulnerabilities. From 2019 to 2022 it has dropped from 76 percent down to 35 percent of Android's total vulnerabilities. 2022 is the first year where memory safety vulnerabilities do not represent a majority of Android's vulnerabilities." That's not too shabby.

Of course, just because something is safer didn't mean that everyone wanted to adopt it. After all, developers have spent almost 30 years working on Linux in C. Developers were all concerned about the sheer amount of work needed to bring Rust into Linux. For example, to get the Rust Linux NVMe driver to work, 70 non-standard Rust extensions were needed.

But, as Torvalds told me earlier this year, "We've been using exceptions to standard C for decades."

If you've cut your programming teeth on C and sleep with a copy of K&R under your pillow, don't worry. Rust will not be replacing C in the kernel anytime this decade.

As Torvalds has explained, Rust will "just have the core infrastructure (i.e. no serious use case yet)." Specifically, you can expect to see Rust make its first appearance in Linux drivers.

Miguel Ojeda, a Linux kernel developer who spearheaded efforts to bring Rust into the kernel, added: "The kernel is a huge project with a lot of stakeholders. Since the beginning, it was clear that adding a second 'main' language to the kernel would have both technical and management challenges."

So, Ojeda explained, the first Rust work you'll see in the Linux kernels will be "Rust abstractions for subsystems and write drivers and other modules."

  • Google says Android runs better when covered in Rust
  • GitHub's Copilot flies into its first open source copyright lawsuit
  • Why I love my Chromebook: Reason 1, it's a Linux desktop
  • Linus Torvalds to kernel devs: Grow up and stop pulling all-nighters just before deadline

What does that mean for old-school developers? In Ojeda's introduction to his latest patch set, he said, "the facilities introduced are part of the 'Rust core.' They do not interact with the C side in new major ways (no new C types used; only strlen, memchr, additional error codes, and some more printk format strings)."

Ojeda also added, "Virtually all the code has been in linux-next for months."

In other words, Rust is being slowly and steadily introduced into the kernel. There are no quick changes being shoved down kernel developers' throats. Indeed, most of these most recent changes won't even be making it into the 6.1 kernel. They're much more likely to make their first appearance in the 6.2 kernel.

But, with the release of 6.1, which, fingers crossed, should appear on December 12, Rust will officially make Linux a two-language operating system. And, that, my friends, is big news indeed. ®

Linux kernel 6.1: Rusty release could be a game-changer (2024)
Top Articles
Queen Maxima of the Netherlands is glamorous in a plum frock
8 Best Ways to Make Money Fast as a Woman
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Pres. Lawanda Wiegand

Last Updated:

Views: 5989

Rating: 4 / 5 (71 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Pres. Lawanda Wiegand

Birthday: 1993-01-10

Address: Suite 391 6963 Ullrich Shore, Bellefort, WI 01350-7893

Phone: +6806610432415

Job: Dynamic Manufacturing Assistant

Hobby: amateur radio, Taekwondo, Wood carving, Parkour, Skateboarding, Running, Rafting

Introduction: My name is Pres. Lawanda Wiegand, I am a inquisitive, helpful, glamorous, cheerful, open, clever, innocent person who loves writing and wants to share my knowledge and understanding with you.