Linux Kernel & OS

Linus Torvalds criticizes massive AI-generated EXT4 pull request in Linux 7.4-rc5

Key Takeaway

A massive 41,000-line EXT4 update containing AI-generated fixes and new KUnit tests was merged into the Linux 7.4-rc5 cycle despite heavy criticism from Linus Torvalds regarding release stability.

Summary

A large EXT4 pull request intended for the Linux 7.4-rc5 kernel release has drawn sharp criticism from Linus Torvalds due to its size and timing. The update includes over 41,000 lines of code, much of which consists of AI-generated bug fixes and expanded KUnit test coverage designed to validate future AI-driven patches.

While the changes have been merged into the current release candidate cycle, Torvalds expressed significant displeasure with the practice of submitting massive 'fix' updates during the late stages of a kernel development cycle. He emphasized that such large-scale changes, especially those involving AI-generated logic, should be developed on separate branches and submitted during a standard merge window to avoid introducing instability during the release candidate phase.

Technical changes in the EXT4 pull request

  • KUnit Test Expansion: A significant portion of the 41,000+ lines of code involves new KUnit test coverage specifically aimed at increasing the safety and validation of AI-generated patches for the EXT4 driver.
  • Inode Distribution Improvements: New logic from Samsung's Daejun Park spreads file inodes in sibling directories across block groups within a flex group to reduce contention and accelerate parallel file creation.
  • Unlink and Commit Performance: The update includes performance optimizations for the unlink operation on filesystems lacking the orphan file feature, as well as faster commit replay speeds for sparse files.
  • Code Volume and Risk: The pull request contains approximately 41,197 insertions, which Torvalds noted could introduce new, subtle bugs if not properly isolated from the main release candidate branch.

Why it matters

This event highlights the growing tension between rapid AI-assisted development and the rigorous stability requirements of the Linux kernel release cycle. For system administrators and enterprise users, it underscores the importance of the release candidate phase in catching potential regressions introduced by automated code generation.

Original reference: www.phoronix.com →