---
id: 18203
lang: en
title: "Torvalds Merges 41,197 Lines of AI-Assisted EXT4 Fixes, Warns He Will Ignore Such Requests"
published_at: "2026-11-25 14:35:13"
source_name: "Habr AI"
source_url: "https://habr.com/ru/articles/1112210/?utm_campaign=1112210&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/18203"
categories: ["llm", "research"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Torvalds Merges 41,197 Lines of AI-Assisted EXT4 Fixes, Warns He Will Ignore Such Requests

> **Краткая суть (BLUF):** 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.  • 41,197 lines arrived late in the Linux 7.4 cycle (rc5) • Torvalds merged the PR but acknowledged code conflicts and his own doubts • New tests and development moved to a separate branch for the merge window

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.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/articles/1112210/?utm_campaign=1112210&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18203
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
