Maintainer workflows discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] docs: ask AI-assisted patches for short changelogs and a cover letter
@ 2026-11-26 17:19 Sasha Levin
  2026-11-26 17:19 ` [PATCH 1/2] docs: coding-assistants: ask " Sasha Levin
  2026-11-26 17:19 ` [PATCH 2/2] docs: security-bugs: ask AI-assisted fixes for their " Sasha Levin
  0 siblings, 2 replies; 20+ messages in thread
From: Sasha Levin @ 2026-11-26 17:19 UTC (permalink / raw)
  To: Jonathan Corbet
  Cc: Sasha Levin, Linus Torvalds, Willy Tarreau, Leon Romanovsky,
	Krzysztof Kozlowski, Mark Brown, Geert Uytterhoeven,
	Borislav Petkov, Marc Zyngier, Eric Dumazet, Hans de Goede,
	Andrew Lunn, Jonathan Cameron, Andrew Morton, Shuah Khan,
	Randy Dunlap, Greg Kroah-Hartman, Theodore Ts'o,
	David Hildenbrand, Security Officers, workflows, linux-doc,
	linux-kernel

Commit messages written by AI coding assistants are too long, and
maintainers keep saying so. Greg: "LLMs love to write a lot. Please
always rewrite the changelog text to be sane and concise." [1] Linus,
on a pull request text that read like an LLM's: "you can tell it to be
a bit less verbose" [2]. Marc [3], Eric [4], Hans [5], Andrew [6] and
Jonathan [7] are a few more examples from this year, from different
subsystems. security-bugs.rst already carries a paragraph on the length
of AI-generated reports. The messages read like a copy of the
assistant's analysis, and what a reader needs is buried in them.

When an assistant does trim, the opposite problem shows: a few lines of
a backtrace do not tell a reviewer how the failure was produced. Leon
showed a case where only the full log revealed that the crash came from
an out-of-tree module written to provoke it [8], and Willy suggested a
short quote in the changelog plus the full log attached [9].

This series gives each kind of content its place. Patch 1 tells coding
assistants to keep the commit message to the point and to put the
evidence into a cover letter, which every patch or series they prepare
has to come with, a single patch included. It lists seven items that
the cover letter has to contain at a minimum. Patch 2 names the cover
letter in security-bugs.rst and keeps the reproducer out of it there,
as the cover letter goes to a public list with the patch.

The cover letter stays in the list archive, and the Link: tag or the
patch-id of the applied commit leads back to it. The full log can then
be found from the git history without being part of it.

What follows is an example of such a cover letter, written for this
series. The seven items are about both patches unless one is named.

1. Based on docs-next d3b70c91af11 ("docs: ioctl-number: update DRM
   entries") plus "docs: submitting-patches: ask bug fixes for their
   user-visible impact" [10], which changes the same step 6 as patch 1.
   Nothing else was added. No architecture or configuration, these are
   documentation changes.

2. The problem was reported on the list, in the mails [1] to [9] above.
   No tool found it. The text of both patches was written with an AI
   coding assistant, Claude Code.

3. Not a kernel failure. The problem is in the patches that reach the
   lists: [1] to [7] are replies to such patches and pull requests, and
   [8] has an example of what a trimmed log can hide.

4. No reproducer.

5. scripts/checkpatch.pl on both patches: 0 errors, 0 warnings.
   "make SPHINXDIRS=process htmldocs" from an empty output directory,
   with and without the patches: exit 0 both times and the same 57
   warnings, none of them new.
   One trial of an earlier draft of patch 1, from before the paragraph
   on vulnerabilities was added: Claude Code with Claude Sonnet 5.5 was
   given a tree with the text applied, at the parent of 8e83fac77aa97
   ("bootconfig: Fix xbc_verify_tree() to check subkeys of valued
   keys"), and was asked to fix that bug, with no mention of cover
   letters. It produced a [PATCH 0/1] with the seven items in order,
   the captured outputs copied byte for byte, and a commit message of
   16 lines.

6. Nothing failed, so there is no output to show.

7. Not done: a full "make htmldocs", only Documentation/process was
   built. One trial with one assistant says little about the others,
   and the vulnerability case and patch 2 were not tried at all.

[1] https://lore.kernel.org/r/2026073057-moustache-unfixable-5ab1@gregkh
[2] https://lore.kernel.org/r/CAHk-=wgXU50=KgZNZc1JDxsSxg9Z+DjG1_2yU-fNXpZtUe4XDw@mail.gmail.com
[3] https://lore.kernel.org/r/861pf9xgkc.wl-maz@kernel.org
[4] https://lore.kernel.org/r/CANn89iKErdqHOGFpQLM_MAi-LcAaR6ZR2_rhdtZzv1TJc2L4RQ@mail.gmail.com
[5] https://lore.kernel.org/r/ab5c5ae1-1bfd-4fe4-adef-fb64b5b3dfbb@oss.qualcomm.com
[6] https://lore.kernel.org/r/ef2eb733-4b94-4c2e-9165-0b324733a482@lunn.ch
[7] https://lore.kernel.org/r/20261121195920.573a0727@jic23-hlaptop
[8] https://lore.kernel.org/r/20261125125739.GA14811@unreal
[9] https://lore.kernel.org/r/av7tY64O34gbJvH_@1wt.eu
[10] https://lore.kernel.org/r/20261116200515.352387-1-sashal@kernel.org

Sasha Levin (2):
  docs: coding-assistants: ask for short changelogs and a cover letter
  docs: security-bugs: ask AI-assisted fixes for their cover letter

 Documentation/process/coding-assistants.rst | 86 ++++++++++++++++++++-
 Documentation/process/security-bugs.rst     | 17 ++--
 2 files changed, 95 insertions(+), 8 deletions(-)


base-commit: d3b70c91af11cdf08aebbfdb166b333ada0276be
prerequisite-patch-id: 3fe9b4033dfb06bcc2898e76439d04a11a239c33
-- 
2.53.0


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-26 17:19 [PATCH 0/2] docs: ask AI-assisted patches for short changelogs and a cover letter Sasha Levin
@ 2026-11-26 17:19 ` Sasha Levin
  2026-11-27  1:34   ` Krzysztof Kozlowski
  2026-11-26 17:19 ` [PATCH 2/2] docs: security-bugs: ask AI-assisted fixes for their " Sasha Levin
  1 sibling, 1 reply; 20+ messages in thread
From: Sasha Levin @ 2026-11-26 17:19 UTC (permalink / raw)
  To: Jonathan Corbet
  Cc: Sasha Levin, Linus Torvalds, Willy Tarreau, Leon Romanovsky,
	Krzysztof Kozlowski, Mark Brown, Geert Uytterhoeven,
	Borislav Petkov, Marc Zyngier, Eric Dumazet, Hans de Goede,
	Andrew Lunn, Jonathan Cameron, Andrew Morton, Shuah Khan,
	Randy Dunlap, Greg Kroah-Hartman, Theodore Ts'o,
	David Hildenbrand, Security Officers, workflows, linux-doc,
	linux-kernel

Commit messages written by AI coding assistants are too long.
Maintainers keep asking for them to be cut down [1][2][3][4]: they read
like a copy of the assistant's analysis and bury what a reader needs.
When an assistant does trim, the opposite problem shows. A few lines of
a backtrace do not tell a reviewer how the failure was produced, and
Leon Romanovsky showed a case where only the full log revealed that the
crash came from an out-of-tree module written to provoke it [5]. Willy
Tarreau suggested a short quote in the changelog plus the full log
attached [6].

Give each kind of content its place. Add a "Commit message" section
that asks for a message that is to the point, and point it at "Patch
formatting and changelogs" in 5.Posting.rst, which asks for "the most
direct and concise way possible". Step 6 of the procedure asked for a
"detailed" message, which reads as a request for length: drop the word
and refer to the new section.

Everything else goes into a cover letter. Require one for every patch
or series prepared with an AI assistant, a single patch included, and
list what it has to contain: the base commit and whatever was added to
the tree to trigger the problem, how the problem was found, whether it
was seen to happen, the reproducer, how the change was tested, the
complete output that shows the problem, and what could not be done. The
output has to be the captured one, unedited, and whatever the commit
message quotes has to come from it. The items are a minimum: what a
cover letter usually holds can be added to them. Make writing the cover
letter a step of the bug fixing procedure, and say that a patch without
it is not finished.

security-bugs.rst does not allow a reproducer on a public list. For a
bug that is or may be a vulnerability the cover letter therefore only
says that one exists, and the cover letter step comes after the step
that tells a vulnerability from a regular bug.

The cover letter is posted with the patch and stays in the list
archive. The Link: tag of the applied commit, or a lore search for its
patch-id, leads from the commit to the thread, so the full log can be
found from the git history without being part of it.

Link: https://lore.kernel.org/r/2026073057-moustache-unfixable-5ab1@gregkh [1]
Link: https://lore.kernel.org/r/CAHk-=wgXU50=KgZNZc1JDxsSxg9Z+DjG1_2yU-fNXpZtUe4XDw@mail.gmail.com [2]
Link: https://lore.kernel.org/r/861pf9xgkc.wl-maz@kernel.org [3]
Link: https://lore.kernel.org/r/20261121195920.573a0727@jic23-hlaptop [4]
Link: https://lore.kernel.org/r/20261125125739.GA14811@unreal [5]
Link: https://lore.kernel.org/r/av7tY64O34gbJvH_@1wt.eu [6]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 Documentation/process/coding-assistants.rst | 86 ++++++++++++++++++++-
 1 file changed, 84 insertions(+), 2 deletions(-)

diff --git a/Documentation/process/coding-assistants.rst b/Documentation/process/coding-assistants.rst
index ef01ce8d0ff91..98a72561a9c2b 100644
--- a/Documentation/process/coding-assistants.rst
+++ b/Documentation/process/coding-assistants.rst
@@ -40,6 +40,84 @@ is responsible for:
 * Adding their own Signed-off-by tag to certify the DCO
 * Taking full responsibility for the contribution
 
+Commit message
+==============
+
+The commit message **MUST** be to the point. "Patch formatting and changelogs"
+in Documentation/process/5.Posting.rst asks for a changelog that conveys what
+its readers need "in the most direct and concise way possible", and "Describe
+your changes" in Documentation/process/submitting-patches.rst says what that
+is. Keep the message as short as its content allows. Leave out markdown,
+labels such as "Root cause:", a restatement of the subject, lists of what was
+checked and the story of the investigation. Quote only the few lines of a log
+that identify the problem, see "Backtraces in commit messages" in
+Documentation/process/submitting-patches.rst.
+
+What reviewers need to check the work, and what does not belong in the git
+history, goes into the cover letter.
+
+Cover letter
+============
+
+Every patch or series prepared with an AI assistant **MUST** come with a cover
+letter, the "[PATCH 0/N]" mail that the patches are sent as replies to. This
+includes a single patch; tool use that
+Documentation/process/generated-content.rst puts out of scope does not count.
+The cover letter holds the evidence that reviewers need to check the work. It
+is posted with the patches and stays in the list archive.
+
+The cover letter **MUST** contain the following items, in this order. Do not
+drop an item: if there is nothing to say, write that. For a series, say which
+patch each item is about.
+
+1. The commit ID the work was done on, the architecture and configuration, and
+   everything that was added to that tree to trigger or observe the problem:
+   other patches, out-of-tree modules, fault injection, debugging code.
+2. How the problem was found: a report (give the link), a test, a tool, or
+   reading the code. Name the tools that were used, as
+   Documentation/process/generated-content.rst asks.
+3. Whether the problem was seen to happen: on the unmodified tree, only with
+   the additions from item 1, or never (found by analysis only).
+4. The reproducer, or the exact steps that trigger the problem. See below for a
+   bug that is or may be a vulnerability.
+5. How the change was tested: the commands, and the results without and with
+   the change. Leave out the output of successful builds.
+6. The complete output that shows the problem. For a runtime failure this is
+   the kernel log from boot up to and including the failure; for a build
+   failure, a failing test or a tool report it is all the output of that
+   command.
+7. What could not be done: not built, not booted, not tested, no reproducer.
+
+The output in item 6 **MUST** be what was captured, copied as is. Do not retype
+it, trim it, reorder it, or write what it would probably look like. If it is
+too large for one mail, do not cut it:
+Documentation/admin-guide/reporting-issues.rst says what to do with such
+files. If the problem was never triggered there is no such output, and item 6
+says so.
+
+Every line of output that the commit message quotes **MUST** come from the
+output in item 6.
+
+These items are the minimum. The cover letter can also hold what a cover
+letter usually holds, such as the introduction to a series (see
+Documentation/process/5.Posting.rst) and the changes since its previous
+version, placed before the items. Whatever else is in it, the items **MUST**
+be there. The story of the investigation does not belong in it either.
+
+Complete logs can contain host names, addresses, serial numbers and command
+lines. Tell the submitter, who reviews the cover letter like the rest of the
+contribution and sends it together with the patches.
+
+A bug that is or may be a vulnerability, see step 9 of the procedure below,
+gets its cover letter like any other, but a reproducer for it does not go to a
+public list. Item 4 then only says that a reproducer exists.
+Documentation/process/security-bugs.rst says what else is prepared and who
+receives it, and takes precedence wherever the two documents differ.
+
+A patch without its cover letter is not finished and must not be reported as
+done. Maintainers can expect the cover letter, and may ignore patches prepared
+with an AI assistant that arrive without one.
+
 Procedure for finding and fixing bugs
 =====================================
 
@@ -63,10 +141,11 @@ these steps:
    re-running a complete analysis; drop any fix that doesn't work and try
    another one. The fix must not add build warnings and must pass the
    checkpatch.pl checks (see submitting-patches.rst).
-6. Commit the working fix with a detailed message describing the problem, its
+6. Commit the working fix with a message describing the problem, its
    user-visible impact (see "Describe your changes" in
    Documentation/process/submitting-patches.rst), the solution and a Fixes
-   tag. Do not add a Signed-off-by tag.
+   tag. Keep it to the point, see "Commit message" above. Do not add a
+   Signed-off-by tag.
 7. Identify the maintainers and lists using scripts/get_maintainer.pl.
    Documentation/process/security-bugs.rst shows how to do that.
 8. Indicate what could not be done. If the fix could not be built or tested, or
@@ -77,3 +156,6 @@ these steps:
    review (the assistant must never send anything itself). Regular bugs are
    submitted as described in Documentation/process/submitting-patches.rst,
    vulnerabilities as described in Documentation/process/security-bugs.rst.
+10. Write the cover letter described in "Cover letter" above from what the
+    previous steps produced. This part is not optional, not even for a single
+    patch or a one-line fix.
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH 2/2] docs: security-bugs: ask AI-assisted fixes for their cover letter
  2026-11-26 17:19 [PATCH 0/2] docs: ask AI-assisted patches for short changelogs and a cover letter Sasha Levin
  2026-11-26 17:19 ` [PATCH 1/2] docs: coding-assistants: ask " Sasha Levin
@ 2026-11-26 17:19 ` Sasha Levin
  2026-11-27  5:29   ` Willy Tarreau
  1 sibling, 1 reply; 20+ messages in thread
From: Sasha Levin @ 2026-11-26 17:19 UTC (permalink / raw)
  To: Jonathan Corbet
  Cc: Sasha Levin, Linus Torvalds, Willy Tarreau, Leon Romanovsky,
	Krzysztof Kozlowski, Mark Brown, Geert Uytterhoeven,
	Borislav Petkov, Marc Zyngier, Eric Dumazet, Hans de Goede,
	Andrew Lunn, Jonathan Cameron, Andrew Morton, Shuah Khan,
	Randy Dunlap, Greg Kroah-Hartman, Theodore Ts'o,
	David Hildenbrand, Security Officers, workflows, linux-doc,
	linux-kernel

coding-assistants.rst asks for a cover letter with the evidence behind
every patch an AI assistant prepares. A fix for a security bug needs
that evidence as much as any other fix, so name the cover letter in the
summary of that procedure and in the list of recipients.

The cover letter goes where the patch goes, which usually includes a
public list, while the reproducer goes to the maintainers only. Say
that the reproducer and the steps to trigger the problem stay out of
the cover letter, which only mentions that a reproducer exists.

"Length" asks for short reports. With the complete output in the cover
letter the report has no reason to carry it.

Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 Documentation/process/security-bugs.rst | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/Documentation/process/security-bugs.rst b/Documentation/process/security-bugs.rst
index c7dfecc87764c..0423a814c6a1e 100644
--- a/Documentation/process/security-bugs.rst
+++ b/Documentation/process/security-bugs.rst
@@ -233,8 +233,8 @@ At the very least, when using an AI assistant to find and report bugs, make the
 assistant read this file and threat-model.rst before proceeding, and have it
 follow the procedure described in coding-assistants.rst: work on an up-to-date
 mainline tree and note the commit ID, verify the bug is real, write a fix,
-build it warning-free and checkpatch-clean, commit it with a Fixes tag, and
-identify the maintainers with get_maintainer.pl.
+build it warning-free and checkpatch-clean, commit it with a Fixes tag,
+identify the maintainers with get_maintainer.pl, and write the cover letter.
 
 On top of that procedure, the AI assistant **MUST**:
 
@@ -244,10 +244,15 @@ On top of that procedure, the AI assistant **MUST**:
    the description of the problem, the reproducer or its status, and the
    triggering conditions.
 2. Start the report with a temporary section listing the recipients' addresses
-   (maintainers+list for the patch, maintainers only for the report and
-   reproducer), and with instructions reminding the reporter to check that
-   their email client is properly setup (see email-clients.rst), and leave it
-   to the reporter to remove that temporary section.
+   (maintainers+list for the patch and its cover letter, maintainers only for
+   the report and reproducer), and with instructions reminding the reporter to
+   check that their email client is properly setup (see email-clients.rst), and
+   leave it to the reporter to remove that temporary section.
+3. Keep the reproducer, and the steps that trigger the problem, out of the
+   cover letter that coding-assistants.rst asks for. The cover letter goes
+   where the patch goes, which usually includes a public list, so it only says
+   that a reproducer exists. With the complete output in the cover letter, the
+   report itself can stay short.
 
 A more detailed process is covered at https://github.com/masoncl/kres.git.
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-26 17:19 ` [PATCH 1/2] docs: coding-assistants: ask " Sasha Levin
@ 2026-11-27  1:34   ` Krzysztof Kozlowski
  2026-11-27  1:49     ` Borislav Petkov
  0 siblings, 1 reply; 20+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-27  1:34 UTC (permalink / raw)
  To: Sasha Levin, Jonathan Corbet
  Cc: Linus Torvalds, Willy Tarreau, Leon Romanovsky, Mark Brown,
	Geert Uytterhoeven, Borislav Petkov, Marc Zyngier, Eric Dumazet,
	Hans de Goede, Andrew Lunn, Jonathan Cameron, Andrew Morton,
	Shuah Khan, Randy Dunlap, Greg Kroah-Hartman, Theodore Ts'o,
	David Hildenbrand, Security Officers, workflows, linux-doc,
	linux-kernel

On 26/11/2026 18:19, Sasha Levin wrote:
> Commit messages written by AI coding assistants are too long.
> Maintainers keep asking for them to be cut down [1][2][3][4]: they read
> like a copy of the assistant's analysis and bury what a reader needs.
> When an assistant does trim, the opposite problem shows. A few lines of
> a backtrace do not tell a reviewer how the failure was produced, and
> Leon Romanovsky showed a case where only the full log revealed that the
> crash came from an out-of-tree module written to provoke it [5]. Willy
> Tarreau suggested a short quote in the changelog plus the full log
> attached [6].

Shall we rather ask them not to write commit msgs at all? By writing
commit msg we encourage - or try to encourage - at least basic
understanding of what the patch does.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27  1:34   ` Krzysztof Kozlowski
@ 2026-11-27  1:49     ` Borislav Petkov
  2026-11-27  2:19       ` Sasha Levin
  0 siblings, 1 reply; 20+ messages in thread
From: Borislav Petkov @ 2026-11-27  1:49 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Sasha Levin, Jonathan Corbet, Linus Torvalds, Willy Tarreau,
	Leon Romanovsky, Mark Brown, Geert Uytterhoeven, Marc Zyngier,
	Eric Dumazet, Hans de Goede, Andrew Lunn, Jonathan Cameron,
	Andrew Morton, Shuah Khan, Randy Dunlap, Greg Kroah-Hartman,
	Theodore Ts'o, David Hildenbrand, Security Officers,
	workflows, linux-doc, linux-kernel

On Fri, Nov 27, 2026 at 02:34:26AM +0100, Krzysztof Kozlowski wrote:
> On 26/11/2026 18:19, Sasha Levin wrote:
> > Commit messages written by AI coding assistants are too long.
> > Maintainers keep asking for them to be cut down [1][2][3][4]: they read
> > like a copy of the assistant's analysis and bury what a reader needs.
> > When an assistant does trim, the opposite problem shows. A few lines of
> > a backtrace do not tell a reviewer how the failure was produced, and
> > Leon Romanovsky showed a case where only the full log revealed that the
> > crash came from an out-of-tree module written to provoke it [5]. Willy
> > Tarreau suggested a short quote in the changelog plus the full log
> > attached [6].
> 
> Shall we rather ask them not to write commit msgs at all? By writing
> commit msg we encourage - or try to encourage - at least basic
> understanding of what the patch does.

Agreed.

Just have the LLM write a commit message and then the human should go
and whack most of it to the bare minimum of coincisely explaining the thing
and cull all the bullsh*t.

I constantly do that with submitters' overloaded bla nowadays. And don't even
get me started on all those explaining what the patch does. There's not small
amounts of text which basically spells out the code in the diff, in English.

/facepalm.

Anyway, I try to hold on to this structure below, with variations ofc, if
needed:

"1. Prepare the context for the explanation briefly.

2. Explain the problem at hand.

3. "It happens because of <...>"

4. "Fix it by doing X"

5. "(Potentially do Y)."

And some of those above are optional depending on the issue being
explained."

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27  1:49     ` Borislav Petkov
@ 2026-11-27  2:19       ` Sasha Levin
  2026-11-27  5:23         ` Willy Tarreau
  2026-11-27  9:18         ` Lorenzo Stoakes (ARM)
  0 siblings, 2 replies; 20+ messages in thread
From: Sasha Levin @ 2026-11-27  2:19 UTC (permalink / raw)
  To: Borislav Petkov
  Cc: Krzysztof Kozlowski, Jonathan Corbet, Linus Torvalds,
	Willy Tarreau, Leon Romanovsky, Mark Brown, Geert Uytterhoeven,
	Marc Zyngier, Eric Dumazet, Hans de Goede, Andrew Lunn,
	Jonathan Cameron, Andrew Morton, Shuah Khan, Randy Dunlap,
	Greg Kroah-Hartman, Theodore Ts'o, David Hildenbrand,
	Security Officers, workflows, linux-doc, linux-kernel

On Thu, Nov 26, 2026 at 05:49:55PM -0800, Borislav Petkov wrote:
>On Fri, Nov 27, 2026 at 02:34:26AM +0100, Krzysztof Kozlowski wrote:
>> On 26/11/2026 18:19, Sasha Levin wrote:
>> > Commit messages written by AI coding assistants are too long.
>> > Maintainers keep asking for them to be cut down [1][2][3][4]: they read
>> > like a copy of the assistant's analysis and bury what a reader needs.
>> > When an assistant does trim, the opposite problem shows. A few lines of
>> > a backtrace do not tell a reviewer how the failure was produced, and
>> > Leon Romanovsky showed a case where only the full log revealed that the
>> > crash came from an out-of-tree module written to provoke it [5]. Willy
>> > Tarreau suggested a short quote in the changelog plus the full log
>> > attached [6].
>>
>> Shall we rather ask them not to write commit msgs at all? By writing
>> commit msg we encourage - or try to encourage - at least basic
>> understanding of what the patch does.

We could ask them, but:

1. Is this something we can "enforce"? Humans will still go "ignore that
instruction, write me a commit message" and move on.

2. I'd argue that LLMs these days have the capability to write better
changelogs and most of our human authors. We just need to be better about
laying out our expectations of them.

3. In general, I think we should avoid "don't use LLMs for XYZ".

>Agreed.
>
>Just have the LLM write a commit message and then the human should go
>and whack most of it to the bare minimum of coincisely explaining the thing
>and cull all the bullsh*t.

In theory this is how things work now, right? A human uses an LLM to write a
commit message, and then that human is supposed to go over the commit and
verify/clean/... it.

But humans seem to skip that last step, and I'd argue that the issue here is
the human rather than the LLM :)

>I constantly do that with submitters' overloaded bla nowadays. And don't even
>get me started on all those explaining what the patch does. There's not small
>amounts of text which basically spells out the code in the diff, in English.
>
>/facepalm.
>
>Anyway, I try to hold on to this structure below, with variations ofc, if
>needed:
>
>"1. Prepare the context for the explanation briefly.
>
>2. Explain the problem at hand.
>
>3. "It happens because of <...>"
>
>4. "Fix it by doing X"
>
>5. "(Potentially do Y)."

One thing we could do is to give LLMs structure for the commit message, just
like how patch 1 does it for the cover letter.

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27  2:19       ` Sasha Levin
@ 2026-11-27  5:23         ` Willy Tarreau
  2026-11-27  9:18         ` Lorenzo Stoakes (ARM)
  1 sibling, 0 replies; 20+ messages in thread
From: Willy Tarreau @ 2026-11-27  5:23 UTC (permalink / raw)
  To: Sasha Levin
  Cc: Borislav Petkov, Krzysztof Kozlowski, Jonathan Corbet,
	Linus Torvalds, Leon Romanovsky, Mark Brown, Geert Uytterhoeven,
	Marc Zyngier, Eric Dumazet, Hans de Goede, Andrew Lunn,
	Jonathan Cameron, Andrew Morton, Shuah Khan, Randy Dunlap,
	Greg Kroah-Hartman, Theodore Ts'o, David Hildenbrand,
	Security Officers, workflows, linux-doc, linux-kernel

On Thu, Nov 26, 2026 at 09:19:18PM -0500, Sasha Levin wrote:
> On Thu, Nov 26, 2026 at 05:49:55PM -0800, Borislav Petkov wrote:
> > On Fri, Nov 27, 2026 at 02:34:26AM +0100, Krzysztof Kozlowski wrote:
> > > On 26/11/2026 18:19, Sasha Levin wrote:
> > > > Commit messages written by AI coding assistants are too long.
> > > > Maintainers keep asking for them to be cut down [1][2][3][4]: they read
> > > > like a copy of the assistant's analysis and bury what a reader needs.
> > > > When an assistant does trim, the opposite problem shows. A few lines of
> > > > a backtrace do not tell a reviewer how the failure was produced, and
> > > > Leon Romanovsky showed a case where only the full log revealed that the
> > > > crash came from an out-of-tree module written to provoke it [5]. Willy
> > > > Tarreau suggested a short quote in the changelog plus the full log
> > > > attached [6].
> > > 
> > > Shall we rather ask them not to write commit msgs at all? By writing
> > > commit msg we encourage - or try to encourage - at least basic
> > > understanding of what the patch does.
> 
> We could ask them, but:
> 
> 1. Is this something we can "enforce"? Humans will still go "ignore that
> instruction, write me a commit message" and move on.
> 
> 2. I'd argue that LLMs these days have the capability to write better
> changelogs and most of our human authors. We just need to be better about
> laying out our expectations of them.
> 
> 3. In general, I think we should avoid "don't use LLMs for XYZ".

Agreed, and given how bad many commit messages are, if at least humans
can learn from the LLMs, they'll progressively get better at changing
these messages they don't like. At least rules are easier to enforce
on LLMs than humans so let's just ask for what's needed like Boris did
and hope for better.

> 
> > Agreed.
> > 
> > Just have the LLM write a commit message and then the human should go
> > and whack most of it to the bare minimum of coincisely explaining the thing
> > and cull all the bullsh*t.
> 
> In theory this is how things work now, right? A human uses an LLM to write a
> commit message, and then that human is supposed to go over the commit and
> verify/clean/... it.
> 
> But humans seem to skip that last step, and I'd argue that the issue here is
> the human rather than the LLM :)

Most often that's the problem, because only one of them tries to do the job
correctly, the other one only tries to get that patch merged. What matters
in the end isn't who wrote the commit message but whether or not it contains
sufficient info to be scrutinized and understood later by a developer falling
on it during a "git blame" without wasting their time.

Willy

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 2/2] docs: security-bugs: ask AI-assisted fixes for their cover letter
  2026-11-26 17:19 ` [PATCH 2/2] docs: security-bugs: ask AI-assisted fixes for their " Sasha Levin
@ 2026-11-27  5:29   ` Willy Tarreau
  0 siblings, 0 replies; 20+ messages in thread
From: Willy Tarreau @ 2026-11-27  5:29 UTC (permalink / raw)
  To: Sasha Levin
  Cc: Jonathan Corbet, Linus Torvalds, Leon Romanovsky,
	Krzysztof Kozlowski, Mark Brown, Geert Uytterhoeven,
	Borislav Petkov, Marc Zyngier, Eric Dumazet, Hans de Goede,
	Andrew Lunn, Jonathan Cameron, Andrew Morton, Shuah Khan,
	Randy Dunlap, Greg Kroah-Hartman, Theodore Ts'o,
	David Hildenbrand, Security Officers, workflows, linux-doc,
	linux-kernel

On Thu, Nov 26, 2026 at 12:19:25PM -0500, Sasha Levin wrote:
> coding-assistants.rst asks for a cover letter with the evidence behind
> every patch an AI assistant prepares. A fix for a security bug needs
> that evidence as much as any other fix, so name the cover letter in the
> summary of that procedure and in the list of recipients.
> 
> The cover letter goes where the patch goes, which usually includes a
> public list, while the reproducer goes to the maintainers only. Say
> that the reproducer and the steps to trigger the problem stay out of
> the cover letter, which only mentions that a reproducer exists.
> 
> "Length" asks for short reports. With the complete output in the cover
> letter the report has no reason to carry it.
> 
> Signed-off-by: Sasha Levin <sashal@kernel.org>
> ---
>  Documentation/process/security-bugs.rst | 17 +++++++++++------
>  1 file changed, 11 insertions(+), 6 deletions(-)
> 
> diff --git a/Documentation/process/security-bugs.rst b/Documentation/process/security-bugs.rst
> index c7dfecc87764c..0423a814c6a1e 100644
> --- a/Documentation/process/security-bugs.rst
> +++ b/Documentation/process/security-bugs.rst
> @@ -233,8 +233,8 @@ At the very least, when using an AI assistant to find and report bugs, make the
>  assistant read this file and threat-model.rst before proceeding, and have it
>  follow the procedure described in coding-assistants.rst: work on an up-to-date
>  mainline tree and note the commit ID, verify the bug is real, write a fix,
> -build it warning-free and checkpatch-clean, commit it with a Fixes tag, and
> -identify the maintainers with get_maintainer.pl.
> +build it warning-free and checkpatch-clean, commit it with a Fixes tag,
> +identify the maintainers with get_maintainer.pl, and write the cover letter.
>  
>  On top of that procedure, the AI assistant **MUST**:
>  
> @@ -244,10 +244,15 @@ On top of that procedure, the AI assistant **MUST**:
>     the description of the problem, the reproducer or its status, and the
>     triggering conditions.
>  2. Start the report with a temporary section listing the recipients' addresses
> -   (maintainers+list for the patch, maintainers only for the report and
> -   reproducer), and with instructions reminding the reporter to check that
> -   their email client is properly setup (see email-clients.rst), and leave it
> -   to the reporter to remove that temporary section.
> +   (maintainers+list for the patch and its cover letter, maintainers only for
> +   the report and reproducer), and with instructions reminding the reporter to
> +   check that their email client is properly setup (see email-clients.rst), and
> +   leave it to the reporter to remove that temporary section.
> +3. Keep the reproducer, and the steps that trigger the problem, out of the
> +   cover letter that coding-assistants.rst asks for. The cover letter goes
> +   where the patch goes, which usually includes a public list, so it only says
> +   that a reproducer exists. With the complete output in the cover letter, the
> +   report itself can stay short.
>  
>  A more detailed process is covered at https://github.com/masoncl/kres.git.

Good points above. And the cover letter might help for one case we've seen
a few times: among the few reporters who follow the rules (patch to the list,
report+repro private), a few forgot to mention the patch had been posted
publicly so we asked for the patch again. If a maintainer (or security team)
receives a 2/2 message, it's more obvious that 1/2 was posted somewhere else.

Reviewed-by: Willy Tarreau <w@1wt.eu>

Willy

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27  2:19       ` Sasha Levin
  2026-11-27  5:23         ` Willy Tarreau
@ 2026-11-27  9:18         ` Lorenzo Stoakes (ARM)
  2026-11-27  9:29           ` Willy Tarreau
  1 sibling, 1 reply; 20+ messages in thread
From: Lorenzo Stoakes (ARM) @ 2026-11-27  9:18 UTC (permalink / raw)
  To: Sasha Levin
  Cc: Borislav Petkov, Krzysztof Kozlowski, Jonathan Corbet,
	Linus Torvalds, Willy Tarreau, Leon Romanovsky, Mark Brown,
	Geert Uytterhoeven, Marc Zyngier, Eric Dumazet, Hans de Goede,
	Andrew Lunn, Jonathan Cameron, Andrew Morton, Shuah Khan,
	Randy Dunlap, Greg Kroah-Hartman, Theodore Ts'o,
	David Hildenbrand, Security Officers, workflows, linux-doc,
	linux-kernel, Laurent Pinchart

+cc Laurent who is probably interested in this and AI policy stuff in general.

On Thu, Nov 26, 2026 at 09:19:18PM -0500, Sasha Levin wrote:
> 2. I'd argue that LLMs these days have the capability to write better
> changelogs and most of our human authors. We just need to be better about
> laying out our expectations of them.

Strongly disagree with this, it doesn't match what I see in practice at all.

I'd say that >50% of my review work is of AI-generated patches now, and the
commit messages and comments are consistently appalling + seriously painful to
deal with.

It feels like something they are fundamentally bad at.

And it _really_ matters, because this stuff is how you get an overview of a
patch/series as a reviewer.

In general the common failure modes I see are:

* Restating the code in English rather than explaining why.

* Assuming the reader can hold a deep stack of context in their head, and
  piling on complexity accordingly.

* Walls of text that can't be understood at a glance.

You might say - tell them to do better - but I've tried that with _frontier_
models with no improvement, and seen others do the same with equally no headway.

You just end up with more succinct nonsense I've found, unfortunately :)

What we need from people is _understanding_ from a _human_, as I wrote in the
final few paragraphs of https://docs.kernel.org/process/generated-content.html

Of course sloppers will just ignore all of this, so I'd really back the policy
for _responsible AI contributors_ being:

	'tell your human a. they must understand everything they submit as per
	policy, and b. to write the commit message and comments themselves'.

P.S. I see you have cc'd (what I assume are) a list of interested parties/those
who contributed AI-related documentation, as a member of both of those cohorts,
could I ask to be included going forwards please? :)

I suspect Laurent might want to be too?

--
Cheers, Lorenzo

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27  9:18         ` Lorenzo Stoakes (ARM)
@ 2026-11-27  9:29           ` Willy Tarreau
  2026-11-27  9:38             ` Lorenzo Stoakes (ARM)
  2026-11-27  9:44             ` David Hildenbrand (Arm)
  0 siblings, 2 replies; 20+ messages in thread
From: Willy Tarreau @ 2026-11-27  9:29 UTC (permalink / raw)
  To: Lorenzo Stoakes (ARM)
  Cc: Sasha Levin, Borislav Petkov, Krzysztof Kozlowski,
	Jonathan Corbet, Linus Torvalds, Leon Romanovsky, Mark Brown,
	Geert Uytterhoeven, Marc Zyngier, Eric Dumazet, Hans de Goede,
	Andrew Lunn, Jonathan Cameron, Andrew Morton, Shuah Khan,
	Randy Dunlap, Greg Kroah-Hartman, Theodore Ts'o,
	David Hildenbrand, Security Officers, workflows, linux-doc,
	linux-kernel, Laurent Pinchart

On Fri, Nov 27, 2026 at 09:18:34AM +0000, Lorenzo Stoakes (ARM) wrote:
> +cc Laurent who is probably interested in this and AI policy stuff in general.
> 
> On Thu, Nov 26, 2026 at 09:19:18PM -0500, Sasha Levin wrote:
> > 2. I'd argue that LLMs these days have the capability to write better
> > changelogs and most of our human authors. We just need to be better about
> > laying out our expectations of them.
> 
> Strongly disagree with this, it doesn't match what I see in practice at all.
> 
> I'd say that >50% of my review work is of AI-generated patches now, and the
> commit messages and comments are consistently appalling + seriously painful to
> deal with.

Note that every word in Sasha's message counts. *capability* doesn't mean
that it is commonly exploited. Commit messages are horrible most of the
time but when properly explained over long sessions they can get amazingly
better. The other word was *most* of our humans authors. The Linux kernel
community isn't the largest set of commit message authors and is already
doing very good at this. Look at many other projects to see absolute
horrors like "update" or "rebase" for the most verbose ones, when it's
not just "-".

Whenever I was given commit messages by an LLM, I had to reword them,
but some were very close to what I could have written. And I must admit
that a few times when I only reworded a part of the message first and
came back to it later, I was no longer very sure where I stopped. *This*
is a good indication that they can get better than what you usually face
(or that mine are terrible as well, in which case we're back to first
point and I'm part of "most").

Willy

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27  9:29           ` Willy Tarreau
@ 2026-11-27  9:38             ` Lorenzo Stoakes (ARM)
  2026-11-27 14:11               ` Mark Brown
  2026-11-27  9:44             ` David Hildenbrand (Arm)
  1 sibling, 1 reply; 20+ messages in thread
From: Lorenzo Stoakes (ARM) @ 2026-11-27  9:38 UTC (permalink / raw)
  To: Willy Tarreau
  Cc: Sasha Levin, Borislav Petkov, Krzysztof Kozlowski,
	Jonathan Corbet, Linus Torvalds, Leon Romanovsky, Mark Brown,
	Geert Uytterhoeven, Marc Zyngier, Eric Dumazet, Hans de Goede,
	Andrew Lunn, Jonathan Cameron, Andrew Morton, Shuah Khan,
	Randy Dunlap, Greg Kroah-Hartman, Theodore Ts'o,
	David Hildenbrand, Security Officers, workflows, linux-doc,
	linux-kernel, Laurent Pinchart

(for some reason this didn't get to my inbox, not sure if filtering broken or
something?)

On Fri, Nov 27, 2026 at 10:29:06AM +0100, Willy Tarreau wrote:
> On Fri, Nov 27, 2026 at 09:18:34AM +0000, Lorenzo Stoakes (ARM) wrote:
> > +cc Laurent who is probably interested in this and AI policy stuff in general.
> >
> > On Thu, Nov 26, 2026 at 09:19:18PM -0500, Sasha Levin wrote:
> > > 2. I'd argue that LLMs these days have the capability to write better
> > > changelogs and most of our human authors. We just need to be better about
> > > laying out our expectations of them.
> >
> > Strongly disagree with this, it doesn't match what I see in practice at all.
> >
> > I'd say that >50% of my review work is of AI-generated patches now, and the
> > commit messages and comments are consistently appalling + seriously painful to
> > deal with.
>
> Note that every word in Sasha's message counts. *capability* doesn't mean
> that it is commonly exploited. Commit messages are horrible most of the

I addressed that in my reply. I have explored this with frontier models, and in
fact seen people dedicate serious resource to adding skills explicitly for this,
with no meaningful improvement in either case.

> time but when properly explained over long sessions they can get amazingly
> better. The other word was *most* of our humans authors. The Linux kernel

Completely disagree based on fairly extensive review experience. Commit messages
from humans are orders-of-magnitude better, it's not even close.

Pre-2026 worst patches commit messages were incomparably better vs. 2026-onward
AI-patches-of-any-quality.

I continue to believe this is a fundamental consequence of how LLMs work.

> community isn't the largest set of commit message authors and is already
> doing very good at this. Look at many other projects to see absolute
> horrors like "update" or "rebase" for the most verbose ones, when it's
> not just "-".

Yup, we established a great culture for commit messages. I fear that we are
destroying that with slop.

>
> Whenever I was given commit messages by an LLM, I had to reword them,
> but some were very close to what I could have written. And I must admit

I'm happy you've had that experience :) but it runs so counter to my own and
other's I have spoken to that I have to reflect that in the discussion.

> that a few times when I only reworded a part of the message first and
> came back to it later, I was no longer very sure where I stopped. *This*
> is a good indication that they can get better than what you usually face
> (or that mine are terrible as well, in which case we're back to first
> point and I'm part of "most").

They can get better, yes, but in my experience consistently remain
appalling. Perhaps excluding rather mechanical changes.

Of course I am happy to be proven wrong in future, but for a policy going
forwards, that policy should reflect reality.

And I think you missed a key point I made - that this is _crucial_ stuff as it
is the commit message(s) that give you an overview for review.

This stuff alone contributes to maintainer burnout. Let's try and take action
that pushes back on that.

--
Cheers, Lorenzo

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27  9:29           ` Willy Tarreau
  2026-11-27  9:38             ` Lorenzo Stoakes (ARM)
@ 2026-11-27  9:44             ` David Hildenbrand (Arm)
  2026-11-27  9:54               ` Lorenzo Stoakes (ARM)
  1 sibling, 1 reply; 20+ messages in thread
From: David Hildenbrand (Arm) @ 2026-11-27  9:44 UTC (permalink / raw)
  To: Willy Tarreau, Lorenzo Stoakes (ARM)
  Cc: Sasha Levin, Borislav Petkov, Krzysztof Kozlowski,
	Jonathan Corbet, Linus Torvalds, Leon Romanovsky, Mark Brown,
	Geert Uytterhoeven, Marc Zyngier, Eric Dumazet, Hans de Goede,
	Andrew Lunn, Jonathan Cameron, Andrew Morton, Shuah Khan,
	Randy Dunlap, Greg Kroah-Hartman, Theodore Ts'o,
	Security Officers, workflows, linux-doc, linux-kernel,
	Laurent Pinchart

On 11/27/26 10:29, Willy Tarreau wrote:
> On Fri, Nov 27, 2026 at 09:18:34AM +0000, Lorenzo Stoakes (ARM) wrote:
>> +cc Laurent who is probably interested in this and AI policy stuff in general.
>>
>> On Thu, Nov 26, 2026 at 09:19:18PM -0500, Sasha Levin wrote:
>>> 2. I'd argue that LLMs these days have the capability to write better
>>> changelogs and most of our human authors. We just need to be better about
>>> laying out our expectations of them.
>>
>> Strongly disagree with this, it doesn't match what I see in practice at all.
>>
>> I'd say that >50% of my review work is of AI-generated patches now, and the
>> commit messages and comments are consistently appalling + seriously painful to
>> deal with.
> 
> Note that every word in Sasha's message counts. *capability* doesn't mean
> that it is commonly exploited. Commit messages are horrible most of the
> time but when properly explained over long sessions they can get amazingly
> better. The other word was *most* of our humans authors. The Linux kernel
> community isn't the largest set of commit message authors and is already
> doing very good at this. Look at many other projects to see absolute
> horrors like "update" or "rebase" for the most verbose ones, when it's
> not just "-".
> 
> Whenever I was given commit messages by an LLM, I had to reword them,
> but some were very close to what I could have written. And I must admit
> that a few times when I only reworded a part of the message first and
> came back to it later, I was no longer very sure where I stopped. *This*
> is a good indication that they can get better than what you usually face
> (or that mine are terrible as well, in which case we're back to first
> point and I'm part of "most").

I'm not even sure what we are discussing here and why. I work through crappy LLM
generated commit messages all day. Yes, I also use AI to clean them up and it's
exhausting.

So as usual: in the right hand it is very useful, In the wrong hands it's not.

Why are we so focused on generalizing things here? Don't we have better things
to do?

-- 
Cheers,

David

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27  9:44             ` David Hildenbrand (Arm)
@ 2026-11-27  9:54               ` Lorenzo Stoakes (ARM)
  2026-11-27 13:37                 ` Sasha Levin
  0 siblings, 1 reply; 20+ messages in thread
From: Lorenzo Stoakes (ARM) @ 2026-11-27  9:54 UTC (permalink / raw)
  To: David Hildenbrand (Arm)
  Cc: Willy Tarreau, Sasha Levin, Borislav Petkov, Krzysztof Kozlowski,
	Jonathan Corbet, Linus Torvalds, Leon Romanovsky, Mark Brown,
	Geert Uytterhoeven, Marc Zyngier, Eric Dumazet, Hans de Goede,
	Andrew Lunn, Jonathan Cameron, Andrew Morton, Shuah Khan,
	Randy Dunlap, Greg Kroah-Hartman, Theodore Ts'o,
	Security Officers, workflows, linux-doc, linux-kernel,
	Laurent Pinchart

On Fri, Nov 27, 2026 at 10:44:56AM +0100, David Hildenbrand (Arm) wrote:
> I'm not even sure what we are discussing here and why. I work through crappy LLM
> generated commit messages all day. Yes, I also use AI to clean them up and it's
> exhausting.
>
> So as usual: in the right hand it is very useful, In the wrong hands it's not.
>
> Why are we so focused on generalizing things here? Don't we have better things
> to do?

Yup exactly. I'm exhausted from the review and filtering of AI company fixes
I've done this cycle, and you've done about 10x as much as me so heaven knows
how tired you are.

I've dropped a bunch of reviewerships because if this keeps going, I'm going to
burnout completely.

And to me the TL;DR is 'this bad thing you are dealing with on a daily basis -
is not bad, it's good, and we should have more of it, but only if you hold it
right'.

For fairness's sake, here's what Sasha said word-for-word:

	'I'd argue that LLMs these days have the capability to write better
	changelogs and most of our human authors. We just need to be better about
	laying out our expectations of them.'

Which I think is fair to say runs rather counter to our experience, certainly
mine, at least.

--
Cheers, Lorenzo

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27  9:54               ` Lorenzo Stoakes (ARM)
@ 2026-11-27 13:37                 ` Sasha Levin
  2026-11-27 13:52                   ` David Hildenbrand (Arm)
  2026-11-27 14:20                   ` Lorenzo Stoakes (ARM)
  0 siblings, 2 replies; 20+ messages in thread
From: Sasha Levin @ 2026-11-27 13:37 UTC (permalink / raw)
  To: Lorenzo Stoakes (ARM)
  Cc: David Hildenbrand (Arm), Willy Tarreau, Borislav Petkov,
	Krzysztof Kozlowski, Jonathan Corbet, Linus Torvalds,
	Leon Romanovsky, Mark Brown, Geert Uytterhoeven, Marc Zyngier,
	Eric Dumazet, Hans de Goede, Andrew Lunn, Jonathan Cameron,
	Andrew Morton, Shuah Khan, Randy Dunlap, Greg Kroah-Hartman,
	Theodore Ts'o, Security Officers, workflows, linux-doc,
	linux-kernel, Laurent Pinchart

On Fri, Nov 27, 2026 at 09:54:07AM +0000, Lorenzo Stoakes (ARM) wrote:
>On Fri, Nov 27, 2026 at 10:44:56AM +0100, David Hildenbrand (Arm) wrote:
>> So as usual: in the right hand it is very useful, In the wrong hands it's not.

Very much the case. But we can't stop the "wrong hands" from using it, so we
need guardrails around them that make it produce what we, as a community, think
is the right thing.

>I've dropped a bunch of reviewerships because if this keeps going, I'm going to
>burnout completely.
>
>And to me the TL;DR is 'this bad thing you are dealing with on a daily basis -
>is not bad, it's good, and we should have more of it, but only if you hold it
>right'.

I think we're actually agreeing here: LLMs write crappy commit messages today.
My point was that they have the capability to do this really well (the "and" in
that line should have been "than"), we're just not getting that out of them
right now. These things just helped prove the Riemann hypothesis, I have a hard
time believing that a good kernel commit message is where they hit their limit.

And it's not just you or me. That's exactly why the cover letter quotes a whole
list of maintainers: pretty much everyone is hitting this. The series is there
to push back on what you're dealing with, not to ask for more of it.

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27 13:37                 ` Sasha Levin
@ 2026-11-27 13:52                   ` David Hildenbrand (Arm)
  2026-11-27 14:20                   ` Lorenzo Stoakes (ARM)
  1 sibling, 0 replies; 20+ messages in thread
From: David Hildenbrand (Arm) @ 2026-11-27 13:52 UTC (permalink / raw)
  To: Sasha Levin, Lorenzo Stoakes (ARM)
  Cc: Willy Tarreau, Borislav Petkov, Krzysztof Kozlowski,
	Jonathan Corbet, Linus Torvalds, Leon Romanovsky, Mark Brown,
	Geert Uytterhoeven, Marc Zyngier, Eric Dumazet, Hans de Goede,
	Andrew Lunn, Jonathan Cameron, Andrew Morton, Shuah Khan,
	Randy Dunlap, Greg Kroah-Hartman, Theodore Ts'o,
	Security Officers, workflows, linux-doc, linux-kernel,
	Laurent Pinchart

On 11/27/26 14:37, Sasha Levin wrote:
> On Fri, Nov 27, 2026 at 09:54:07AM +0000, Lorenzo Stoakes (ARM) wrote:
>> On Fri, Nov 27, 2026 at 10:44:56AM +0100, David Hildenbrand (Arm) wrote:
>>> So as usual: in the right hand it is very useful, In the wrong hands it's not.
> 
> Very much the case. But we can't stop the "wrong hands" from using it, so we
> need guardrails around them that make it produce what we, as a community, think
> is the right thing.
> 
>> I've dropped a bunch of reviewerships because if this keeps going, I'm going to
>> burnout completely.
>>
>> And to me the TL;DR is 'this bad thing you are dealing with on a daily basis -
>> is not bad, it's good, and we should have more of it, but only if you hold it
>> right'.
> 
> I think we're actually agreeing here: LLMs write crappy commit messages today.
> My point was that they have the capability to do this really well (the "and" in
> that line should have been "than"), we're just not getting that out of them
> right now. These things just helped prove the Riemann hypothesis, I have a hard
> time believing that a good kernel commit message is where they hit their limit.

They are very good at brute-forcing solutions when they have ways of verifying
whether what they generated actually works. That's why they shine at lean proofs
nowadays.

-- 
Cheers,

David

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27  9:38             ` Lorenzo Stoakes (ARM)
@ 2026-11-27 14:11               ` Mark Brown
  2026-11-27 14:25                 ` Lorenzo Stoakes (ARM)
  0 siblings, 1 reply; 20+ messages in thread
From: Mark Brown @ 2026-11-27 14:11 UTC (permalink / raw)
  To: Lorenzo Stoakes (ARM)
  Cc: Willy Tarreau, Sasha Levin, Borislav Petkov, Krzysztof Kozlowski,
	Jonathan Corbet, Linus Torvalds, Leon Romanovsky,
	Geert Uytterhoeven, Marc Zyngier, Eric Dumazet, Hans de Goede,
	Andrew Lunn, Jonathan Cameron, Andrew Morton, Shuah Khan,
	Randy Dunlap, Greg Kroah-Hartman, Theodore Ts'o,
	David Hildenbrand, Security Officers, workflows, linux-doc,
	linux-kernel, Laurent Pinchart

[-- Attachment #1: Type: text/plain, Size: 1614 bytes --]

On Fri, Nov 27, 2026 at 09:38:43AM +0000, Lorenzo Stoakes (ARM) wrote:

> > time but when properly explained over long sessions they can get amazingly
> > better. The other word was *most* of our humans authors. The Linux kernel

> Completely disagree based on fairly extensive review experience. Commit messages
> from humans are orders-of-magnitude better, it's not even close.

IME it depends a bit on the complexity of the change and the area, for
simpler stuff I'm seeing some obviously LLM generated changelogs that
are at least as good as some of the worse human written ones.  For
complicated or core stuff where you really need the changelog that never
happens but for things more in the "get audio working on my laptop"
realm it's plausible that you'd get something useful.  For those simpler
areas the tradeoff with the submitter fully understanding their change
is a bit different to that with core code.

> They can get better, yes, but in my experience consistently remain
> appalling. Perhaps excluding rather mechanical changes.

Yes, I think it depends a lot on the scope and nature of the change.

> Of course I am happy to be proven wrong in future, but for a policy going
> forwards, that policy should reflect reality.

> And I think you missed a key point I made - that this is _crucial_ stuff as it
> is the commit message(s) that give you an overview for review.

> This stuff alone contributes to maintainer burnout. Let's try and take action
> that pushes back on that.

TBH I think the issue you're seeing here is the changes themselves and
the changelogs are a symptom, it's difficult.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27 13:37                 ` Sasha Levin
  2026-11-27 13:52                   ` David Hildenbrand (Arm)
@ 2026-11-27 14:20                   ` Lorenzo Stoakes (ARM)
  2026-11-27 14:31                     ` Sasha Levin
  1 sibling, 1 reply; 20+ messages in thread
From: Lorenzo Stoakes (ARM) @ 2026-11-27 14:20 UTC (permalink / raw)
  To: Sasha Levin
  Cc: David Hildenbrand (Arm), Willy Tarreau, Borislav Petkov,
	Krzysztof Kozlowski, Jonathan Corbet, Linus Torvalds,
	Leon Romanovsky, Mark Brown, Geert Uytterhoeven, Marc Zyngier,
	Eric Dumazet, Hans de Goede, Andrew Lunn, Jonathan Cameron,
	Andrew Morton, Shuah Khan, Randy Dunlap, Greg Kroah-Hartman,
	Theodore Ts'o, Security Officers, workflows, linux-doc,
	linux-kernel, Laurent Pinchart

On Fri, Nov 27, 2026 at 08:37:56AM -0500, Sasha Levin wrote:
> On Fri, Nov 27, 2026 at 09:54:07AM +0000, Lorenzo Stoakes (ARM) wrote:
> >On Fri, Nov 27, 2026 at 10:44:56AM +0100, David Hildenbrand (Arm) wrote:
> >> So as usual: in the right hand it is very useful, In the wrong hands it's not.
>
> Very much the case. But we can't stop the "wrong hands" from using it, so we
> need guardrails around them that make it produce what we, as a community, think
> is the right thing.

These aren't guardrails, you are just trying to modify the output of
something that's broken here IMO.

>
> >I've dropped a bunch of reviewerships because if this keeps going, I'm going to
> >burnout completely.
> >
> >And to me the TL;DR is 'this bad thing you are dealing with on a daily basis -
> >is not bad, it's good, and we should have more of it, but only if you hold it
> >right'.
>
> I think we're actually agreeing here: LLMs write crappy commit messages today.
> My point was that they have the capability to do this really well (the "and" in
> that line should have been "than"), we're just not getting that out of them
> right now. These things just helped prove the Riemann hypothesis, I have a hard
> time believing that a good kernel commit message is where they hit their limit.

Allegedly proven [ as I gather the Stoakes-Navier proof was not in fact that ]
:) and as I recall that proof is a GiB of text ;) so y'know, kinda going the
other way... :P

But I have yet to see an LLM capable of being able to write a good commit
message, even when effort is expended to help...

And people aren't going to be using the latest model with unlimited
resources to do this, they'll use whatever-they-have.

>
> And it's not just you or me. That's exactly why the cover letter quotes a whole
> list of maintainers: pretty much everyone is hitting this. The series is there
> to push back on what you're dealing with, not to ask for more of it.

It's based on a presumption that the instruction will make things any better.

If anything, I've found that an LLM attempting a more succinct output often
simply outputs the same trash with missing steps, making our lives even
harder.

I think a placeholder works better, personally.

But I don't think this, as-is, is really going to help anything.

+10. Write the cover letter described in "Cover letter" above from what the
+    previous steps produced. This part is not optional, not even for a single
+    patch or a one-line fix.

BTW this seems to be instructing LLMs to generate cover letters for single
patches which I don't personally love to see.

And it therefore gives the LLM double the chance to post awful word
salad. So I'd prefer not to have that clause ideally.

--
Cheers, Lorenzo

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27 14:11               ` Mark Brown
@ 2026-11-27 14:25                 ` Lorenzo Stoakes (ARM)
  2026-11-27 14:31                   ` Sasha Levin
  0 siblings, 1 reply; 20+ messages in thread
From: Lorenzo Stoakes (ARM) @ 2026-11-27 14:25 UTC (permalink / raw)
  To: Mark Brown
  Cc: Willy Tarreau, Sasha Levin, Borislav Petkov, Krzysztof Kozlowski,
	Jonathan Corbet, Linus Torvalds, Leon Romanovsky,
	Geert Uytterhoeven, Marc Zyngier, Eric Dumazet, Hans de Goede,
	Andrew Lunn, Jonathan Cameron, Andrew Morton, Shuah Khan,
	Randy Dunlap, Greg Kroah-Hartman, Theodore Ts'o,
	David Hildenbrand, Security Officers, workflows, linux-doc,
	linux-kernel, Laurent Pinchart

On Fri, Nov 27, 2026 at 02:11:27PM +0000, Mark Brown wrote:
> On Fri, Nov 27, 2026 at 09:38:43AM +0000, Lorenzo Stoakes (ARM) wrote:
>
> > > time but when properly explained over long sessions they can get amazingly
> > > better. The other word was *most* of our humans authors. The Linux kernel
>
> > Completely disagree based on fairly extensive review experience. Commit messages
> > from humans are orders-of-magnitude better, it's not even close.
>
> IME it depends a bit on the complexity of the change and the area, for
> simpler stuff I'm seeing some obviously LLM generated changelogs that
> are at least as good as some of the worse human written ones.  For
> complicated or core stuff where you really need the changelog that never
> happens but for things more in the "get audio working on my laptop"
> realm it's plausible that you'd get something useful.  For those simpler
> areas the tradeoff with the submitter fully understanding their change
> is a bit different to that with core code.

I agree it does better with more trivial changes, but I've found the -> entropy
happens with even modest complexity, and it's always the same kind of patterns -
code-as-prose, ludicrious compexity, word salad, etc.

>
> > They can get better, yes, but in my experience consistently remain
> > appalling. Perhaps excluding rather mechanical changes.
>
> Yes, I think it depends a lot on the scope and nature of the change.
>
> > Of course I am happy to be proven wrong in future, but for a policy going
> > forwards, that policy should reflect reality.
>
> > And I think you missed a key point I made - that this is _crucial_ stuff as it
> > is the commit message(s) that give you an overview for review.
>
> > This stuff alone contributes to maintainer burnout. Let's try and take action
> > that pushes back on that.
>
> TBH I think the issue you're seeing here is the changes themselves and
> the changelogs are a symptom, it's difficult.

They're both a problem, but the commit messages and comments are consistently
awful and a major cause of change because the commit msg is where I get the gist
of the problem and if it's word salad, their ain't no gist there's just pain :)

I really feel the fundamental rule here is 'only submit what you understand'
(90+% of AI stuff I see breaks this rule, maybe more).

So writing your own commit message feels like a very sensible thing to expect of
somebody.

If we even have expectations at all any more :)

--
Cheers, Lorenzo

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27 14:20                   ` Lorenzo Stoakes (ARM)
@ 2026-11-27 14:31                     ` Sasha Levin
  0 siblings, 0 replies; 20+ messages in thread
From: Sasha Levin @ 2026-11-27 14:31 UTC (permalink / raw)
  To: Lorenzo Stoakes (ARM)
  Cc: David Hildenbrand (Arm), Willy Tarreau, Borislav Petkov,
	Krzysztof Kozlowski, Jonathan Corbet, Linus Torvalds,
	Leon Romanovsky, Mark Brown, Geert Uytterhoeven, Marc Zyngier,
	Eric Dumazet, Hans de Goede, Andrew Lunn, Jonathan Cameron,
	Andrew Morton, Shuah Khan, Randy Dunlap, Greg Kroah-Hartman,
	Theodore Ts'o, Security Officers, workflows, linux-doc,
	linux-kernel, Laurent Pinchart

On Fri, Nov 27, 2026 at 02:20:15PM +0000, Lorenzo Stoakes (ARM) wrote:
>On Fri, Nov 27, 2026 at 08:37:56AM -0500, Sasha Levin wrote:
>> Very much the case. But we can't stop the "wrong hands" from using it, so we
>> need guardrails around them that make it produce what we, as a community, think
>> is the right thing.
>
>These aren't guardrails, you are just trying to modify the output of
>something that's broken here IMO.

I see this as the beginning of a guardrail. It'll take us some time to get to
something like checkpatch for LLMs, but we have to start somewhere.

>I think a placeholder works better, personally.

I don't think we can really instruct LLMs not to write the message. The human
will just turn around and tell it to ignore that instruction and write the
commit message anyway.

>+10. Write the cover letter described in "Cover letter" above from what the
>+    previous steps produced. This part is not optional, not even for a single
>+    patch or a one-line fix.
>
>BTW this seems to be instructing LLMs to generate cover letters for single
>patches which I don't personally love to see.
>
>And it therefore gives the LLM double the chance to post awful word
>salad. So I'd prefer not to have that clause ideally.

The single patch cover letter was something that was floated during LPC and the
Maintainers Summit. The other option I was thinking about is a git note
attached to the patch: format-patch puts it below the "---" and git am discards
it, so it never lands in the tree. I'm open to suggestions though.

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
  2026-11-27 14:25                 ` Lorenzo Stoakes (ARM)
@ 2026-11-27 14:31                   ` Sasha Levin
  0 siblings, 0 replies; 20+ messages in thread
From: Sasha Levin @ 2026-11-27 14:31 UTC (permalink / raw)
  To: Lorenzo Stoakes (ARM)
  Cc: Mark Brown, Willy Tarreau, Borislav Petkov, Krzysztof Kozlowski,
	Jonathan Corbet, Linus Torvalds, Leon Romanovsky,
	Geert Uytterhoeven, Marc Zyngier, Eric Dumazet, Hans de Goede,
	Andrew Lunn, Jonathan Cameron, Andrew Morton, Shuah Khan,
	Randy Dunlap, Greg Kroah-Hartman, Theodore Ts'o,
	David Hildenbrand, Security Officers, workflows, linux-doc,
	linux-kernel, Laurent Pinchart

On Fri, Nov 27, 2026 at 02:25:20PM +0000, Lorenzo Stoakes (ARM) wrote:
>I really feel the fundamental rule here is 'only submit what you understand'
>(90+% of AI stuff I see breaks this rule, maybe more).

Our problem is that it's not the AI that breaks this rule, it's the human who
sends a patch they don't understand. And that's hard to fight with
documentation changes.

We can try telling it not to, but I think the better path is to tell it how to
do what it needs to do correctly.

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2026-11-27 14:31 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 17:19 [PATCH 0/2] docs: ask AI-assisted patches for short changelogs and a cover letter Sasha Levin
2026-11-26 17:19 ` [PATCH 1/2] docs: coding-assistants: ask " Sasha Levin
2026-11-27  1:34   ` Krzysztof Kozlowski
2026-11-27  1:49     ` Borislav Petkov
2026-11-27  2:19       ` Sasha Levin
2026-11-27  5:23         ` Willy Tarreau
2026-11-27  9:18         ` Lorenzo Stoakes (ARM)
2026-11-27  9:29           ` Willy Tarreau
2026-11-27  9:38             ` Lorenzo Stoakes (ARM)
2026-11-27 14:11               ` Mark Brown
2026-11-27 14:25                 ` Lorenzo Stoakes (ARM)
2026-11-27 14:31                   ` Sasha Levin
2026-11-27  9:44             ` David Hildenbrand (Arm)
2026-11-27  9:54               ` Lorenzo Stoakes (ARM)
2026-11-27 13:37                 ` Sasha Levin
2026-11-27 13:52                   ` David Hildenbrand (Arm)
2026-11-27 14:20                   ` Lorenzo Stoakes (ARM)
2026-11-27 14:31                     ` Sasha Levin
2026-11-26 17:19 ` [PATCH 2/2] docs: security-bugs: ask AI-assisted fixes for their " Sasha Levin
2026-11-27  5:29   ` Willy Tarreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox