AI News
17 Apr 2026
Read 10 min
How to follow Linux kernel AI contribution policy safely
Linux kernel AI contribution policy requires disclosure and human signoff so commits stay safe and legal.
What the Linux kernel AI contribution policy requires
Disclosure with Assisted-by
- Add an “Assisted-by:” line to your commit when an AI tool influenced the change in any way.
- Name the tool and, if you can, the version (for example: Assisted-by: ChatGPT, Assisted-by: GitHub Copilot 1.x).
- When unsure, disclose. Openness builds trust with maintainers.
Human sign-off and ownership
- Every patch still needs a human “Signed-off-by:” line.
- You, the signer, own code quality, security, and legal risk.
- If the code breaks things, you help fix it. If there is a legal issue, you are on the hook.
Understand what you submit
- Be able to explain what the code does, why it is correct, and how you tested it.
- Remove made-up comments, invented APIs, or copied text the tool might have inserted.
- Keep changes small and focused so review stays practical.
How to comply with the Linux kernel AI contribution policy in practice
Before you write code
- Check the MAINTAINERS file to see who will review your patch and any subsystem rules.
- Search the mailing list for past discussions. Avoid repeat or rejected ideas.
- Decide the smallest useful change you can make first.
While using an AI tool
- Use it for drafts, outlines, or test ideas, not as an auto-merge machine.
- Never paste proprietary or secret code into prompts.
- Keep a local note of prompts, tool versions, and edits you made. Do not ship this note unless asked.
Code and test
- Review every line yourself. Rewrite unclear parts in your own words.
- Build the kernel or the changed subtree. Fix all compile warnings.
- Run basic tests that touch your change. Note what you ran and the results.
Prepare a solid commit
- Write a clear commit message: problem, why, how, and impact.
- Add tags at the end, for example:
Assisted-by: ToolName vX.Y
Signed-off-by: Your Name <email> - Split unrelated changes into separate patches.
When to add “Assisted-by”
Always disclose for direct code help
- You asked a model to write or transform code you used, even if you edited it.
- You relied on AI to suggest fixes, tests, or refactors you kept.
Also disclose for indirect help
- You used AI to explain an API and that shaped your patch.
- You used AI to draft parts of the commit message or comments.
Disclosure likely not needed
- You only read official docs, kernel code, or human-written threads.
- You used common tools like grep, compilers, or linters with no AI features.
If you are on the fence, include the tag. The cost is low. The trust gain is high.
License and legal hygiene
Reduce copyright risk
- Do not copy large outputs from a model without heavy review and editing.
- Do not ask a model to “port code from project X” or to “reproduce file Y.”
- If the tool inserts text that looks copied, remove or rewrite it.
Respect kernel licensing
- The kernel is GPL-2.0. Your change must be compatible.
- Do not import code of unknown origin. Be able to vouch for authorship.
- Remember: your Signed-off-by asserts you have the right to submit the code.
Quality checks maintainers expect
- Build succeeds on relevant configs (for example, the driver’s target arch).
- No obvious undefined behavior or API misuse.
- Commit message references affected files and functions.
- Change is minimal, logically grouped, and easy to revert if needed.
- Style issues are fixed only when touching that code for a real reason.
Common pitfalls that trigger NAKs
- Huge, multi-purpose patches that bury the real change.
- Invented functions, constants, or comments from the model.
- “Vibe-coding” without tests or proof of need.
- Silence about tool use when it is obvious from the diff.
- Letting an agent open patches with no human review.
Example tag block (at the end of the commit message)
Assisted-by: GitHub Copilot 1.25
Signed-off-by: Alex Example <alex@example.com>
You can add more context in the message body if it helps reviewers, but keep the tags clean and standard.
Why this policy helps everyone
- It keeps review workloads sane by setting clear duties.
- It protects the project from sneaky license risks.
- It rewards honest contributors who do the work and explain it.
Other projects have chosen bans or strict gates. The kernel chose disclosure and human responsibility. That matches its long history of traceable authorship and careful review.
Strong tools make it easy to produce lots of code fast. Good patches still need human care. If you disclose help, own the result, and ship tested, focused changes, you will follow the Linux kernel AI contribution policy and keep maintainers on your side.(Source: https://hackaday.com/2026/04/14/new-linux-kernel-rules-put-the-onus-on-humans-for-ai-tool-usage)
For more news: Click Here
FAQ
Contents