Torvalds Merges 41,197 Lines of AI-Assisted EXT4 Fixes, Warns He Will Ignore Such Requests
Linus Torvalds accepted, but took apart a pull request (a batch of changes for the kernel) for the EXT4 filesystem: 41,197 new lines, mostly AI-generated fixes and KUnit tests. His argument: a bug that even AI missed for years hides in a rarely used spot, and a fix there can itself break things. That's why large AI patches should be held in a separate branch until the merge window during release preparation.
AI-processed from Habr AI; edited by Hamidun News
Imagine that a few weeks before a new version of a program ships, you receive a batch of changes running to 41 thousand lines and are told: "These are just fixes." That is exactly what happened in the Linux kernel. A pull request, meaning a package of changes proposed for inclusion in the main codebase, was sent to the EXT4 filesystem (the filesystem that stores files on the disks of most Linux servers and computers).
It contained 41,197 new lines, a significant part of them written with AI. It arrived at the 7.4-rc5 release candidate stage, when a version is no longer developed but only stabilized.
Linus Torvalds accepted the pull request, but publicly swore about it. For anyone letting AI agents into a working repository, this is a ready-made teaching example.
What exactly happened
The pull request was presented as a set of "fixes." In practice, a large share consisted of new KUnit tests (the testing framework built into the kernel). They are meant to make it easier to verify patches generated by AI. The rest was a large number of AI-generated fixes to EXT4 itself.
The changes were merged into the mainline branch, but in the kernel mailing list Torvalds wrote that this was inappropriate for the current stage. In his view, the tests should have been kept in a separate branch, and the huge update should have been saved for the next merge window, the period when the kernel accepts new functionality. Such an approach, he added, caused serious code conflicts. He first wanted to revert the merge, but in the end sorted it out. If something like this happens again, he will simply ignore the request.
Why he got so angry
Torvalds' argument concerns release cycle discipline, not AI itself. He called the idea that "any fix can go into a release candidate" complete nonsense. Release candidates and several weeks of stabilization exist because any change, even a well-intentioned one, can introduce new bugs.
Next comes logic that is easy to transfer to any project. Suppose a bug lived in an old module for years, unnoticed by both humans and AI. That means it sits in something rare and hidden, such as handling an unusual disk state. A fix touches exactly this poorly understood area, so the fix itself may contain errors.
Torvalds also rejected the argument that "almost everything added is tests, which won't end up in the build." Tens of thousands of lines in the middle of release preparation remain tens of thousands of lines that someone has to read and agree on. He acknowledged that when working in a separate branch, authors would have to resolve conflicts themselves while running the tests. But that is better than slipping "random junk" into a release. He also asked that AI assistants be told: all new development and tests live in a separate branch, which is merged during the merge window.
What practitioners should take from this
First, this is not a campaign against AI. Torvalds has previously noted that AI-assisted fixes are appearing in the kernel more often, including in 7.4-rc2. He has repeatedly called AI a wonderful tool, as long as it is treated as a tool. His complaint is about process: AI speeds up writing code, but it does not cancel deadlines, review, and stabilization.
Second, a lesson for teams. If an agent produces a large batch of fixes and tests, do not push it into the release branch at the last moment. Send small, targeted fixes into the current release, and send large refactorings and new test suites into a separate branch for the next merge window. The size of a diff is itself a risk signal, regardless of whether a human or a model wrote it.
Third, responsibility remains with the author of the pull request. The phrase "AI generated this" does not work as an argument in a dispute with a maintainer: the person who submitted the changes is accountable for them.
The story has a limit. Torvalds' position and the composition of the pull request are known, but it is not known how many of the accepted fixes will turn out to be wrong. The next release candidates in the coming weeks will show that.
- Nov 25, 2026JetBrains Releases Mellum2.1 Instruct: Half the Tokens on Agentic Tasks
- Nov 25, 2026Agents Started Swearing: 14 of 102 Models Use Profanity in Drafts, and It Predicts Failure
- Nov 25, 2026Anthropic Lets MCP Servers Deliver Skills to Claude Alongside Tools
- Nov 25, 2026GPT-6 Astra Solved 49 of 50 Theoretical Physics Problems, Each Costing Under $3
Key Questions Answered
What exactly happened?
The pull request was presented as a set of "fixes." In practice, a large share consisted of new KUnit tests (the testing framework built into the kernel). They are meant to make it easier to verify patches generated by AI. The rest was a large number of AI-generated fixes to EXT4 itself. The changes were merged into the mainline branch, but in the kernel mailing list Torvalds wrote that this was inappropriate for the current stage.
Why he got so angry?
Torvalds' argument concerns release cycle discipline, not AI itself. He called the idea that "any fix can go into a release candidate" complete nonsense. Release candidates and several weeks of stabilization exist because any change, even a well-intentioned one, can introduce new bugs. Next comes logic that is easy to transfer to any project. Suppose a bug lived in an old module for years, unnoticed by both humans and AI. That means it sits in something rare and hidden, such as handling an unusual disk state.
What practitioners should take from this?
First, this is not a campaign against AI. Torvalds has previously noted that AI-assisted fixes are appearing in the kernel more often, including in 7.4-rc2. He has repeatedly called AI a wonderful tool, as long as it is treated as a tool. His complaint is about process: AI speeds up writing code, but it does not cancel deadlines, review, and stabilization. Second, a lesson for teams. If an agent produces a large batch of fixes and tests, do not push it into the release branch at the last moment.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Waitlist: free vibecoding intensive + AI digest
Leave your email to reserve a spot in the free 2-day intensive and get the AI stories that matter.