Linux kernel
The kernel at the heart of every Linux system.
Mostly friendly. Welcome, with extra rules.
AI-assisted kernel contributions are accepted as long as the tool use is disclosed in cover letters and changelogs, a human reviews the output, signs off the DCO and can explain and defend everything submitted. AI agents may never sign off or send anything themselves, and maintainers may reject or closely scrutinize heavily generated work.
Policy by area
- Code contributionsPatches, pull requests and other changes written with AI tools.
- Mostly friendly
- AI use must be disclosed
- Contributor takes full responsibility
- A human must review the output
- Issues & bug reportsBug reports, security reports and issues found or written with AI tools.
- Friendly
- Contributor takes full responsibility
- A human must review the output
- AI-written textPull request descriptions, issue comments and summaries written by AI.
- Mostly friendly
- AI use must be disclosed
What is allowed and what is not
Code contributions
Autocomplete · Allowed
Identifier completion, boilerplate and trivial pattern completion are explicitly out of scope of the guidelines, so only a courtesy heads-up to reviewers is suggested.
- Disclose AI use: Consider telling the reviewer which tool was used (recommended, not required)
3 quotes
These guidelines do not apply to tools that make trivial tweaks to preexisting content. Nor do they pertain to tooling that helps with menial tasks.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Typing aids like identifier completion, common boilerplate or trivial pattern completion
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Even whenever your tool use is out of scope, you should still always consider if it would help reviewing your contribution if the reviewer knows about the tool that you used.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Small fixes · Allowed with conditions
Small AI-assisted changes are accepted, but the tool's involvement must be disclosed, the code reviewed, and the submitter must be able to explain and defend it.
- Disclose AI use: State the origin of tool-generated content in cover letters and changelogs
- Take full responsibility: Submitter must understand the whole submission and be able to defend it
- Review AI output first: Human submitter reviews all AI-generated code and adds their own Signed-off-by
7 quotes
Reviewing all AI-generated code
AI Coding Assistants — The Linux Kernel documentation Taking full responsibility for the contribution
AI Coding Assistants — The Linux Kernel documentation These guidelines apply when a meaningful amount of content in a kernel contribution was not written by a person in the Signed-off-by chain, but was instead created by a tool.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation A chatbot generated a new function in your patch to sort list entries.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation If in doubt, choose transparency and assume these guidelines apply to your contribution.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Second, when making a contribution, be transparent about the origin of content in cover letters and changelogs.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation You are expected to understand and to be able to defend everything you submit. If you are unable to do so, then do not submit the resulting changes.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Large or generated changes · Allowed with conditions
Largely generated code is not forbidden, but reviewers are told to apply scrutiny in proportion to how much was generated and maintainers may reject it outright.
- Disclose AI use: Tools used, affected portions, prompts or prompt summary in the cover letter and changelog
- Take full responsibility: Submitter must understand and be able to defend everything submitted
- Review AI output first: Review all AI-generated code and sign off the DCO yourself
11 quotes
Reviewing all AI-generated code
AI Coding Assistants — The Linux Kernel documentation Taking full responsibility for the contribution
AI Coding Assistants — The Linux Kernel documentation Understanding which portions of a contribution come from humans versus tools is helpful to maintain those resources and keep kernel development healthy.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation These guidelines apply when a meaningful amount of content in a kernel contribution was not written by a person in the Signed-off-by chain, but was instead created by a tool.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation A chatbot generated a new function in your patch to sort list entries.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation A .c file in the patch was originally generated by a coding assistant but cleaned up by hand.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Ensure that you understand your entire submission and are prepared to respond to review comments.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation If code was largely generated from a single or short set of prompts, include those prompts.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation As with all contributions, individual maintainers have discretion to choose how they handle the contribution.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation If tools permit you to generate a contribution automatically, expect additional scrutiny in proportion to how much of it was generated.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation You are expected to understand and to be able to defend everything you submit. If you are unable to do so, then do not submit the resulting changes.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Mechanical changes · Allowed
Renames, reformatting and other purely mechanical transformations are out of scope of the guidelines; disclosure is only encouraged.
- Disclose AI use: Consider telling the reviewer which tool was used (recommended, not required)
4 quotes
These guidelines do not apply to tools that make trivial tweaks to preexisting content. Nor do they pertain to tooling that helps with menial tasks.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Purely mechanical transformations like variable renaming
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Reformatting, like running Lindent, clang-format or rust-fmt
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Even whenever your tool use is out of scope, you should still always consider if it would help reviewing your contribution if the reviewer knows about the tool that you used.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Tests · Allowed with conditions
AI-written test code counts as tool-generated contribution content, so it must be disclosed and understood by the human submitter.
- Disclose AI use: State the origin of tool-generated content in cover letters and changelogs
- Take full responsibility: Submitter must understand and be able to defend the change
- Review AI output first: Review all AI-generated code and sign off the DCO yourself
5 quotes
Reviewing all AI-generated code
AI Coding Assistants — The Linux Kernel documentation Taking full responsibility for the contribution
AI Coding Assistants — The Linux Kernel documentation These guidelines apply when a meaningful amount of content in a kernel contribution was not written by a person in the Signed-off-by chain, but was instead created by a tool.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Second, when making a contribution, be transparent about the origin of content in cover letters and changelogs.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation You are expected to understand and to be able to defend everything you submit. If you are unable to do so, then do not submit the resulting changes.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Build and CI · Allowed with conditions
Tool-generated build or CI changes are treated like any other generated contribution content: disclose, review and be able to defend them.
- Disclose AI use: State the origin of tool-generated content in cover letters and changelogs
- Take full responsibility: Submitter must understand and be able to defend the change
- Review AI output first: Review all AI-generated code and sign off the DCO yourself
5 quotes
Reviewing all AI-generated code
AI Coding Assistants — The Linux Kernel documentation Taking full responsibility for the contribution
AI Coding Assistants — The Linux Kernel documentation These guidelines apply when a meaningful amount of content in a kernel contribution was not written by a person in the Signed-off-by chain, but was instead created by a tool.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Second, when making a contribution, be transparent about the origin of content in cover letters and changelogs.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation You are expected to understand and to be able to defend everything you submit. If you are unable to do so, then do not submit the resulting changes.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Documentation · Allowed with conditions
Written content submitted as a patch falls under the same transparency rule when a meaningful amount was not written by the signer.
- Disclose AI use: State the origin of tool-generated content in cover letters and changelogs
- Take full responsibility: Submitter must understand and be able to defend the change
- Review AI output first: Review all AI-generated content and sign off the DCO yourself
5 quotes
Reviewing all AI-generated code
AI Coding Assistants — The Linux Kernel documentation Taking full responsibility for the contribution
AI Coding Assistants — The Linux Kernel documentation These guidelines apply when a meaningful amount of content in a kernel contribution was not written by a person in the Signed-off-by chain, but was instead created by a tool.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Second, when making a contribution, be transparent about the origin of content in cover letters and changelogs.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation You are expected to understand and to be able to defend everything you submit. If you are unable to do so, then do not submit the resulting changes.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation AI as author · Not allowed
AI tools and agents must never add a Signed-off-by tag; only the human submitter signs off and certifies the DCO.
3 quotes
Adding their own Signed-off-by tag to certify the DCO
AI Coding Assistants — The Linux Kernel documentation AI agents MUST NOT add Signed-off-by tags. Only humans can legally certify the Developer Certificate of Origin (DCO).
AI Coding Assistants — The Linux Kernel documentation Commit the working fix with a detailed message describing the problem, the solution and a Fixes tag. Do not add a Signed-off-by tag.
AI Coding Assistants — The Linux Kernel documentation Autonomous agents · Allowed with conditions
Agents cannot sign off and must never send anything themselves, so agent-driven work needs a person directing, reviewing and submitting each step.
- A person must drive: Assistant must never send anything itself; a human sends and signs off
- Take full responsibility: Human submitter takes full responsibility for the contribution
4 quotes
Adding their own Signed-off-by tag to certify the DCO
AI Coding Assistants — The Linux Kernel documentation Taking full responsibility for the contribution
AI Coding Assistants — The Linux Kernel documentation AI agents MUST NOT add Signed-off-by tags. Only humans can legally certify the Developer Certificate of Origin (DCO).
AI Coding Assistants — The Linux Kernel documentation Read The Linux Kernel threat model to determine whether the bug is a vulnerability or a regular bug, and leave the result to the reporter for review (the assistant must never send anything itself).
AI Coding Assistants — The Linux Kernel documentation Other code contributions rule · Allowed
AI tools helping with kernel development are expected to follow the standard kernel development process, coding style and patch submission rules.
Quote
AI tools helping with Linux kernel development should follow the standard kernel development process:
AI Coding Assistants — The Linux Kernel documentation Other code contributions rule · Allowed
Maintainers have discretion over tool-generated contributions: they may accept them, reject them outright, ask for extra testing or explanation, or review them with extra scrutiny or at lower priority.
4 quotes
As with all contributions, individual maintainers have discretion to choose how they handle the contribution.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Treat the contribution specially, for example, asking for extra testing, reviewing with extra scrutiny, or reviewing at a lower priority than human-generated content.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Ask the submitter to explain in more detail about the contribution so that the maintainer can be assured that the submitter fully understands how the code works.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation If you do so anyway, maintainers are entitled to reject your series without detailed review.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Other code contributions rule · Allowed
Trivial tweaks, menial tasks, typing aids, mechanical transformations and reformatting are out of scope; telling reviewers about such tool use is still encouraged.
6 quotes
These guidelines do not apply to tools that make trivial tweaks to preexisting content. Nor do they pertain to tooling that helps with menial tasks.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Spelling and grammar fix ups, like rephrasing to imperative voice
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Typing aids like identifier completion, common boilerplate or trivial pattern completion
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Purely mechanical transformations like variable renaming
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Reformatting, like running Lindent, clang-format or rust-fmt
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Even whenever your tool use is out of scope, you should still always consider if it would help reviewing your contribution if the reviewer knows about the tool that you used.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation
Not covered by the policy (4)
Translating the software, Images and media, Research and learning, Checking own work.
Issues & bug reports
Finding bugs with AI · Allowed with conditions
AI may find and fix bugs only by following the full procedure: read the process docs, verify with a reproducer, write and test the fix, and say explicitly what could not be done.
- Disclose AI use: Note in the changelog that a tool found the problem
- Review AI output first: Reproduce the bug, build and test the fix, drop fixes that fail, and state what could not be done
- Take full responsibility: The reporter reviews the result and sends it; the assistant never sends anything
7 quotes
When an AI assistant is used to find and fix bugs, it MUST follow at least these steps:
AI Coding Assistants — The Linux Kernel documentation Before starting, read the whole process documentation listed above, as well as any other document mentioned in the request. Do not rely on isolated parts found by keyword search.
AI Coding Assistants — The Linux Kernel documentation For any bug found that is not trivial, verify that it looks real by attempting to create a reproducer to demonstrate it.
AI Coding Assistants — The Linux Kernel documentation Write a fix for the bug. This part is not optional: except in a few very rare cases, an AI assistant able to find a bug is able to fix it.
AI Coding Assistants — The Linux Kernel documentation Build and verify that the fix works either using the reproducer or by re-running a complete analysis; drop any fix that doesn’t work and try another one.
AI Coding Assistants — The Linux Kernel documentation Indicate what could not be done. If the fix could not be built or tested, or if no reproducer could be produced, say so explicitly: maintainers currently waste too much time analyzing unverified reports and untested fixes.
AI Coding Assistants — The Linux Kernel documentation Detection of a problem and testing the fix for it is also part of the development process; if a tool was used to find a problem addressed by a change, that should be noted in the changelog.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation AI-written reports · Allowed with conditions
AI may draft bug reports and fix messages, but the human reporter must review the result and send it personally.
- Review AI output first: Leave the result to the reporter for review before sending
- Take full responsibility: The assistant must never send anything itself; the reporter sends
2 quotes
Indicate what could not be done. If the fix could not be built or tested, or if no reproducer could be produced, say so explicitly: maintainers currently waste too much time analyzing unverified reports and untested fixes.
AI Coding Assistants — The Linux Kernel documentation Read The Linux Kernel threat model to determine whether the bug is a vulnerability or a regular bug, and leave the result to the reporter for review (the assistant must never send anything itself).
AI Coding Assistants — The Linux Kernel documentation Security reports · Allowed with conditions
AI-found vulnerabilities must be classified against the kernel threat model and handed to the human reporter, who sends the report.
- Review AI output first: Classify with the kernel threat model and leave the result to the reporter for review
2 quotes
Indicate what could not be done. If the fix could not be built or tested, or if no reproducer could be produced, say so explicitly: maintainers currently waste too much time analyzing unverified reports and untested fixes.
AI Coding Assistants — The Linux Kernel documentation Read The Linux Kernel threat model to determine whether the bug is a vulnerability or a regular bug, and leave the result to the reporter for review (the assistant must never send anything itself).
AI Coding Assistants — The Linux Kernel documentation
Not covered by the policy (1)
Bots filing issues.
AI-written text
Pull request descriptions · Allowed with conditions
Cover letters may be tool-written, but the tools used, the affected portions and the prompts must be disclosed.
- Disclose AI use: Be transparent about the origin of content in cover letters; include prompts or a prompt summary if code was largely generated
5 quotes
Understanding which portions of a contribution come from humans versus tools is helpful to maintain those resources and keep kernel development healthy.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation These guidelines apply when a meaningful amount of content in a kernel contribution was not written by a person in the Signed-off-by chain, but was instead created by a tool.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation If in doubt, choose transparency and assume these guidelines apply to your contribution.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Second, when making a contribution, be transparent about the origin of content in cover letters and changelogs.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation If code was largely generated from a single or short set of prompts, include those prompts.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Commit messages · Allowed with conditions
A changelog written by a generative AI tool is explicitly an in-scope example: it must be disclosed along with the tools and prompts used.
- Disclose AI use: Say which tool was used and include the prompts or a summary of them
4 quotes
Understanding which portions of a contribution come from humans versus tools is helpful to maintain those resources and keep kernel development healthy.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation The changelog was generated by handing the patch to a generative AI tool and asking it to write the changelog.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Second, when making a contribution, be transparent about the origin of content in cover letters and changelogs.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation If code was largely generated from a single or short set of prompts, include those prompts.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Translating own text · Allowed with conditions
A changelog translated from another language is an in-scope example, so the translation must be disclosed.
- Disclose AI use: State that the changelog was translated from another language
2 quotes
The changelog was translated from another language.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Second, when making a contribution, be transparent about the origin of content in cover letters and changelogs.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Proofreading · Allowed
Spelling and grammar fix-ups are explicitly out of scope of the guidelines; mentioning the tool is only suggested.
- Disclose AI use: Consider telling the reviewer which tool was used (recommended, not required)
3 quotes
These guidelines do not apply to tools that make trivial tweaks to preexisting content. Nor do they pertain to tooling that helps with menial tasks.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Spelling and grammar fix ups, like rephrasing to imperative voice
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation Even whenever your tool use is out of scope, you should still always consider if it would help reviewing your contribution if the reviewer knows about the tool that you used.
Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation
Not covered by the policy (7)
Comments, Answering reviewers, Reviewing others' work, Forum and list posts, Quoting AI output, Summarizing discussions, Bots posting.
General
When in doubt, contributors should choose transparency and assume the tool-generated content guidelines apply to their contribution.
“If in doubt, choose transparency and assume these guidelines apply to your contribution.” (Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentation)
Sources
- AI Coding Assistants — The Linux Kernel documentationdocs.kernel.org/process/coding-assistants.htmlSnapshot 9 Nov 2026
- Kernel Guidelines for Tool-Generated Content — The Linux Kernel documentationdocs.kernel.org/process/generated-content.htmlSnapshot 9 Oct 2026