AI assistance when contributing to the Linux kernel
TL;DR Highlight
Linux kernel allows AI help but only humans sign off, and AI use goes in an Assisted-by tag.
Who Should Read
A developer who submits AI-assisted patches to open source projects or must set an AI contribution policy for their team
Core Mechanics
- AI is allowed, humans stay accountable
- AI agents must never add a Signed-off-by tag.
- Only humans can certify the DCO (Developer Certificate of Origin, a legal assertion of the right to submit code).
- The submitter reviews the AI code, ensures license compliance, and takes full responsibility.
- Disclose AI help with an Assisted-by tag
- The format is Assisted-by: LLM [TOOL1] [TOOL2].
- List only specialized analysis tools such as coccinelle, sparse, smatch, clang-tidy.
- Skip basic tools like git, gcc, make, and editors.
- Code must be GPL-2.0-only compatible
- Code must be compatible with GPL-2.0-only.
- Use appropriate SPDX license identifiers.
- Reproduce the bug before fixing
- For non-trivial bugs, build a reproducer to confirm the bug is real.
- Unverified reports may be ignored, and you stop if the bug looks wrong.
- The doc says maintainers waste too much time on unverified reports and untested fixes.
- Write the fix in the same session, then build and verify
- Fixes written in the session that found the bug are generally better because the reasoning context remains.
- The fix must add no build warnings and must pass checkpatch.pl.
- Drop any fix that doesn't work and try another.
- The AI never sends anything itself
- Find maintainers and lists with scripts/get_maintainer.pl.
- State explicitly what could not be done (build, test, reproducer).
- Use threat-model.rst to classify the bug, and leave the result for the human reporter to review. The assistant must never send anything.
Community Reactions
- Praise for putting responsibility in the right place
- Many commenters called it a refreshingly normal rule: use AI, but you own your commits.
- Some said putting accountability on humans rather than agents is the right way forward for open source.
- Pushback: license compliance can't be guaranteed
- Commenters argued LLMs can't attribute sources and are trained on mixed licenses, so GPL compatibility can't be assured.
- Some noted models can regurgitate training code with high fidelity, leaving the submitter with the burden.
- One opinion said the policy doesn't shield Linux from infringement liability.
- The real bottleneck is review bandwidth
- One commenter said a human may sign off on AI code they don't fully understand, and subtle bugs get merged.
- One reported agents producing code that compiles cleanly but deadlocks under contention weeks later, with races and locking being where models are confidently wrong.
- Others worried reviewers will tire of the volume and start trusting LLMs without enough review.
- Opinions on the tag and auditing
- One commenter pointed out Assisted-by was previously used for human helpers, so it now has two meanings.
- They said AI-assistant: is the more typical trailer.
- Another wished for an audit of the prompts used.
How to Apply
- Add an Assisted-by line to your commit template
- Today, add Assisted-by: LLM sparse to AI-assisted commits, listing only the analysis tools you used.
- Leave out git, gcc, make and editors, and add Signed-off-by yourself.
- Add a reproduce step to your AI bug-fix flow
- Tell your agent to write a reproducer first, then fix, and stop if it cannot reproduce.
- Have it write the fix in the same session that found the bug.
- Gate merges on build warnings and lint
- Require zero warnings and a passing lint (checkpatch.pl for the kernel) for AI fixes.
- Add a PR template field for anything that was not built or tested.
- Block the AI from submitting directly
- Remove email, PR creation and push permissions from the agent so it only drafts.
- A human reads and signs off before anything is submitted.
Try It
# Paste into Claude Code or ChatGPT (prompt adapted from the kernel's coding-assistants.rst procedure)
Find and fix the bug in the code below. You MUST follow this order.
1. Read all relevant process documents and any document mentioned in the request. Do not rely on isolated parts found by keyword search.
2. For any non-trivial bug, create a reproducer to confirm it is real. If you cannot reproduce it, stop here and report why.
3. Write the fix in the same session.
4. Build and verify the fix using the reproducer or by re-running a complete analysis. Drop any fix that doesn't work and try another. There must be no build warnings.
5. Write a detailed commit message with the problem, the solution and a Fixes tag. Never add Signed-off-by. Add Assisted-by: LLM {{analysis tools used}}.
6. Explicitly state anything that could not be done (build, test, reproducer).
7. Do not send anything yourself. Leave the result for a human to review.
Target code: {{code or file path}}
Bug description: {{symptom}}Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques