Linus Torvalds blasts 41,000-line AI-assisted EXT4 pull request in Linux 7.4-rc5

By Spark

Linus Torvalds sparked a sharp debate on the Linux Kernel Mailing List (LKML) on Tuesday (Nov. 24) after receiving a massive EXT4 filesystem pull request late in the Linux 7.4-rc5 cycle. The submission added 41,197 lines of new code—largely made up of AI-generated bug fixes and regression tests—prompting a blunt rebuke to longtime maintainer Theodore Ts'o.

What was inside the 41,197-line EXT4 pull request

According to Ts'o's summary, reported by Phoronix and freenode, the pull included three performance improvements—such as Samsung engineer Daejun Park's patch spreading file inodes across block groups to speed up parallel file creation—alongside a large batch of bug fixes, most of them AI-generated.

Those fixes tackled real issues, including fast-commit replay data loss after fsync, stale data returned after failed zeroing, use-after-free bugs on corrupted mounts, and lock-inversion deadlocks. However, a diffstat breakdown by Mohak Bajaj on Medium showed that 38,300 of the changed lines (around 92%) lived in 23 KUnit test files added to validate AI-generated patches more safely.

"Stop thinking that you — or AI — never add bugs"

While Torvalds ultimately merged the pull request for Linux 7.4-rc5, he blasted the timing during a stabilization phase meant to calm the tree:

"STOP THINKING THAT YOU - OR AI - NEVER ADD BUGS WHEN YOU FIX SOMETHING. (...) 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."

Torvalds rejected the notion that any fix automatically belongs in a late -rc release and told Ts'o to "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." He warned he will ignore similar late pulls in the future.

Release discipline, not an AI ban

The incident does not mean Torvalds is banning AI from kernel work. In October, he used LLM tools himself to clean up and debug the assoc_array library, and in early November he noted that AI-assisted fixes are becoming a routine part of development. His objection targets review bottlenecks and release discipline: generating 41,000 lines is cheap with AI, but late release candidates cannot safely absorb massive, under-soaked changes.

Transparency note: This article was researched, written, and translated with the assistance of artificial intelligence under Spark's automated editorial curation for Geekiki.

Sources