Torvalds:AI 修复推动 Linux 内核大部分进展

大多数开源项目资源匮乏,而 AI 提供的 bug 报告和“修复”大量涌入,已成为各自维护者的心头之患。不过,Linux 内核人手充足,其代码的准入门槛通常也高于其他地方。Linus Torvalds 认为,AI bug 报告的洪流可能正在平息,因为内核的 Berkeley Packet Filter(BPF)部分收到的 AI 修复多于报告。
Torvalds 将这些改动分为三个领域:图形、网络和声音驱动;网络与 BPF;以及杂项改动。他接着表示,“其中很大一部分是由各种 AI 修复推动的”,这显然是在强调他的立场:AI 编写的贡献应当被接纳而非排斥——只要它们接受同样的质量控制。
这位 Linux 大师还转达了 BPF 维护者 Alexei Starovoitov 的一条说明,后者称这一子领域实际上 AI 提供的修复比例高于报告。这可能预示着一次潮水般的转变——至少就 Linux 内核而言——对世界各地的其他开源维护者来说,这将是非常受欢迎的消息,他们既疲于应付垃圾报告,同时又不得不处理因 AI 驱动的 bug 发现而激增的正当 bug。
用 Torvalds 自己的话说:“我认为大多数其他领域还没有达到那一步,但这至少是一个迹象,表明我们可能开始看到潮水正在转向。”
任何人都能提交毫无意义的 bug 报告,但很难否认,强大的 AI 机器人的存在,已促使几乎所有地方重新关注网络安全。Firefox 在 4 月的一次版本发布中修复了 423 个安全漏洞,Chrome 在 6 月发现并修复了 1,072 个漏洞——这使该项目 2026 年的修复数量超过了此前八年的总和——而我个人「最爱」的 NodeJS,则遗憾地修复了 50 个漏洞,而不是宣布项目关停。
许多开源项目都抱怨过大量低质量的 AI 生成 bug 报告,有些甚至彻底关闭了漏洞赏金计划,或对问题报告增设额外验证。不过我们敢说,Linux 内核的漏洞分诊团队比一般项目大得多,这意味着它有更多资源来筛除这些垃圾报告。
这一初步结论出现在昨天发往内核邮件列表的一封邮件中,Torvalds 在其中简要描述了内核 7.4-rc2 更新的整体形态。他说,尽管从单纯的文件数量来看这次更新规模很大,但实际上主要由一两行的修复组成,实施起来「非常直接」。
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Linus Torvalds says that AI fixes drove most of the progress in latest Linux kernel)
Most open-source projects have meager resources, and the inrush of AI-provided bug reports and "fixes" has been a bane on their respective maintainers. However, the Linux kernel is well-manned, and code for it generally has a higher barrier to entry than in other places. Linus Torvalds thinks that the flood of AI bug reports may be settling, as the kernel's Berkeley Packet Filter (BPF) portion saw more AI fixes than reports.
Torvalds splits off the changes among three areas: graphics, networking, and sound drivers; networking and the BPF; and miscellaneous changes. He proceeds to state that "much of this was driven by various AI fixes," an apparent underscoring of his stance that AI-written contributions should be embraced rather than shunned — so long as they're subject to the same quality control.
The Linux maestro also relayed a note from Alexei Starovoitov, the BPF maintainer, who claims that this subsection actually saw a higher rate of AI-provided fixes versus reports. This might signal a tidal shift, at least where the Linux kernel is concerned, and would be exceedingly welcome news for other open-source maintainers everywhere tired of dealing with junk reports at the same time they have to handle a higher influx of legitimate bugs, thanks to AI-driven bug discovery.
In Torvalds' own words, "I think most other areas haven't reached that point yet, but it's at least a sign that we may be starting to see the tide starting to turn."
Anyone can make a pointless bug report, but it's hard to deny that the existence of powerful AI bots has prompted a renewed focus on cybersecurity most everywhere. Firefox fixed 423 security bugs in an April release, Chrome found and fixed 1,072 bugs in June — making for more fixes in 2026 than the project's previous eight years — and my personal "favorite," NodeJS, sadly fixed 50 vulnerabilities instead of announcing its closure.
Many open-source projects have complained about high-volume, low-quality AI-driven bug reports, with some even shutting down their bug bounty programs altogether, or placing additional verifications for issue reports. We'd venture that the Linux kernel has a much larger bug-triaging team than your average project, though, meaning it has more resources to sift through the junk.
This tentative conclusion popped up in a message sent yesterday to the kernel mailing list, wherein Torvalds briefly describes the overall shape of the kernel's 7.4-rc2 update. He says that despite the update looking large from a pure file-count perspective, it's actually mostly composed of one- and two-line fixes and is "very straightforward" to implement.
正文保留英文原文,标题与摘要由机器翻译。
原文发布于 Tom's Hardware(Linus Torvalds says that AI fixes drove most of the progress in latest Linux kernel),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。