From: Sasha Levin <sashal@kernel.org>
To: Jonathan Corbet <corbet@lwn.net>
Cc: Sasha Levin <sashal@kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Willy Tarreau <w@1wt.eu>, Leon Romanovsky <leon@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Mark Brown <broonie@kernel.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Borislav Petkov <bp@alien8.de>, Marc Zyngier <maz@kernel.org>,
Eric Dumazet <edumazet@google.com>,
Hans de Goede <hansg@kernel.org>, Andrew Lunn <andrew@lunn.ch>,
Jonathan Cameron <jic23@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Theodore Ts'o <tytso@mit.edu>,
David Hildenbrand <david@kernel.org>,
Security Officers <security@kernel.org>,
workflows@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] docs: ask AI-assisted patches for short changelogs and a cover letter
Date: Thu, 26 Nov 2026 12:19:23 -0500 [thread overview]
Message-ID: <20261126171926.2766137-1-sashal@kernel.org> (raw)
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
next reply other threads:[~2026-11-26 17:19 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 17:19 Sasha Levin [this message]
2026-11-26 17:19 ` [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter 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 18:05 ` Mark Brown
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-27 14:51 ` Lorenzo Stoakes (ARM)
2026-11-27 15:39 ` Sasha Levin
2026-11-27 16:27 ` Andrew Lunn
2026-11-27 16:46 ` Lorenzo Stoakes (ARM)
2026-11-27 16:59 ` Sasha Levin
2026-11-30 12:40 ` Lorenzo Stoakes (ARM)
2026-11-30 14:38 ` Sasha Levin
2026-11-30 14:52 ` Leon Romanovsky
2026-11-30 14:55 ` Lorenzo Stoakes (ARM)
2026-11-30 15:04 ` Leon Romanovsky
2026-11-30 15:32 ` Lorenzo Stoakes (ARM)
2026-11-30 17:15 ` Randy Dunlap
2026-11-30 17:52 ` Lorenzo Stoakes (ARM)
2026-11-30 15:30 ` Lorenzo Stoakes (ARM)
2026-12-01 7:08 ` Leon Romanovsky
2026-11-30 17:05 ` Vlastimil Babka (SUSE)
2026-11-30 17:12 ` Randy Dunlap
2026-12-01 18:23 ` Sasha Levin
2026-11-27 19:08 ` Andrew Morton
2026-11-27 19:21 ` David Woodhouse
2026-11-30 15:37 ` Lorenzo Stoakes (ARM)
2026-11-29 14:00 ` Leon Romanovsky
2026-11-29 13:31 ` Leon Romanovsky
2026-11-27 17:51 ` Vlastimil Babka (SUSE)
2026-11-27 18:03 ` Sasha Levin
2026-11-27 18:14 ` Vlastimil Babka (SUSE)
2026-11-27 18:26 ` Sasha Levin
2026-11-27 19:30 ` Liam R. Howlett
2026-11-27 23:26 ` Sasha Levin
2026-11-30 16:30 ` Lorenzo Stoakes (ARM)
2026-11-29 13:50 ` Leon Romanovsky
2026-11-30 11:20 ` Geert Uytterhoeven
2026-11-29 8:05 ` Krzysztof Kozlowski
2026-11-30 15:39 ` Lorenzo Stoakes (ARM)
2026-11-29 13:13 ` Leon Romanovsky
2026-11-29 13:36 ` Sasha Levin
2026-11-29 13:39 ` Leon Romanovsky
2026-11-30 15:57 ` Lorenzo Stoakes (ARM)
2026-12-01 1:38 ` Laurent Pinchart
2026-11-30 15:01 ` Mark Brown
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261126171926.2766137-1-sashal@kernel.org \
--to=sashal@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=andrew@lunn.ch \
--cc=bp@alien8.de \
--cc=broonie@kernel.org \
--cc=corbet@lwn.net \
--cc=david@kernel.org \
--cc=edumazet@google.com \
--cc=geert@linux-m68k.org \
--cc=gregkh@linuxfoundation.org \
--cc=hansg@kernel.org \
--cc=jic23@kernel.org \
--cc=krzk@kernel.org \
--cc=leon@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maz@kernel.org \
--cc=rdunlap@infradead.org \
--cc=security@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=torvalds@linux-foundation.org \
--cc=tytso@mit.edu \
--cc=w@1wt.eu \
--cc=workflows@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.