mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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 2/2] docs: security-bugs: ask AI-assisted fixes for their cover letter
Date: Thu, 26 Nov 2026 12:19:25 -0500	[thread overview]
Message-ID: <20261126171926.2766137-3-sashal@kernel.org> (raw)
In-Reply-To: <20261126171926.2766137-1-sashal@kernel.org>

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


      parent reply	other threads:[~2026-11-26 17:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 17:19 [PATCH 0/2] docs: ask AI-assisted patches for short changelogs and a " Sasha Levin
2026-11-26 17:19 ` [PATCH 1/2] docs: coding-assistants: ask " Sasha Levin
2026-11-26 17:19 ` Sasha Levin [this message]

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-3-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®