Osegi
Software·2 min read

Linus Torvalds slams AI-written EXT4 pull request in Linux 7.4-rc5

Linus Torvalds accepted a 41,197-line EXT4 pull request full of AI-made fixes, then told its authors to tell their AI to get its act together.

A developer's screen showing Linux kernel source code and a mailing list thread about a large EXT4 pull request.
Image: Хабр

Linus Torvalds merged a huge EXT4 pull request into Linux 7.4-rc5, and he was not happy about it. His message to the kernel mailing list was blunt: tell your AI assistant to get its act together.

A pull request is a bundle of code changes that a maintainer asks Torvalds to pull into the main kernel tree. This one was labelled as a set of "fixes" for EXT4, the widely used Linux file system. In reality it added more than 41,000 lines of new code. A big part of it was new KUnit tests (the kernel's built-in unit testing framework), meant to make it easier to check patches produced with the help of AI. The pull request also held many EXT4 fixes that were themselves AI-generated.

Torvalds took it anyway, but said he had serious doubts and ran into messy code conflicts. He wrote that the tests should have lived in a separate branch, and the big update should have waited for the next merge window, the period when new features are allowed in. The idea that any fix can go into a release candidate (an -rc build) is, in his words, complete nonsense. Next time, he warned, he will simply ignore such a request.

Why Torvalds objects to AI fixes in release candidates

His argument is simple. If a bug stayed hidden for a long time, even from AI, then fixing it means touching something rare and obscure that nobody noticed before. So the fix itself can carry new bugs. That is exactly why release candidates and several weeks of stabilisation exist. He also said that code which mostly won't compile, or which supposedly fixes something else, is no excuse for dumping tens of thousands of lines in mid-release.

He added that he had wanted to just reject the merge. His demand: all new development and tests go in a separate branch, to be merged during the merge window, even if that means resolving conflicts by hand.

Torvalds is not against AI in the kernel

This is not a ban. Torvalds recently said AI-assisted bug fixing is becoming more common in kernel development, and noted that the freshly released 7.4-rc2 already had a growing number of such fixes. He has repeatedly called AI a great tool, as long as it is treated as a tool.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:linuxlinus torvaldsext4ai codinglinux kernelkunit

More from this day

See all →

More in: Software

See all →