# Torvalds blows up over the ext4 pull for Linux 7.4-rc5: 41,000 lines, AI-generated fixes and a "tell your AI companion to get its act together"

- **Published on:** 2026-11-26
- **Category:** News
- **Original page:** https://free-linux.com/articles/torvalds-ext4-ai-tests-rc5-separate-branch

Ted Ts'o sent Linus Torvalds 94 ext4 commits in the middle of the Linux 7.4 stabilization phase, with thousands of lines of KUnit tests and many AI-generated fixes. Torvalds took it, but warned he will ignore it next time. We counted what was in that pull.

---

Linus Torvalds has lost his temper in public again, and this time artificial intelligence is in the middle of it. On 24 November **Ted Ts'o**, the ext4 maintainer and one of the most senior kernel developers, sent him the file system's pull for **Linux 7.4-rc5**. It was huge for this point in the cycle: **94 commits and more than 41,000 new lines**, mostly KUnit tests, plus a long list of fixes that, by Ts'o's own account, were mostly AI-generated.

Torvalds merged it, but replied with the kind of email we had not seen from him in a while. Capital letters included.

## What Ted Ts'o sent

The pull was titled "updates for 7.4-rc5", and Ts'o's own message explained where the volume came from: most of the new lines are **KUnit tests**, which he said make it "safer to validate AI generated patches". Then came three small performance improvements and what he called "a huge number of bug fixes, most of which were AI generated".

The fixes are not trivial. There are fast commit fixes to avoid losing fsync'ed data after a journal flush, fixes for `EXT4_IOC_MIGRATE` losing data on long ranges, for stale data returned after a failed zeroout, for out-of-bounds accesses on corrupted file systems, several use-after-frees and a buffer/folio lock inversion deadlock. They are exactly the kind of rare, hard-to-reproduce bugs that AI tools are surfacing all over the kernel.

## Torvalds' reply

Torvalds answered at 20:36 UTC, with the pull already merged. First, he did not think it was appropriate at this stage: the tests should have stayed in a separate branch and this "*huge*" update should have waited for the next merge window. He called the idea that anything that is a fix belongs in an -rc "bogus" and warned that next time he would simply ignore it.

Then, in capital letters, a line that sums up his position: stop thinking that you, "or AI", never add bugs when you fix something.

The underlying argument is the most interesting part of the email. If AI finds subtle bugs that went unnoticed for years, its fixes by definition touch subtle, rarely exercised code. And that makes **the fixes themselves possibly buggy**. That is why there are release candidates and several weeks of calming things down, he reminds Ts'o. He also says he was about to unpull it and chose to give a warning instead.

The paragraph that gives this story its headline is the last one: Ts'o should tell his AI companion to get its act together and do any new development and test cases "ON A SEPARATE DAMN BRANCH", so it can be merged during the merge window. Torvalds admits that means Ts'o has to handle the resulting conflicts while running the tests, and he prefers that to adding "tens of thousands" of lines in the middle of a release.

## The apology and the end of the thread

Ts'o replied a few hours later with a "yeah, sorry". He explained that the tests were on a separate branch and that he had deliberately put them at the end of the pull so that, if Torvalds objected, they could easily be dropped and only the earlier commits sent. He offered a revised pull, keeping the tests for the merge window.

Torvalds closed the thread at 03:07 UTC on the 25th: he still objects, but it is merged and not worth undoing. The test infrastructure caused conflicts that he resolved himself, and he asked Ts'o to check the merge, because the resolutions looked correct but he had not run any of those tests. The merge is commit [4dce97c6c265](https://github.com/torvalds/linux/commit/4dce97c6c265) in Torvalds' tree.

## What was in the pull, by our count

<figure>
  <img src="/articles/torvalds-ext4-ia-rc5/torvalds-ext4-pull-recuento.webp" alt="Terminal in a Debian 13 container after fetching only the ext4 pull commits since v7.4-rc2. Results: 94 non-merge commits; 26 titles mentioning KUnit; git diff --shortstat shows 68 files changed, 41196 insertions and 620 deletions; fs/ext4/*-test.c files account for 22 files and 38202 insertions; the rest, 46 files and 2994 insertions; 53 Fixes lines, 58 Cc stable and 7 Assisted-by" loading="lazy" decoding="async">
  <figcaption>Of the 41,196 new lines, 38,202 are in test files · Own screenshot</figcaption>
</figure>


We fetched only the pull's commits, starting from the `v7.4-rc2` tag that Ts'o's branch is based on, and counted them. The numbers match the one Torvalds quotes ("41197 insertions"):

| What | Count |
|---|---|
| Commits (no merges) | 94 |
| Lines added in total | 41,196 |
| In `fs/ext4/*-test.c` test files | 38,202 (22 files) |
| In the rest of the code | 2,994 (46 files) |
| `Fixes:` lines | 53 |
| `Cc: stable@` lines | 58 |
| Commits with `Assisted-by:` | 7 |

**93%** of what was added is tests. The ext4 code itself changes by about 3,000 lines, still a lot for an rc5 but nowhere near 41,000. That is Ts'o's point: the tests are not built in a normal kernel (KUnit is optional) and they exist to check the fixes. And it is exactly what Torvalds rejects: code that is hardly ever built can still break things, and it arrives with conflicts that have to be resolved by hand.

Another striking detail: Ts'o says most of the fixes were made with AI, yet **only seven commits carry an `Assisted-by:` tag**. That is not an oversight. As we reported when covering [the `AGENTS.md` Btrfs wants](/articles/btrfs-agents-md-ai-patch-rules), Linux 7.4-rc1 removed that tag from the documentation because barely one in ten AI-assisted commits used it. The current guide, `generated-content.rst`, asks for transparency but no longer prescribes a tag.

## Why this is more than a rant

The rule Torvalds invokes is written down in `Documentation/process/2.Process.rst`: after the two-week merge window, -rc1 marks the end of new features, and for the following six to ten weeks only patches that fix problems should go in. What has changed is how much AI can fit into "fixing problems". If a tool finds fifty bugs at once, they are all fixes, and they all arrive together.

We are seeing it across the kernel. Microsoft [needed five months of human work](/articles/microsoft-forge-ai-59-linux-kernel-bugs) to turn two weeks of AI scanning into 59 useful reports, [Lorenzo Stoakes stopped reviewing memory management patches](/articles/ai-maintainers-kernel-stoakes-git-vote) because of the volume, and the [Rust versus C debate in Linux 7.4](/articles/linux-7-4-rust-c-ai-fixes) showed the same bottleneck: finding bugs is now cheap and reviewing them is still expensive. Torvalds is adding another brake, the calendar. AI fixes can wait for the merge window like everything else.

It is not the first time this year he has raised his voice over how code arrives; in June he [forced sched_ext to be reorganized](/articles/linux-sched-ext-codigo-reestructurado-queja-torvalds). But this time the target is one of the kernel's most senior maintainers, and the message is also aimed at everyone using AI to hunt for bugs.

## Does it affect me if I use ext4?

Barely, and probably for the better. The 58 `Cc: stable@` lines mean many of these fixes will reach the stable branches, including 7.3, which [looks set to be the 2026 LTS](/articles/linux-7-3-next-lts-kernel). If your distribution follows those branches, you will get them with regular kernel updates. The KUnit tests are not built in distribution kernels, so they add nothing to your system.

What remains is a warning that applies to anyone maintaining code: a fix is new code too, and if nobody else has tested it for a few weeks, it may fix one bug and introduce another.

## How we tested this

On 25 November, in a `debian:13` (arm64) container with the distribution's git. We fetched from Torvalds' tree only the commits between `v7.4-rc2` and the tip of the ext4 branch (`bae28a1b11f4`), without cloning the whole kernel, and measured the pull with `git diff --shortstat` from the branch's first commit, separating test files from the rest:

```sh
docker run --rm -it debian:13 bash
apt update && apt install -y git ca-certificates
git init linux && cd linux
git fetch --shallow-exclude=v7.4-rc2 https://github.com/torvalds/linux.git \
    bae28a1b11f422d0214654800d9425e042295c71
git tag pull FETCH_HEAD
B=$(git rev-list --max-parents=0 pull)
git rev-list --count --no-merges pull
git diff --shortstat $B pull -- 'fs/ext4/*-test.c'
git diff --shortstat $B pull -- . ':!fs/ext4/*-test.c'
git log pull | grep -c "^    Assisted-by:"
```

That first commit, a small `readdir` fix for 32-bit kernels, is left out of the `diff`, which is why we get 41,196 lines rather than 41,197. We read the emails on lore.kernel.org and the merge message on GitHub.

## Sources

- [[GIT PULL] updates for 7.4-rc5](https://lore.kernel.org/linux-ext4/awW86EI5fYafQx-o@mit.edu/), Ted Ts'o, linux-ext4 (24 Nov 2026).
- [Linus Torvalds' reply](https://lore.kernel.org/linux-ext4/CAHk-=whyUfwzMDMTpih8Xs1MxmhwTCDAc_YwUSZG79vXFMLU=Q@mail.gmail.com/) (24 Nov 2026, 20:36 UTC).
- [Ted Ts'o's apology](https://lore.kernel.org/linux-ext4/awYonzw5rsvf0cnZ@mit.edu/) and [Torvalds' closing message](https://lore.kernel.org/linux-ext4/CAHk-=whFaGFFcyyWXvm9NEUchjhRHSa7LbB7ki3SzWKcRx3xJQ@mail.gmail.com/) (25 Nov 2026).
- [Merge tag 'ext4_for_linus-7.4-rc5'](https://github.com/torvalds/linux/commit/4dce97c6c265), Linus Torvalds' tree.
- [Documentation/process/2.Process.rst](https://github.com/torvalds/linux/blob/master/Documentation/process/2.Process.rst) and [generated-content.rst](https://github.com/torvalds/linux/blob/master/Documentation/process/generated-content.rst), kernel documentation.

Accessed 25 Nov 2026.
