A big EXT4 pull request today intended for the Linux 7.4-rc5 kernel has set off Linus Torvalds. Over 41k lines of new code in this EXT4 pull request going in as “fixes”…. Much of that being new KUnit test coverage to make it safer to validate AI-generated patches. And then a lot of AI generated patches themselves for the EXT4 file-system.



Ah yes, I did miss your point, my bad.
A direct reply: it’s not “unvetted shift”, Linus vetted it and merged it. He’s pissed precisely because he had to review and approve this much stuff into an RC. While most of this code won’t be compiled into the kernel, since it’s tests, it’s still a large piece of work.
I get that this is the “fuck AI” community, but this is exactly the reason that justifies kernel maintainers’ use of AI, and I’ve been keeping tabs on their discussions and conversation on how to make use of AI in a sensible manner.
The most important point is that maintainers burnout is a huge problem. Things that reduce their workload and their saturation must be explored.
Another important point is that many AI-driven submissions are actual, real bugs. It’s just that most of them are in remote, old areas of the kernel that are barely relevant (like old device drivers that nobody uses), which is part of why many haven’t been caught yet. But either facts (caught by AI, and being in a remote/little used driver) are not a reason to turn down a patch. These do increase workload, however, so there’s got to be some tradeoff between adopting a technology and the risks it brings.
Yeees… I’m sure he carefully reviewed all 41,197 lines of it.
Or, more likely, he got his clanker to do it for him.
I get it that you want to be angry at AI, but let’s be specific about our fears instead of painting broad, misleading scenarios.
Regarding the commit itself that Linus pulled, that’s roughly 38k lines of tests against about 3.4k lines in actual kernel code files (8%). I couldn’t be bothered to check how many of lines of the actual kernel code were changed, and aren’t just comments, blank lines, #includes, header declarations, stuff that just got moved, and I suspect mostly, changes that set up the tests themselves (stuff like EXPORT_SYMBOL_IF_KUNIT(…)). In practice, actual code that gets compiled is much less.
Then regarding Linus himself: he doesn’t usually do low level code review.
The individual changes that make up a pull like this have all gone through “the kernel model”: first they go through a miling list review, patches would have been posted to linux-ext4 and other ext4 developers review them and add ReviewedBy or AckedBy: tags. How thorough this is varies from patch to patch, but there’s a process here.
It then goes to the maintainer, who applies the patches, and he’s accountable for them. If other subsystems are involved, it goes to them to approve the changes as well (not the case here, I think it all falls under ext4 scope). Then the maintainer runs tests across many configurations with his own tooling.
Then come linux-next and the bots. The branch is merged into linux-next, and the 0-day kernel test robot, KernelCI and syzbot build and test it across many architectures and configs. This catches build breaks, warnings and some crashes.
Eventually it gets to Linus, but by then, everything went through a bunch of validation. If you want to see how much scrutiny each individual bit got, something like this should give an idea:
git log --format='%h %s%n%(trailers:key=Reviewed-by,key=Acked-by,key=Tested-by,valueonly,separator=; )' 7475ea8b..bae28a1b