Linux 7.4-rc5 Ships With 42 Million Lines of Code, and AI Wrote Half of It
Linux 7.4-rc5 shipped today, clocking in at nearly 42 million lines of code and shattering every previous merge window record. Linus Torvalds closed the initial 7.4 development cycle with roughly 19,671 commits, and the weekly release candidates have kept pace. If you've been tracking the kernel tree, the pattern is unmistakable. Artificial intelligence is now doing a massive chunk of the bug hunting.
Torvalds himself has been dabbling with AI-assisted development. He recently used Claude Code to rework parts of the page cache, and the company claims it tripled small-read throughput. The developer-in-chief isn't anti-AI so much as anti-lax-review, and he made that abundantly clear this week. He swallowed a 41,197-line EXT4 pull request and immediately warned the submitter to get their AI tools in line.
The 41,000-Line EXT4 Pull Request
The PR itself was a wall of text and test suites. Roughly half of it was fresh KUnit coverage, with the rest being AI-suggested fixes for the filesystem. Torvalds didn't reject it. He merged it with what he called "serious reservations and some bad conflicts," then told the mailing list that the idea "anything that is a fix goes in -rc" is bogus. Keep in mind that the actual code changes inside that PR aren't entirely useless. Samsung's Daejun Park shipped patches that spread inodes across flex group block groups, which noticeably speeds up parallel file creation.
Not exactly a small change. There's improved unlink performance, faster fast commit replay for sparse files, and a mountain of new KUnit tests that will probably make the next round of AI submissions easier to validate. Torvalds' core argument here is straightforward: fixes add bugs too. If a problem sat unnoticed until an AI tool dug it up, then the fix is touching something subtle. That kind of change deserves time in a merge window rather than late in the release-candidate phase.
KVM, BPF, and the Hardware Sweep
The kernel architecture itself is getting a serious tuneup. KVM/arm64 pulled dozens of patches covering nested virtualization, GICv3/v4 improvements, MTE tag sanitization, and pKVM hardening. Dan Carpenter's nine-patch series finally untangled TLBI RIPAS2E1 handling for nested vCPUs, while Fuad Tabba's thirty patches expanded GICv4 ITS testing and fixed a bunch of memory leaks along the way. Alexei Starovoitov delivered 55 BPF security patches that mostly revolve around CAP_PERFMON enforcement, arena memory safety, and tighter bounds checking.
Hardware enablement looks typical for a November cycle. The HID subsystem gained support for a Logitech G915 receiver, an ASUS ProArt MD301 mouse, a Keychron Link receiver, and a couple of Nintendo Switch 2 USB quirks. AMDGPU got a removable device detection helper for USB4 and Thunderbolt, MSM added AQE firmware for the Adreno X2-90 GPU, and Intel's i915 driver finally fixed its DSC QP table for certain ASUS laptops. Greg Kroah-Hartman also yanked the vme_user staging driver entirely. It had no real-world users left, and the LLMs were apparently falling over themselves trying to invent security vulnerabilities for it.
The administrative side is shifting too. The kernel community is rewriting its security bug reporting guidelines, and the new docs/security-bugs.rst lays out a seven-day response SLA. It clarifies when to Cc the security team, bans public reproducers for security-impacting bugs, and explicitly addresses how to handle AI-discovered issues without letting them leak into public repos. Douglas Anderson's build system patch disables -fno-sample-profile-use-profi for AutoFDO kernel builds, which keeps Clang from hitting pathological compile times in certain configurations.
The whole 7.4 cycle reads like a stress test for open-source review processes. The AI tools are genuinely catching subtle error paths that humans missed, but the volume is straining maintainers who are already juggling hardware enablement and regression triage. It's a heavy haul for a mid-cycle release, though the fresh test coverage should pay dividends next cycle. Some maintainers are holding back less pressing fixes for the 7.5 merge window to reduce late-cycle churn, which tells you exactly how much strain the current workflow is under.
rc6 should land around December 6, rc7 a week later, and the stable 7.4 release is tracking for somewhere between December 20 and 27. Torvalds kept his standard invitation out there: keep testing. Head here to pull the latest before the stable release lands if you want to run it today. The real question is whether the community can codify new review norms fast enough to keep the next merge window from becoming an even bigger slog.
Linux kernel 7.4-rc5 released
Linux kernel version 7.4-rc5 is now available:
Full source: https://git.kernel.org/torvalds/t/linux-7.4-rc5.tar.gz
Patch: https://git.kernel.org/torvalds/p/v7.4-rc5/v7.3
You can view the summary of the changes at the following URL:
https://git.kernel.org/torvalds/ds/v7.4-rc5/v7.4-rc4
