[PATCH 2/2] docs: security-bugs: ask AI-assisted fixes for their cover letter

From: Sasha Levin

Date: Thu Nov 26 2026 - 12:19:42 EST


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@xxxxxxxxxx>
---
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