Software

"Get Your Sh*t Together": Linus Torvalds Furious Over AI-Assisted Linux Changes

Updated

  • Linus Torvalds
  • Linux kernel
  • AI coding
  • AI-generated code
  • Linux 7.4
  • EXT4
  • Claude Code
  • artificial intelligence
  • KUnit
  • software development
"Get Your Sh*t Together": Linus Torvalds Furious Over AI-Assisted Linux Changes
Uploaded by the desk

AI coding tools are making it easier than ever to discover bugs, write tests and produce software at a scale that would previously have taken developers weeks or months. But in the Linux kernel world, producing more code faster does not necessarily mean that code should be merged immediately.

Linus Torvalds made that point unmistakably this week after receiving a massive EXT4 filesystem update intended for Linux 7.4-rc5. The update, submitted by longtime Linux developer Theodore Ts'o, contained 41,197 lines of additions, much of which involved AI-generated bug fixes and new testing infrastructure.

Torvalds ultimately merged the changes, but his response on the Linux kernel mailing list was anything but welcoming.

"STOP THINKING THAT YOU – OR AI – NEVER ADD BUGS WHEN YOU FIX SOMETHING," he wrote.

41,197 lines of code during a release candidate

The update was intended to address bugs in EXT4, one of Linux's most widely used filesystems, while also introducing extensive KUnit test coverage designed to help validate AI-generated patches.

According to Ts'o, much of the added code consisted of testing infrastructure intended to make it safer to evaluate future AI-generated fixes.

The pull request also included performance improvements, including changes intended to reduce contention during parallel file creation and improvements to filesystem operations.

But the timing was the central issue.

Linux 7.4 was already in its release-candidate phase, a period when developers are expected to focus on stabilizing the kernel, resolving regressions and avoiding unnecessary large-scale changes.

Torvalds argued that such a substantial update should have been prepared for the next merge window rather than introduced during the final stages of the release cycle.

"Honestly, I don't think this was appropriate for this stage," Torvalds wrote, suggesting that the tests should have been kept on a separate branch and the larger update submitted during the next merge window.

Why Torvalds believes AI-generated fixes can introduce new bugs

The central argument behind Torvalds' frustration is deceptively simple: fixing a bug does not guarantee that the fix is safe.

AI coding tools can identify obscure problems that have existed in software for years. But those bugs may involve complex interactions, unusual edge cases or conditions that are difficult to reproduce.

If a bug was subtle enough to remain undetected for a long time, Torvalds argued, the solution could be equally subtle and potentially introduce new problems.

That is why he rejected the assumption that a large collection of bug fixes should automatically be considered safe simply because the changes are intended to correct existing problems.

He also questioned the logic of introducing tens of thousands of lines of additions during a release candidate, even if much of the code consists of tests that are not compiled into the production kernel.

"There's a why we have release candidates and several weeks of calming things down," he wrote.

The concern is not simply whether AI can produce technically correct code. It is whether maintainers have enough time to review, test and understand the consequences of introducing such a large change at the wrong stage of development.

Torvalds merged the code anyway

Despite his criticism, Torvalds did not reject the pull request.

He acknowledged that he had encountered serious reservations and conflicts while handling the update, and said he had initially considered pulling it back entirely.

Instead, he merged it while issuing a warning that future submissions of this kind could simply be ignored.

His response was particularly sharp when he addressed the developer's workflow, insisting that new development and test cases should be handled on a separate branch and submitted during the appropriate merge window.

"Get your sh*t together and stop this kind of idiocy," he wrote.

He also directed a pointed message toward the developer's AI coding assistant, telling him to keep new development and testing on a separate branch rather than introducing a massive update during kernel stabilization.

The message was clear: AI-assisted development does not excuse ignoring established software development practices.

This is not an anti-AI stance

The incident could easily be interpreted as another example of a prominent software developer rejecting AI-generated code. But that interpretation misses the broader context of Torvalds' position.

Torvalds has publicly supported the use of AI tools in software development and has himself experimented with AI-assisted coding.

Earlier this year, he defended the use of AI in the Linux development process, arguing that software tools should be judged by their technical usefulness rather than rejected simply because they involve artificial intelligence.

The Linux kernel community has also been moving away from mandatory disclosure of AI-assisted contributions, reflecting a broader shift toward treating AI as another development tool rather than an exceptional category of software assistance.

This latest confrontation is therefore less about whether AI should be used and more about how developers should manage the work it produces.

AI can accelerate bug discovery, generate testing infrastructure and produce large amounts of code. But the responsibility for reviewing, testing and submitting that work remains with the human developer.

The real problem with AI coding may be the speed of development

The incident highlights an emerging challenge for software engineering.

AI coding tools can dramatically increase the volume of code developers produce. That can be valuable when the work is properly organized, tested and reviewed. But increased productivity can also overwhelm existing workflows when developers submit large batches of changes without respecting the project's development cycle.

The Linux kernel is particularly sensitive to this problem because it supports millions of systems, from personal computers and smartphones to servers, cloud infrastructure and embedded devices.

A regression introduced into the kernel can have consequences far beyond a single application.

Release candidates exist precisely to reduce that risk. Developers are expected to stabilize the software, not introduce enormous amounts of new work that could complicate testing or create additional regressions.

AI does not change that responsibility.

If anything, the ability to generate tens of thousands of lines of code quickly makes disciplined development practices more important.

AI can write the code. Developers still own the consequences.

Torvalds' reaction is a reminder that software engineering is not simply about producing code or fixing bugs as quickly as possible.

It is about understanding what changes, why they are necessary, how they interact with existing systems and when they should be introduced.

AI may be capable of finding bugs that human developers overlooked for years. But the same technology can generate changes that are difficult to review, introduce new problems or complicate an otherwise stable release.

The lesson from the Linux kernel is not that developers should stop using AI.

It is that AI-generated code still needs engineering discipline.

And when 41,197 lines of changes arrive during a release candidate, even the world's most experienced open-source maintainer may have something to say about it.