Linux 7.4: “Rust Is Going to Save Us.” The AI Flood Landed in C.
He told a room of Rust programmers in Utrecht on May 20, 2026, that he was mostly a C programmer. He then told them how Rust, their newer language, would save Linux’s maintainers.
He maintained the stable versions of Linux, and AI tools were flooding the Linux security list with bug reports. Each fix needed a person to read it and sign it before it reached a phone, a server, or a laptop.
Almost all the reported bugs were in C, and Linux is keeping C.
He wanted Rust to catch bugs before a person had to read the code. Rust catches them only in code written in Rust.
We Stole This From Rust
Greg Kroah-Hartman had two kinds of bugs in mind, out of all the kinds in Linux. Linux took code from over 5,000 developers the year before, he told the Rust Week audience on May 20, 2026, and about 700 maintainers had to read it all to find these two kinds.
The first kind happens when code fails halfway through a job. Before it quits, the code has to give back the memory it took. If it forgets, that memory stays taken until the machine restarts. Programmers call this a memory leak.
The second kind happens when two parts of Linux use the same data. A lock lets only one part change the data at a time. Code that forgets to take the lock can corrupt the data, and code that forgets to release it can freeze the machine. Programmers call two parts changing the data at once a race condition. They call a lock that is never released a missing unlock.
A C maintainer catches both kinds by reading. Rust’s build, by his account, catches them before any person reads the code, and Kroah-Hartman wanted that work done “at build time, not review time”. He guessed that catching these two kinds would remove 60% of kernel bugs, and admitted in the same breath that he did not know.
C had already borrowed the idea. Since 2023, new kernel C can return memory and locks on its own when a block of code ends, through helpers such as guard() and __free() that Peter Zijlstra, the kernel’s locking maintainer, added. “We stole this from Rust,” Kroah-Hartman told the room. He said the kernel would not go back and rewrite the old C. Only new code would use the new helpers.
Kroah-Hartman also gives out the CVE numbers, the public IDs for Linux security bugs. The kernel’s own list shows 377 records first published in April 2026, and 1,027 in May.
The count nearly tripled in one month, and someone still had to read and sign off on every fix.
The New Normal
Kroah-Hartman closed one part of Linux to AI on August 3, 2026. It was drivers/staging/, the folder where many newcomers send their first code. From that day on, he rejected any change made with AI. He allowed one exception: an AI-found fix that the sender had tested on the real hardware. Even the best AI tools, he said, got at least a third of their results flat wrong or harmful.
Everywhere else in Linux, the AI fixes kept coming, and they flowed up to Linus Torvalds, who releases every Linux version. Torvalds wrote on October 4, 2026, that AI had brought a new normal: A lot of small fixes to code that runs when something fails. That failing code is where memory leaks hide, the first bug type Kroah-Hartman had wanted Rust to catch. The AI tools were finding those bugs in C instead, one small fix at a time.
Every one of those C fixes went through a person. The kernel’s rules for AI tools let only a human add the Signed-off-by line that certifies a change, and they make that human responsible for reviewing all AI-generated code.
Lorenzo Stoakes, who reviews the kernel’s memory-management code, was one of those people. He was working evenings and weekends to deal with “AI slop”, to the point of burnout, he told the kernel’s workflows list on October 16, 2026. The review load had doubled or tripled.
30 Million Lines of C
Torvalds added more Rust code to Linux on October 21, 2026, when he merged Miguel Ojeda’s Rust changes for Linux 7.4. Ojeda maintains Rust support in the kernel, and he wrote the patch that ended the Rust experiment in December 2025, after the Maintainers Summit deemed it concluded. The kernel’s documentation has carried no experiment section since Linux 7.0.
Linux 7.3, which Torvalds released on October 18, 2026, is still a C kernel. C files and their headers make up 98.53% of its C, header, assembly, and Rust source lines. Rust holds 0.50%.
I used C very heavily, and I also wrote a C and C++ book together with my professor at university. C is easy to learn but hard to master. That’s exactly why C developers differ so much in their knowledge and code quality.
In an email to the kernel list in February 2025, Kroah-Hartman blamed most kernel bugs, by count, on small C corner cases that Rust removes. The same mail says Linux has 30 million lines of C that are not going anywhere soon, and it calls new code and drivers in Rust a win for everyone who works on the kernel.
The helpers C stole from Rust in 2023, guard() and __free(), return memory and locks on their own. Only 2,506 of the 37,383 C files in Linux 7.3 use them, fewer than 7 in 100.
Torvalds closed the merge window for 7.4, the period when he takes in new work, on November 1, 2026. No window in Linux history had taken in more changes, and just 1.3% of the window’s changes touched Rust.
C Is the Next Assembly
Kroah-Hartman named 7.3, the 98.53% C version, as the planned next long-term support release in a reply to Torvalds on November 2, 2026. C is still the default for new kernel code, and the four new display panel drivers in the 7.4 code so far are C files.
I expect Rust adoption in Linux to be incremental. Rust builds for only 8 of the 21 architecture folders in the kernel tree, and Ojeda wrote in his December 2025 patch that support for building Rust with GCC, the GNU compiler, was still quite experimental.
Torvalds ruled in February 2025 that maintainers may keep Rust out of the code they maintain, but they may not block Rust code that calls their C code.
I expect C to become, over the next 10 to 20 years, what assembly is in Linux today: indispensable for old interfaces and low-level code, and increasingly an exception for new parts where memory safety matters.
Assembly is the language the processor itself reads. Linux 6.1 (2022) had 372,055 lines of Assembly code. Linux 7.3 (2026) still has 371,428 lines of Assembly code.
I believe C is a very strong language. But with AI development, I expect Linux to eventually need a language stricter than C, because its maintainers already say AI-found bugs and AI-assisted fixes overload their review, and its stable maintainer wants those checks done at build time.
Don’t get mad at me. I am not the one who let AI into the Linux kernel. Linus Torvalds ruled on it on October 13, 2026, when he wrote to the kernel list that he did not understand “this whole idiotic concept of ‘don’t use AI for X'”. To him, the question was whether developers understood their code. Whether they wrote it alone or with an AI tool mattered very little.
Torvalds sent out the second test build of 7.4 on November 8, 2026, and wrote that much of it was driven by AI fixes, which everyone could now take for granted.
I expect C to stay in Linux for decades, and I expect new Linux code to move into a stricter language, one driver at a time. Your phone, servers, and laptop get these fixes through kernel updates.
I love C, but I am sure that it is not ready for where we are heading with AI development.
What do you think about AI-assisted development in the Linux kernel and their strong push for the Rust programming language? For both topics, the kernel has strongly opinionated maintainers; what do you think?

