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; 3+ 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] 3+ messages in thread

end of thread, other threads:[~2026-11-26 17:19 UTC | newest]

Thread overview: 3+ 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-26 17:19 ` [PATCH 2/2] docs: security-bugs: ask AI-assisted fixes for their " Sasha Levin

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