Torvalds takes ext4 rc5 pull, blasts late AI test dump
Theodore Ts'o sent mostly AI-written ext4 fixes and a large KUnit suite for Linux 7.4-rc5; Linus Torvalds merged it and said the next one will be ignored.
Theodore Ts'o asked Linus Torvalds to pull a large set of ext4 updates into Linux 7.4-rc5. Torvalds took the changes, then told the filesystem's longtime maintainer that this was the wrong kind of submission for a late release candidate.
Writing on the kernel mailing list, Ts'o said most of the new lines were KUnit regression tests, added so that patches produced with AI could be checked more safely. The pull also included three performance changes, among them spreading new file inodes so parallel creates contend less on inode-table locks, and what he described as a huge number of bug fixes, most of them AI generated. Those fixes address concrete failures: fast-commit paths that could drop data a program had already fsynced, migrate operations that could lose data or free extent blocks still in use, zeroing that could hand back stale data, and out-of-bounds accesses when a corrupted filesystem is mounted.
Torvalds's objection was about when the code landed, not about whether the bugs were worth fixing. Release candidates exist to calm the tree, he wrote, and treating every fix as automatic late-cycle material is wrong. Tests and other new development should stay on a separate branch and come in at the next merge window, even if that leaves the maintainer, rather than Torvalds, to resolve conflicts while running the tests. He said he had considered dropping the pull after bad conflicts and kept it only as a warning.
"This whole notion of "anything that is a fix goes in -rc" is bogus," Torvalds wrote. Subtle bugs that have gone unnoticed are, he argued, exactly the ones whose repairs can themselves be wrong, and a large test suite that normal kernels will not even build is not a free pass. "STOP THINKING THAT YOU - OR AI - NEVER ADD BUGS WHEN YOU FIX SOMETHING." Next time, he said, he will ignore a pull like this.