LinuxカーネルがAI支援コードに関するガイドラインを採用

Linuxカーネルプロジェクトは、Linux 7.0のリリースに伴い、AIを利用したコードコントリビューションに関する方針を正式に文書化しました。このガイドラインでは、人間の説明責任、AIツール使用の開示、およびAIが関与したパッチに対する新しい「Assisted-by」タグの使用が求められます。Sasha Levin氏が2025年のメンテナーサミットで合意された内容を正式なものとしました。

2025年のメンテナーサミットにおいて、Sasha Levin氏はカーネル開発におけるAIツールに関する明確なルールを提唱しました。策定された方針では、GPL-2.0ライセンスへの準拠を確保するため、AIが生成したコードについては人間によるレビューアが全責任を負うべきであることが強調されています。純粋に機械が生成した提出物は受け入れられず、Developer Certificate of Origin(開発者証明)がすべての貢献に対して人間の責任を求めているため、AIエージェントが「Signed-off-by」タグを使用してパッチに署名することはできません。Levin氏はこれらの原則を強制ではなくドキュメント化することに尽力し、新しい「AIコーディングアシスタント」ガイドラインは、他のコントリビューションルールとともにカーネルのプロセスドキュメントに記載されました。この方針は以前の議論に基づくもので、Linus Torvalds氏は専用タグの必要性に疑問を呈し、チェンジログで十分ではないかと示唆していました。しかし、コミュニティは「Assisted-by: AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]」という形式の「Assisted-by」タグを採用しました。例として、複数のツールを使用したパッチには「Assisted-by: Claude:claude-3-opus coccinelle sparse」といった記述が挙げられます。安定版カーネルのメンテナーであるGreg Kroah-Hartman氏は、すでに自身の「clanker」ブランチでこのアプローチを適用しています。彼はksmbdおよびSMBコードに対してAI支援ファジングを使用し、問題を特定し、レビュアーが独自に検証するための指示を添えて修正を提出しました。比較として、Gentooは著作権、品質、倫理上の懸念から2024年にAI生成による貢献を禁止しており、NetBSDはLLMによるコードを「汚染されている」とラベル付けし、コア開発者の承認を必要としています。Linuxは、AIの出力を検証する責任を人間に委ねることで、より寛容な姿勢を維持しています。

関連記事

Tech leaders announcing Linux Foundation's AI-powered cybersecurity initiative for open source software with major partners.
AIによって生成された画像

Linux Foundation announces AI security initiative with tech partners

AIによるレポート AIによって生成された画像

The Linux Foundation has launched a new initiative using Anthropic's Claude Mythos preview for defensive cybersecurity in open source software. Partners include AWS, Apple, Broadcom, Cisco, CrowdStrike, Google, JPMorgan, Microsoft, NVIDIA, and Palo Alto Networks. The effort aims to secure critical software amid the rise of AI for open source maintainers.

Greg Kroah-Hartman, maintainer of the Linux kernel, stated that AI-driven code review tools have become genuinely useful. He told The Register that the technology reached an inflection point about a month ago, leading to actionable bug reports.

AIによるレポート

The open-source project LLVM has introduced a new policy allowing AI-generated code in contributions, provided humans review and understand the submissions. This 'human in the loop' approach ensures accountability while addressing community concerns about transparency. The policy, developed with input from contributors, balances innovation with reliability in software development.

The Linux kernel project has implemented a new protocol to ensure its survival if creator Linus Torvalds becomes unavailable. Titled the Linux Project Continuity Document, the plan outlines an emergency governance process activated in catastrophic scenarios. This measure addresses long-standing concerns about the project's reliance on a single key figure.

AIによるレポート

An AMD vice president has utilized AI to develop a Radeon Linux userland driver written in Python. A senior AI engineer involved in the project stated that he did not open a code editor once during the process. The tool used was Claude Code, which built a Radeon compute driver.

The upcoming Linux kernel version 7.1 will introduce restrictions on Intel Neural Processing Units (NPUs) to avoid exhaustion by individual programs. This change aims to manage resource usage more effectively. The update is reported by Phoronix, a site focused on Linux hardware and performance.

AIによるレポート

The Linux kernel community has endorsed a contingency plan to manage leadership transitions. This strategy aims to maintain stability in the event that founder Linus Torvalds steps down from his role.

 

 

 

このウェブサイトはCookieを使用します

サイトを改善するための分析にCookieを使用します。詳細については、プライバシーポリシーをお読みください。
拒否