92% of the "AI slop" EXT4 pull was tests. The real Linux story this year: finding deep bugs got cheap, and reviewing the fixes didn't.
This week my feed decided that AI slop had reached the Linux kernel.
The evidence: a 41,197-line EXT4 pull request, packed with AI-generated bug fixes, merged into Linux 7.4-rc5. And Linus Torvalds telling the maintainer to "tell your AI companion to get its act together".
It makes a great screenshot. It is also not what happened.
I read the actual thread on lore.kernel.org. Five messages. Then I read the diffstat. The story in there is more interesting than "AI bad", and it matters for anyone shipping AI-assisted code, not just kernel people.
What was actually in the pull
On November 24, Ted Ts'o sent the EXT4 updates for 7.4-rc5. His own summary was honest about it: "A huge number of bug fixes, most of which were AI generated", plus three small performance changes, plus this line:
The bulk of the new lines was caused by adding KUnit tests, which makes it safer to validate AI generated patches.
So I added up the diffstat.
- 68 files changed, 41,197 insertions, 621 deletions.
- 23 of those files are KUnit tests. They hold 38,300 of the changed lines. That is 92%.
- 45 files are real code. 3,518 changed lines.
- 66 commits from 27 authors. 26 of them are Ted's, and almost all of those add tests.
The fixes themselves are not trivial. Fast commit replay losing fsync'ed data. Stale data after a failed zeroout. Use-after-frees on a failed mount. A lock inversion deadlock. Data loss in EXT4_IOC_MIGRATE for long contiguous ranges. Real bugs, in the filesystem that holds a lot of the world's data.
Not slop. A large batch of real fixes, and a very large test suite to check them.
What Linus actually wrote
Here is the part that went viral, in full context:
STOP THINKING THAT YOU - OR AI - NEVER ADD BUGS WHEN YOU FIX SOMETHING.
I was going to just unpull it, but I dealt with this and am giving you a fair warning instead. Get your shit together and stop this kind of idiocy. And tell your AI companion to get its act together, and do any new development and test-cases ON A SEPARATE DAMN BRANCH, so that it can be merged during the MERGE WINDOW.
Read it again. "You - or AI". He is not angry that AI wrote fixes. He is angry that anyone, human or model, believes a fix can't break something.
And he merged it. The pr-tracker-bot confirmed the merge the same night. In his last message he said the test conflicts looked "ObviouslyCorrect(tm)" to him, "but I didn't run any of them, so they may be complete garbage."
The line I think everyone skipped is this one:
If the bugs were subtle things that have been around for a while without being detected by AI, the fixes by definition are fixing something subtle and rare that nobody has noticed until now. And that makes the fixes possibly buggy.
That is the whole argument. Not "AI code is bad". A fix for a subtle bug is itself a subtle change. Ship it at -rc5, with weeks of "calming things down" left, and you have taken a rare bug and swapped it for an untested one.
This was one email in a year-long story
If you only saw the rant, you missed the arc. Linus has been writing about AI in his release mails all year.
May 17, Linux 7.1-rc4. "The continued flood of AI reports has basically made the security list almost entirely unmanageable". The same bugs found by different people with the same tools. His answer was a policy change: "AI detected bugs are pretty much by definition not secret". If you found a bug with AI, "the chances are somebody else found it too". Send a patch, not a drive-by report.
November 8, Linux 7.4-rc2. "Much of this was driven by various AI fixes. I think I'll stop repeating that, and we can just take it for granted." And then: BPF maintainer Alexei Starovoitov said that on the BPF side, fixes were now coming in faster than new reports. Linus: "that sounds lovely if true", and maybe "the tide starting to turn".
November 24, Linux 7.4-rc5. The EXT4 pull. The fixes are arriving now. The question is no longer whether AI can find deep kernel bugs. It is when, and how, the fixes go in.
Finding bugs got cheap. Reviewing them didn't.
Three lessons I'm taking from it
I'm a full stack architect, not a kernel developer. But I run AI-assisted code into production every week, and this thread is the clearest write-up of the problem I have seen.
- Size is risk, whoever wrote it. A model can produce a correct fix in seconds. A human still has to read it, and reviewers don't scale with tokens. When we cut our bundle size by 62% at CambrianEdge, it landed as 50 PRs over two days, not one giant diff.
- A fix for a subtle bug is a subtle change. This is the Linus line I'll keep quoting. The deeper the bug the AI found, the less anyone understands the code around it, and the more carefully the fix needs to soak. Timing is part of correctness.
- Tests are the right answer at the wrong time. Ted was right that tests make AI fixes safer to accept. Linus was right that 38,300 lines of them don't belong in a late release candidate. When I ported my Mac app from Electron to Rust, what kept the port honest wasn't the compiler. It was a parity report: every feature of the old app, with a test, a snapshot or a recorded run next to it. Build that net. Then merge it in the window where it can't hurt anyone.
The real takeaway
"AI slop vs Linux" is the wrong frame.
The kernel is the best-documented case we have of what happens after AI gets good at finding bugs. First the reports flood in. Then the fixes flood in. Then the bottleneck moves to the people who have to triage, review and schedule all of it.
That is not an AI problem. That is an engineering discipline problem, and it was always there. AI just made it impossible to ignore.
Ted even said the tests were on a separate branch, put at the end of the pull so they could be dropped. That is the right instinct. It just needed to be the default, not the fallback.
So here is my question: when an AI tool hands your team a 40,000-line fix tomorrow, who reviews it, and which release does it go into?
Sources
- [GIT PULL] updates for 7.4-rc5: the full thread, with Ted's pull, the diffstat and both of Linus's replies
- Linux 7.4-rc2 announcement (BPF fixes outpacing reports)
- Linux 7.1-rc4 announcement (AI reports and the security list)
Originally published on Medium.



