Linus Torvalds Merges AI-Assisted 41,197-Line EXT4 Update
36Kr reports that EXT4 maintainer Theodore Ts'o submitted a Linux 7.4-rc5 update adding 41,197 lines, including AI-generated bug fixes and KUnit tests. Torvalds criticized the update's size, conflicts and timing during the release-candidate stage, but ultimately merged it. He required future development and tests to be placed on a separate branch and submitted during the next merge window. The report does not establish how many of the added lines were AI-generated or independently verify the fixes' correctness.
The episode highlights a release-governance issue: a large update combining fixes and tests was submitted during a release-candidate stage intended to prioritize stability. Torvalds said future development and tests should wait for the next merge window.
AI 写代码已经不是什么新鲜事,但如果有一天,开发者把 AI 生成的数万行代码打包提交给 Linux 内核,甚至美其名曰“修复 Bug”,你觉得 Linus Torvalds 会是什么反应?
答案很显然:他直接生气了。
近日,一份针对 Linux 7.4 内核 EXT4 文件系统的更新补丁被提交到了 Linus 面前:整份补丁一次性新增了 41197 行代码,其中既有大量 AI 生成的 Bug 修复代码,也有为了验证 AI 补丁而新增的测试用例。
听起来似乎没什么问题,甚至还有点积极。但 Linus 看完之后,直接在内核邮件列表中发了一通火。虽然 Linus 最终还是把这批代码合并进了内核,可同时他也撂下了一句狠话:“告诉你的 AI 助手,让它先把自己的事情做好!”
4.1 万行代码赶在发布前提交,Linus 直接不乐意了
11 月 24 日,Linux 内核开发者、EXT4 维护者 Theodore Ts'o 提交了一份针对 Linux 7.4-rc5 的更新请求——这份补丁的规模相当惊人:一共增加了 41197 行代码。